Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
marketing:digital_marketing [2020/02/26 22:32]
prgram [Google Adsense]
marketing:digital_marketing [2023/03/24 20:40] (current)
prgram [Google Tag Manager]
Line 1: Line 1:
 ====== Digital Marketing ====== ====== Digital Marketing ======
 +
 +[[marketing:​google_analytics_mistakes]]
 +[[trivia:​tips:​easy_typomotion_video|]]
  
 {{tag>​marketing 온라인마케팅 분석 디지털마케팅}} {{tag>​marketing 온라인마케팅 분석 디지털마케팅}}
  
 ==== Google Analytics ==== ==== Google Analytics ====
 +
 +
 +=== GA4 ===
 +  * 향상된 측정 Enhanced measurement
 +    * Measuring:​Page views,​Scrolls,​Outbound clicks,Site search,​Video engagement,​File downloads,​Form interactions
 +    * 설정 > Data Stream
 +  * 
  
 === 캠페인 URL설정 === === 캠페인 URL설정 ===
Line 70: Line 80:
   * Mixed Content Error : base href 를 https 로 바꿔줘야 함 [[https://​stackoverflow.com/​questions/​32976110/​mixed-content-error-google-tag-manager|link]]   * Mixed Content Error : base href 를 https 로 바꿔줘야 함 [[https://​stackoverflow.com/​questions/​32976110/​mixed-content-error-google-tag-manager|link]]
   * container size limit : 200KB (100~150 tags?) [[http://​limit to the container size for Google Tag Manager, which is 200KB.|link]]   * container size limit : 200KB (100~150 tags?) [[http://​limit to the container size for Google Tag Manager, which is 200KB.|link]]
 +
 +  * There are currently no debuggable Google tags at that address. Please verify that:
 +    * 팝업 차단 풀어보기
  
 ==== Naver Ads. ==== ==== Naver Ads. ====
Line 85: Line 98:
 ※ "JSON format string"​ : JSON 형식을 string (=with quotation) 으로 전달해 주어야 함 ※ "JSON format string"​ : JSON 형식을 string (=with quotation) 으로 전달해 주어야 함
  
-python> uri = "/​stats"​ method = '​GET'​ param = {'​id':'​cmp-a001-01-00000000#######',​ '​fields':​ '​["​cpc","​ctr"​]',​ '​timeRange':'​{"​since":"​2019-04-20","​until":"​2019-04-22"​}'​} r = requests.get(BASE_URL + uri, params=param,​ headers=get_header(method,​ uri, API_KEY, SECRET_KEY, CUSTOMER_ID)) print(r.url) print("​response status_code = {}"​.format(r.status_code)) print("​response body = {}"​.format(r.json()))+<​code ​python> ​ 
 +uri = "/​stats" ​ 
 +method = '​GET' ​ 
 +param = {'​id':'​cmp-a001-01-00000000#######',​ '​fields':​ '​["​cpc","​ctr"​]',​ '​timeRange':'​{"​since":"​2019-04-20","​until":"​2019-04-22"​}'​} ​ 
 +r = requests.get(BASE_URL + uri, params=param,​ headers=get_header(method,​ uri, API_KEY, SECRET_KEY, CUSTOMER_ID)) ​ 
 +print(r.url) ​ 
 +print("​response status_code = {}"​.format(r.status_code)) ​ 
 +print("​response body = {}"​.format(r.json())) 
 +</​code>​
  
   *  [[https://​github.com/​naver/​searchad-apidoc/​issues/​144|Master report, stat report 차이]]   *  [[https://​github.com/​naver/​searchad-apidoc/​issues/​144|Master report, stat report 차이]]
Line 98: Line 119:
  
   * Form 에서 연락처 정규식 검사하기 ([[https://​thereclub.tistory.com/​3|참고]])   * Form 에서 연락처 정규식 검사하기 ([[https://​thereclub.tistory.com/​3|참고]])
- +    ​* Pardot에서는 메일만 체크하고,​ 연락처는 검사하지 않음 
-  ​* Pardot에서는 메일만 체크하고,​ 연락처는 검사하지 않음 +<​code ​javascript> ​ 
- +$("​.submit"​).click(function () {  
-javascript>​ $("​.submit"​).click(function () { p = $("#​552572_77313pi_552572_77313"​)[0].value;​ // form의 연락처 input의 id/class 이름 p = p.split('​-'​).join(''​);​ var regPhone = /​^((01[1|6|7|8|9])[1-9]+[0-9]{6,​7})|(010[1-9][0-9]{7})$/;​ if( !regPhone.test(p) ) { alert("​쿠폰 발송을 위해 정확한 '​휴대폰'​ 번호가 필요합니다"​);​ return false; // click 이벤트 전달을 중지함 } }); +  ​p = $("#​552572_77313pi_552572_77313"​)[0].value;​ 
 +                                ​// form의 연락처 input의 id/class 이름 ​ 
 +  ​p = p.split('​-'​).join(''​); ​ 
 +  ​var regPhone = /​^((01[1|6|7|8|9])[1-9]+[0-9]{6,​7})|(010[1-9][0-9]{7})$/; ​ 
 +  ​if( !regPhone.test(p) ) {  
 +    ​alert("​쿠폰 발송을 위해 정확한 '​휴대폰'​ 번호가 필요합니다"​); ​ 
 +    ​return false; // click 이벤트 전달을 중지함 ​ 
 +  ​ 
 +}); 
 +</​code>​
 ==== Google Adsense ==== ==== Google Adsense ====
   * 크기 제한하기 https://​support.google.com/​adsense/​answer/​9183363   * 크기 제한하기 https://​support.google.com/​adsense/​answer/​9183363