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
Last revision Both sides next revision
marketing:digital_marketing [2019/10/29 15:31]
prgram [데이터 수집 Behind]
marketing:digital_marketing [2023/03/15 20:53]
prgram [Google Analytics]
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 11: Line 21:
 [[https://​ga-dev-tools.appspot.com/​campaign-url-builder/​|빌더]] : utm 추적이 안될때 : ? 주의! (?가 두개 붙으면 안됨. &로 수정필요) [[https://​ga-dev-tools.appspot.com/​campaign-url-builder/​|빌더]] : utm 추적이 안될때 : ? 주의! (?가 두개 붙으면 안됨. &로 수정필요)
  
-<code+
-utm_source: 내 속성으로 트래픽을 보내는 광고주, 사이트, 간행물 등을 보여줍니다(예:​ Google, 뉴스레터 4, 빌보드). +utm_source: 내 속성으로 트래픽을 보내는 광고주, 사이트, 간행물 등을 보여줍니다(예:​ Google, 뉴스레터 4, 빌보드). utm_medium: 광고 또는 마케팅 매체입니다(예:​ CPC, 배너, 이메일 뉴스레터). utm_campaign:​ 제품의 개별 캠페인 이름, 슬로건, 프로모션 코드 등입니다. utm_term: 유료 검색 키워드를 보여줍니다. 유료 키워드 캠페인에 대해 직접 태그를 추가할 경우 utm_term을 사용하여 키워드를 지정해야 합니다. utm_content:​ 동일한 콘텐츠 또는 동일한 광고 내의 링크를 식별하는 데 사용됩니다. 예를 들어 하나의 이메일 메시지에 두 가지 클릭 유도문안 링크가 있는 경우 utm_content를 사용하여 각각 다른 값을 설정하면 어떤 버전이 더 효과적인지 확인할 수 있습니다.
-utm_medium: 광고 또는 마케팅 매체입니다(예:​ CPC, 배너, 이메일 뉴스레터). +
-utm_campaign:​ 제품의 개별 캠페인 이름, 슬로건, 프로모션 코드 등입니다. +
-utm_term: 유료 검색 키워드를 보여줍니다. 유료 키워드 캠페인에 대해 직접 태그를 추가할 경우 utm_term을 사용하여 키워드를 지정해야 합니다. +
-utm_content:​ 동일한 콘텐츠 또는 동일한 광고 내의 링크를 식별하는 데 사용됩니다. 예를 들어 하나의 이메일 메시지에 두 가지 클릭 유도문안 링크가 있는 경우 utm_content를 사용하여 각각 다른 값을 설정하면 어떤 버전이 더 효과적인지 확인할 수 있습니다. +
-</​code>​+
  
 === API 사용 === === API 사용 ===
Line 24: Line 29:
  
 [[https://​ga-dev-tools.appspot.com/​query-explorer/​|https://​ga-dev-tools.appspot.com/​query-explorer/​]] [[https://​ga-dev-tools.appspot.com/​query-explorer/​|https://​ga-dev-tools.appspot.com/​query-explorer/​]]
 +
 +  * [[https://​developers.google.com/​analytics/​solutions/​google-analytics-spreadsheet-add-on|Google Sheet 에서 GA 데이터 불러오기]] [[https://​www.bounteous.com/​insights/​2014/​10/​23/​bringing-google-analytics-data-google-sheets/​|2]]
  
 === 데이터 수집 Behind === === 데이터 수집 Behind ===
Line 43: Line 50:
       * 사이트 자체적으로 레퍼러 정보 제공을 차단한 경우       * 사이트 자체적으로 레퍼러 정보 제공을 차단한 경우
       * Server Redirect 대신 Javascript Redirect 로 하는 경우       * Server Redirect 대신 Javascript Redirect 로 하는 경우
-  * [[https://​stackoverflow.com/​questions/​18837757/​detect-isp-or-and-country-by-ip-address|Detect ISP, country by IP Address ]]+  *  [[https://​stackoverflow.com/​questions/​18837757/​detect-isp-or-and-country-by-ip-address|Detect ISP, country by IP Address ​]] 
 +      * [[https://​ip-api.com/​|https://​ip-api.com/​]]
  
 +=== 활용 ===
 +
 +  * Network : Service Provider → 어떤 회사에서 왔는지 확인할 '​수도'​ 있음 \\ [[https://​www.beacontechnologies.com/​blog/​2016/​10/​google-analytics-most-underused-report-network-visits/​|Larger companies and even some small ones, have their own service providers, so therefore you will see their company name listed as a Service Provider!]]
  
 === Settings === === Settings ===
Line 50: Line 61:
   * google 광고시 UTM 자동 적용   * google 광고시 UTM 자동 적용
       * 속성 설정 > 고급 > '​Google Ads와 Search Ads 360 연결에서 수동 태그 추가(UTM 값)를 자동 태그 추가(GCLID 값)보다 우선 적용'​ 체크       * 속성 설정 > 고급 > '​Google Ads와 Search Ads 360 연결에서 수동 태그 추가(UTM 값)를 자동 태그 추가(GCLID 값)보다 우선 적용'​ 체크
- 
  
 ==== SEO ==== ==== SEO ====
Line 61: Line 71:
  
 [[https://​www.mobiinside.co.kr/​2019/​07/​31/​seo-sitemap/​|사이트맵을 쉽게 만드는 법]] [[https://​www.mobiinside.co.kr/​2019/​07/​31/​seo-sitemap/​|사이트맵을 쉽게 만드는 법]]
- 
  
 ==== Etc. ==== ==== Etc. ====
Line 70: Line 79:
  
   * 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]]
  
 ==== Naver Ads. ==== ==== Naver Ads. ====
Line 77: Line 87:
   * [[https://​saedu.naver.com/​help/​faq/​ncc/​view.nhn?​faqSeq=120|URL 파라미터 넘기기]]   * [[https://​saedu.naver.com/​help/​faq/​ncc/​view.nhn?​faqSeq=120|URL 파라미터 넘기기]]
   * 도구 > 이력관리 : 어떤 키워드에 어떤 부분을 변경하였으며 어떤 사항이 변경이 됐는지 시간순으로 나열   * 도구 > 이력관리 : 어떤 키워드에 어떤 부분을 변경하였으며 어떤 사항이 변경이 됐는지 시간순으로 나열
- 
  
 === API사용하기 === === API사용하기 ===
Line 86: Line 95:
 ※ "JSON format string"​ : JSON 형식을 string (=with quotation) 으로 전달해 주어야 함 ※ "JSON format string"​ : JSON 형식을 string (=with quotation) 으로 전달해 주어야 함
  
-<code python>​ +<code python>  
-uri  = "/​stats"​ +uri = "/​stats"​  
- +method = '​GET'​  
-method = '​GET'​ +param = {'​id':'​cmp-a001-01-00000000#######',​ '​fields':​ '​["​cpc","​ctr"​]',​ '​timeRange':'​{"​since":"​2019-04-20","​until":"​2019-04-22"​}'​}  
-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)  
-r = requests.get(BASE_URL + uri, params=param,​ headers=get_header(method,​ uri, API_KEY, SECRET_KEY, CUSTOMER_ID)) +print("​response status_code = {}"​.format(r.status_code)) ​
-print(r.url) +
-print("​response status_code = {}"​.format(r.status_code))+
 print("​response body = {}"​.format(r.json())) print("​response body = {}"​.format(r.json()))
- 
 </​code>​ </​code>​
  
Line 106: Line 112:
       * 다차원 보고서에서 사용되는 API는 /stats와 별도의 내부 API를 사용하고 있기 때문에 /stats를 이용하여 다차원 보고서와 동일한 지표를 확인하실수는 없습니다.       * 다차원 보고서에서 사용되는 API는 /stats와 별도의 내부 API를 사용하고 있기 때문에 /stats를 이용하여 다차원 보고서와 동일한 지표를 확인하실수는 없습니다.
       * 대신에, /​master-reports,​ /​stat-reports API를 통하여 상세 지표를 직접 가공하여 원하시는 관점의 데이터를 만드실수 있습니다.       * 대신에, /​master-reports,​ /​stat-reports API를 통하여 상세 지표를 직접 가공하여 원하시는 관점의 데이터를 만드실수 있습니다.
- 
  
 ==== Salesforce.com Pardot ==== ==== Salesforce.com Pardot ====
  
   * Form 에서 연락처 정규식 검사하기 ([[https://​thereclub.tistory.com/​3|참고]])   * Form 에서 연락처 정규식 검사하기 ([[https://​thereclub.tistory.com/​3|참고]])
 +    * Pardot에서는 메일만 체크하고,​ 연락처는 검사하지 않음
 +<code 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 이벤트 전달을 중지함 ​
 +  } 
 +});
 +</​code>​
 +==== Google Adsense ====
 +  * 크기 제한하기 https://​support.google.com/​adsense/​answer/​9183363
 +<code js>
 +다음은 반응형 광고 코드를 수정해 고정 높이는 90픽셀, 가변 폭은 400~970픽셀로 지정하는 방법입니다.
 +<ins class="​adsbygoogle"​
 +   ​style="​display:​inline-block;​min-width:​400px;​max-width:​970px;​width:​100%;​height:​90px"​
 +   ​data-ad-client="​ca-pub-1234"​
 +   ​data-ad-slot="​5678"></​ins>​
 +<script async src="​https://​pagead2.googlesyndication.com/​pagead/​js/​adsbygoogle.js"></​script>​
 +<​script>​(adsbygoogle = window.adsbygoogle || []).push({});</​script>​
 +</​code>​
  
-      ​Pardot에서는 메만 체하고, 연락처는 검사하지 않음 +  ​* 일반적인 광고 ​기 https://​support.google.com/google-ads/answer/7031480 
- +==== Tips. ====
-<code 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 이벤트 전달을 중지함 +
-              } +
-          }); +
-</​code>​+
  
 +  * 어떤 배너가 최근 트렌디하고 잘 먹히는지 알고 싶다면, 네이버 타임보드를. 현 시점 모든 에이전시의 가장 디자인 잘한다는 콘텐츠가 거기에 집약되어 있음 [[https://​ppss.kr/​archives/​198153|link]]
 ~~DISCUSSION~~ ~~DISCUSSION~~