캠페인 URL 설정 : utm_source= &utm_medium= &utm_campaign= 은 필수
빌더 : utm 추적이 안될때 : ? 주의! (?가 두개 붙으면 안됨. &로 수정필요)
utm_source: 내 속성으로 트래픽을 보내는 광고주, 사이트, 간행물 등을 보여줍니다(예: Google, 뉴스레터 4, 빌보드). utm_medium: 광고 또는 마케팅 매체입니다(예: CPC, 배너, 이메일 뉴스레터). utm_campaign: 제품의 개별 캠페인 이름, 슬로건, 프로모션 코드 등입니다. utm_term: 유료 검색 키워드를 보여줍니다. 유료 키워드 캠페인에 대해 직접 태그를 추가할 경우 utm_term을 사용하여 키워드를 지정해야 합니다. utm_content: 동일한 콘텐츠 또는 동일한 광고 내의 링크를 식별하는 데 사용됩니다. 예를 들어 하나의 이메일 메시지에 두 가지 클릭 유도문안 링크가 있는 경우 utm_content를 사용하여 각각 다른 값을 설정하면 어떤 버전이 더 효과적인지 확인할 수 있습니다.
API 받기 Python에서 사용 : ViewID 는 ga:[0-9] 형태임 1 2 report 만들기 batchGet사용법
https://ga-dev-tools.appspot.com/query-explorer/
http://daynebatten.com/2015/07/raw-data-google-analytics/
https://naver.github.io/searchad-apidoc/#/guides
https://github.com/naver/searchad-apidoc/tree/master/python-sample
※ “JSON format string” : JSON 형식을 string (=with quotation) 으로 전달해 주어야 함
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()))
$(".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 이벤트 전달을 중지함 } });
다음은 반응형 광고 코드를 수정해 고정 높이는 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>
https://ahrefs.com/blog/google-analytics-tracking-mistakes/
1. GA코드 없거나 중복
2. interaction event 잘못된 설정
ex. Scroll 설정 같은 경우, GTM에서 'Non-interaction Hit' True 로 설정해야 Bounce Rate 가 제대로 계산됨
3. 다른 도메인의 hit을 추적하는 경우
4. 관리자의 세션을 추적
5. Bot 필터링을 안 쓰는 것
6. 스팸 Referral 을 추적
7. UTM 코드 제대로 안쓰는 거
8. query parameter (? & ) 을 제거하지 않는 것
9. 같은 source / medium 들을 통합하지 않는 것
10. Referral exclusion list 쓰지 않는 것 : Payment Gateway, 서브도메인, cross-domain
11. Personally Identifiable Information 추적하는 것 (PII, ? & 에 개인정보 있을 때)
12. Single Page Application(SPA) 에서 Pageview 추적 안하는 것
- 1 page에 javascript로 multipage 구현하는 경우
13. 백업, 테스트 View 안 만드는 것