助理技術文件
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # DSP 追蹤碼檢查 ###### tags: `查追蹤碼`、`GTM`、`DSP` ## 目的 本文件旨於說明如何簡單透過瀏覽器,檢查客戶網站,確認用GTM埋設的DSP平台追蹤碼是否能正確觸發,從源頭確認使用者的操作能否形成有效數據來源,以利後續廣告優化。 > 免責聲明: > 1.本文件使用大廣建設建案的追蹤碼埋設案例作為截圖範例,僅供公司內部教學使用與參考,請勿外傳。 > 2.隨著 DSP 更新,文件內容可能也會有些許差異,如果有任何變動,我們會盡快更新此文件。 > 3.此文件的檢查針對使用GTM埋設的案例,若不是使用GTM埋設,則此文件不適用此情況,請再另外洽詢相關人員 ### 相關說明 以下會簡略說明此文件內會使用到的相關詞彙,詳細閱讀如何操作前,請確認對這些詞彙有基礎的認識。 - GTM(Google Tag Manager): 綁定客戶網站與追蹤碼的平台 1. 在此平台取得的容器(一段原始碼),會放在客戶的網站中 2. 埋設的追蹤碼和對應的觸發行為會在GTM裡設定 - 追蹤碼: 指埋設於GTM的原始碼 1. 當使用者觸發追蹤行為後,此段原始碼會將此次行為記錄下來成為一筆數據 2. 每個平台有不同的格式,請按照不同平台的文件進行檢查 - 觸發條件: 指使用者產生的特定行為(如瀏覽網頁,跳轉網頁,點按按鈕),追蹤碼會記錄此行為,作為後續行銷的參考數據 - 無痕模式: 可於瀏覽器設定,不會儲存記錄的模式,可避免檢查受到其他因素影響 - 開發者工具: 瀏覽器提供的工具,可以看到網站傳送資料(追蹤)的紀錄 ## 步驟 1. 正式客戶網站檢查前,需先完成[前置作業](#前置作業),確定**檢查的項目符合數據需求**且**檢查環境無干擾** 1. 確認[追蹤碼文件](#追蹤碼文件)內容符合需求 2. 完成[瀏覽器設定](#瀏覽器設定)和[開發者工具設定](#開發者工具設定),避免因環境影響檢查結果 3. 於客戶網站[檢查GTM容器](#檢查GTM容器)是否有埋設,有GTM才能進行後續檢查 2. 在開發者工具上填入[正確資訊](#檢查DSP追蹤碼),並按照[不同事件](#瀏覽事件)動作來觸發追蹤碼 ![](https://i.imgur.com/3cExgUS.png) >以上步驟的詳細細節請見以下內容,也可以對照索引來快速瀏覽 ## 索引 - [目的](#目的) - [相關說明](#相關說明) - [步驟](#步驟) - [前置作業](#前置作業) - [追蹤碼文件](#追蹤碼文件) - [瀏覽器設定](#瀏覽器設定) - [開發者工具設定](#開發者工具設定) - [檢查GTM容器](#檢查GTM容器) - [DSP追蹤碼](#DSP追蹤碼) - [瀏覽事件](#瀏覽事件) - [全站瀏覽事件](#全站瀏覽事件) - [部分瀏覽事件](#部分瀏覽事件) - [按鈕事件](#按鈕事件) - [表單事件](#表單事件) - [總結](#總結) ### 前置作業 #### 追蹤碼文件 - 每次檢查都需要取得原始追蹤碼文件,裡面應包含以下資訊 1. 不同平台的追蹤碼 >圖中的MF代表MultiForce,裡面包含DSP和DMP的追蹤碼,此兩個平台一定綁定出現 2. 需要追蹤的事件 3. 綁定的位置(按鈕、網址) >按鈕可能會因電腦版或手機版的畫面尺寸變更,而導致位置不同,若文件內沒有附圖,再檢查前須先確認清楚 4. 表單的測試資料 5. [GTM的id和所在google 帳號](#檢查GTM容器) ![](https://i.imgur.com/3xM6vG9.png) ![](https://i.imgur.com/8UME2YI.png) ![](https://i.imgur.com/7FIzBRU.png) #### 瀏覽器設定 1. 請關閉 ADBlock 或防毒軟體 ![](https://i.imgur.com/XOYZpn3.png) 2. 請使用無痕模式 ![](https://i.imgur.com/I966WzA.jpg) #### 開發者工具設定 1. 滑鼠右鍵「檢查」或按 「F12」打開開發者工具 ![](https://i.imgur.com/SmOWL8i.jpg) 2. 進入「網路」 ![](https://i.imgur.com/tkSDwIy.jpg) 3. 使用開發者工具檢查時: 1. 開啟「保留記錄檔」 2. 停用「快取」 3. 選用「全部」 4. 若搜尋紀錄過多,可以點選「清除」 >每次搜尋都會跑很多資源,推薦每測試一種事件就清理一次,以便後續檢查與紀錄 ![](https://i.imgur.com/2FxJgH6.png) #### 檢查GTM容器 ##### 確認檢查網頁有無埋設GTM容器 1. 在「篩選」內填入"GTM"後重整頁面 2. 確認搜查結果是否有此次埋設追蹤碼的GTM容器id(GTM-id) >若無正確的GTM容器,不論GTM內是否已設定好追蹤碼,皆不會觸發事件,導致檢查無效,因此請先確認GTM再進行後續檢查 ![](https://i.imgur.com/UepKEDg.jpg) ### 檢查DSP追蹤碼 1. 檢查時在「篩選」內輸入`clickforce_rtid('id')`中的`id` 2. DSP不會顯示事件名稱,觸發的事件要看id辨別 ![](https://i.imgur.com/D7otbSK.png) ![](https://i.imgur.com/KMcjiK9.png) #### 瀏覽事件 Page View(PV) - 全站瀏覽事件: 網站內「所有」頁面都會觸發 - 瀏覽事件: 只在網站內「特定」頁面觸發 ##### 全站瀏覽事件 >全站瀏覽事件以下稱全站PV - 全站PV在網站內「所有」頁面都會觸發 - 同一頁面重整一次觸發一次 - 在GTM中,全站PV的觸發條件會選 "All Pages" - 檢查方法: 1. 在「篩選」內輸入`rtid` >若沒看到結果,可重整再確認 2. 點擊搜尋結果,進入「酬載」,確認觸發的`id`相同 ![](https://i.imgur.com/U4iJ22h.jpg) ![](https://i.imgur.com/ixcGR3k.png) ##### 部分瀏覽事件 - 和全站PV相似,但只在「特定」頁面觸發(可確認網址) - 同一頁面重整一次觸發一次 - 在GTM中,瀏覽事件的觸發條件會選 「網頁瀏覽」並填入特定網址 - 檢查方法: 1. 確認網址為特定頁面網址 >此處以感謝頁為例 2. 在「篩選」內輸入`rtid` >若沒看到結果,可重整再確認 3. 點擊搜尋結果,進入「酬載」,確認觸發的`id`相同 >有些感謝頁會設定一定時間後跳轉回首頁,此時只要確定有觸發紀錄即可 ![](https://i.imgur.com/XfvU6Lj.png) ![](https://i.imgur.com/cwZUnVe.png) ![](https://i.imgur.com/puAjZdL.png) #### 按鈕事件 - 點擊綁定事件的按鈕就會觸發一次 - 點按幾次觸發幾次 - 在GTM中,按鈕事件的觸發條件會選 「點擊」 - 檢查方法: 1. 點擊按鈕後在「篩選」內輸入`rtid` 2. 點擊搜尋結果,進入「酬載」,確認觸發的`id`相同 3. 需注意按鈕內的icon和文字是否也能觸發 4. 電腦版和手機版的按鈕位置可能會改變,兩種版本都要檢查 ![](https://i.imgur.com/iknpqk0.jpg) ![](https://i.imgur.com/PHHVujd.png) ![](https://i.imgur.com/QQLYcQl.png) ![](https://i.imgur.com/vWxsl8P.png) ![](https://i.imgur.com/G3rfmQ2.jpg) #### 表單事件 - 觸發條件多會綁訂在按鈕上 - 一般會做表單驗證,確認資料完整後,按送出按鈕才會觸發 - 若無驗證,則和一般按鈕事件一樣,點按幾次觸發幾次 - 若無驗證,須和客戶確認是否符合需求 - 在GTM中,按鈕事件的觸發條件會選 `「點擊」`,但可能會在HTML裡寫入驗證的程式碼 - 檢查方法: 1. 在「篩選」內輸入`rtid` 2. 輸入不完整測試資料 3. 在資料不完整的狀態下點擊按鈕,確認是否有觸發 4. 輸入完整測試資料,點擊按鈕 5. 需注意按鈕內的icon和文字是否也能觸發 6. 電腦版和手機版的按鈕位置可能會改變,兩種版本都要檢查 7. 點擊搜尋結果,進入「酬載」,確認觸發的`id`相同 >送出後頁面可能會跳轉,只要確定有觸發紀錄即可 ![](https://i.imgur.com/Ik0YurM.png) ![](https://i.imgur.com/CDsmVRk.png) ![](https://i.imgur.com/qvlYrvc.png) ![](https://i.imgur.com/BNj6RM7.png) ## 結語 以上內容為檢查使用GTM埋設DSP平台的追蹤碼的流程,請依照文件操作,若有任何問題,請盡量保留原始環境(有疑慮之網頁頁面),或截圖標示問題處,讓相關人員能更快理解並排除問題。 最後提醒,其餘埋設方式不在此文件描述範圍,請洽相關人員討論。 感謝您的耐心閱讀。

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully