====== Digital Marketing ====== [[marketing:google_analytics_mistakes]] [[trivia:tips:easy_typomotion_video|]] {{tag>marketing 온라인마케팅 분석 디지털마케팅}} ==== Google Analytics ==== === GA4 === * 향상된 측정 Enhanced measurement * Measuring:Page views,Scrolls,Outbound clicks,Site search,Video engagement,File downloads,Form interactions * 설정 > Data Stream * === 캠페인 URL설정 === [[https://support.google.com/analytics/answer/1033863?hl=ko|캠페인 URL 설정]] : utm_source= &utm_medium= &utm_campaign= 은 필수 [[https://ga-dev-tools.appspot.com/campaign-url-builder/|빌더]] : utm 추적이 안될때 : ? 주의! (?가 두개 붙으면 안됨. &로 수정필요) > utm_source: 내 속성으로 트래픽을 보내는 광고주, 사이트, 간행물 등을 보여줍니다(예: Google, 뉴스레터 4, 빌보드). utm_medium: 광고 또는 마케팅 매체입니다(예: CPC, 배너, 이메일 뉴스레터). utm_campaign: 제품의 개별 캠페인 이름, 슬로건, 프로모션 코드 등입니다. utm_term: 유료 검색 키워드를 보여줍니다. 유료 키워드 캠페인에 대해 직접 태그를 추가할 경우 utm_term을 사용하여 키워드를 지정해야 합니다. utm_content: 동일한 콘텐츠 또는 동일한 광고 내의 링크를 식별하는 데 사용됩니다. 예를 들어 하나의 이메일 메시지에 두 가지 클릭 유도문안 링크가 있는 경우 utm_content를 사용하여 각각 다른 값을 설정하면 어떤 버전이 더 효과적인지 확인할 수 있습니다. === API 사용 === [[https://console.developers.google.com/apis/library/analyticsreporting.googleapis.com?q=analytics&id=a6268697-60ed-41f3-afb3-5305fbcced6b&project=arcane-stack-225904|API 받기]] [[https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/installed-py|Python에서 사용]] : ViewID 는 ga:[0-9] 형태임 [[https://tariat.tistory.com/219?category=682093|1]] [[https://tariat.tistory.com/221|2]] [[https://developers.google.com/analytics/devguides/reporting/core/v4/basics|report 만들기]] [[https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet#dimensionfilterclause|batchGet사용법]] [[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 === [[http://daynebatten.com/2015/07/raw-data-google-analytics/|http://daynebatten.com/2015/07/raw-data-google-analytics/]] * 키워드 (not provided) : 일반적으로 방문자가 검색한 키워드는 검색 엔진 추천 시 파악되는데 …(중략)… SSL 검색이 이용될 때는 키워드에 (제공되지 않음) 이라는 값이 부여됩니다.” \\ 다시 말하면, 구글계정 사용자가 로그인한 상태에서 검색하는 경우 SSL 검색이 사용되는데, 이 경우 사생활보호를 위해 검색어가 암호화됩니다. 특히 지메일 사용자, 아이폰/안드로이드 스마트폰 유저들의 구글검색은 대부분 로그인상태에서 이뤄지기 때문에, 이 수치는 점차 늘어나고 있습니다. [[http://mindthelog.com/2014/09/not-provided-not-set/|링크]] * 세션Session 은 페이지별 트래픽이 아니다! [[https://brunch.co.kr/@entrench/27|https://brunch.co.kr/@entrench/27]] * 랜딩페이지에서만 카운트됨 * 페이지별 트래픽은 Pageview를 봐야 함 * UTM이 유실되는 경우 (Referral 유실) * 북마크된 링크로 접속 * URL 단축서비스 링크로 접속 * 이메일 본문 내 링크에서 접속 * PPT,PDF 등 파일 내 링크에서 접속 * 앱내 링크를 클릭해서 접속 (MMS, 카톡 등) * 랜딩페이지가 켜지기 전에 다른페이지를 경유하는 경우(redirect) * https 사이트를 통해 http 사이트에 접속하는 경우 * 사이트 자체적으로 레퍼러 정보 제공을 차단한 경우 * Server Redirect 대신 Javascript Redirect 로 하는 경우 * [[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 === * google 광고시 UTM 자동 적용 * 속성 설정 > 고급 > 'Google Ads와 Search Ads 360 연결에서 수동 태그 추가(UTM 값)를 자동 태그 추가(GCLID 값)보다 우선 적용' 체크 ==== SEO ==== === Google Search Console === [[https://www.dokuwiki.org/sitemap|dokuwiki 사이트맵 추가하기]] : /doku.php?do=sitemap [[https://support.google.com/webmasters/answer/183668|사이트맵 형식]] [[https://www.mobiinside.co.kr/2019/07/31/seo-sitemap/|사이트맵을 쉽게 만드는 법]] ==== Etc. ==== * [[https://stackoverflow.com/questions/48068227/details-on-user-agent-mozilla-5-0-x11-ubuntu-linux-i686-rv24-0-gecko-2010|Details on user agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0]] \\ 삼성 SMS App 중에 URL을 test하는 traffic을 보내는 것이 존재 (허수 접속) ==== Google Tag Manager ==== * 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]] * There are currently no debuggable Google tags at that address. Please verify that: * 팝업 차단 풀어보기 ==== Naver Ads. ==== === 검색광고 === * [[https://saedu.naver.com/help/faq/ncc/view.nhn?faqSeq=120|URL 파라미터 넘기기]] * 도구 > 이력관리 : 어떤 키워드에 어떤 부분을 변경하였으며 어떤 사항이 변경이 됐는지 시간순으로 나열 === API사용하기 === [[https://naver.github.io/searchad-apidoc/#/guides|https://naver.github.io/searchad-apidoc/#/guides]] \\ [[https://github.com/naver/searchad-apidoc/tree/master/python-sample|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())) * [[https://github.com/naver/searchad-apidoc/issues/144|Master report, stat report 차이]] * MasterRport는 광고 데이터의 메타정보 예를 들면 캠페인 명이나 키워드명 등을 제공하는 기능입니다. \\ 내 광고 정보의 대부분을 특정 시점 스냅샷으로 다운로드 받을 수 있다고 생각해 주시면 되겠습니다. * StatReport는 일 단위 광고 집행 성과 정보 즉 보고서 지표를 제공하는 보고서 입니다 * 보통 양자를 각 엔티티의 ID(ex. 캠페인아이디, 광고 그룹아이디, 등록 키워드 아이디등)로 join 하여 사용하게 됩니다. * [[https://github.com/naver/searchad-apidoc/issues/30|다차원보고서]] * 다차원 보고서에서 사용되는 API는 /stats와 별도의 내부 API를 사용하고 있기 때문에 /stats를 이용하여 다차원 보고서와 동일한 지표를 확인하실수는 없습니다. * 대신에, /master-reports, /stat-reports API를 통하여 상세 지표를 직접 가공하여 원하시는 관점의 데이터를 만드실수 있습니다. ==== Salesforce.com Pardot ==== * Form 에서 연락처 정규식 검사하기 ([[https://thereclub.tistory.com/3|참고]]) * Pardot에서는 메일만 체크하고, 연락처는 검사하지 않음 $(".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 이벤트 전달을 중지함 } }); ==== Google Adsense ==== * 크기 제한하기 https://support.google.com/adsense/answer/9183363 다음은 반응형 광고 코드를 수정해 고정 높이는 90픽셀, 가변 폭은 400~970픽셀로 지정하는 방법입니다. * 일반적인 광고 크기 https://support.google.com/google-ads/answer/7031480 ==== Tips. ==== * 어떤 배너가 최근 트렌디하고 잘 먹히는지 알고 싶다면, 네이버 타임보드를. 현 시점 모든 에이전시의 가장 디자인 잘한다는 콘텐츠가 거기에 집약되어 있음 [[https://ppss.kr/archives/198153|link]] ~~DISCUSSION~~