助理技術文件
      • 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
    • 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 No publishing access yet

      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.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      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 New
    • Make a copy
    • 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 Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Make a copy 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
  • 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 No publishing access yet

    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.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ###### tags: `埋追蹤碼` # 追蹤碼埋設流程 **廣告碼種類**: GA (GOOGLE) : 查碼 UA、G- (新版) ADS (GOOGLE):查碼AW DV360(GOOGLE): 查碼DC DSP、DMP (域動) : 查碼rtid FB: 查碼 fb Yahoo Line --- **檢查追蹤碼**: 開F12查code 檢查pageview、usual 和ev(事件) DSP、DMP檢查範例→ capmapping.htm?rtid=9339001、Documentcapmapping.htm?rtid=9339002 GA檢查範例→ t: pageview DV360檢查範例→js?id=DC-10217099 FB檢查範例→ fbevents.js --- **產追蹤code**: ==DSP==→新增站點→填名稱、網址、行業別→ ![](https://i.imgur.com/5pvcnZ0.png) 新增事件→將CODE貼到檔案 ★用data-Admin帳號。 ==GA==(舊版)→建立帳戶→管理→資源設定→設定客層和與趣表(打開)、使用加強連結歸因(打開) 追蹤資訊→資料收集→廣告報表功能(打開) PV CODE:追蹤程式碼→將CODE貼到檔案(PV CODE) 事件CODE:目標→自訂→輸入事件名稱(中文描述)、選"事件"→填類別(填event)和動作(填function名稱)→貼gtag CODE 到事件檔裡改event 碼和 send_to碼 ★隱藏設定裡設定舊版 gtag('event', 'CFreceive', { 'event_category': 'event', 'send_to': 'UA-173428589-1' }); ==Google Ads==→ 選專案 (沒專案請需求者創專案) ![](https://i.imgur.com/pFH5oRg.png) →工具設定→轉換→網站→填類別、轉換名稱、價值選"不為此轉…"→選自行轉換代碼→code(兩個)貼到pv檔(pv code) 網站→填類別、轉換名稱、價值選"不為此轉…"→選自行轉換代碼→code(僅事件)貼到事件檔(事件code) ==Display&Video 360==(DV360) 選專案 (沒專案請需求者創專案) →新增→resources→floodlight→新增→web→填 name(中文)、format(Global)、type(counter)、Counting method(Standard)、Attribution(勾)、Remarketing(必勾)→code(兩個)貼到pv檔(pv code) 新增→resources→floodlight→新增→web→填 name、format(Global)、type(counter)、Counting method(Standard)、Attribution(勾)、Remarketing(必勾)→code貼到事件檔(事件code) ==Line、FB、yahoo==:追蹤code來自客戶給的檔 --- **埋code**: ==GTM==→ 建立GTM容器code→ 建立帳戶→填帳戶名稱、容器名稱(客戶沒提供就用域動的網址)→點選網路→建立。 1.code給客戶埋(容器code) 將head和body 的 code 各自新增一支html檔案。檔名範例: 請將這段程式碼放在網頁最上方的 <head> 中 2.code幫客戶埋 pv碼設定: 工作區→代碼→新增→命名代碼、代碼設定(自訂HTML→將pv碼貼上→選擇觸發條件)→儲存 事件碼設定: 工作區→代碼→新增→命名代碼、代碼設定(自訂HTML→將事件碼貼上(function內的code)→選擇觸發條件→新增觸發條件→命名、觸發條件設定(所有元素→選部份點擊→選click Element、符合css選擇器、到客戶網站的事件點copy selector下來))→儲存 ★pv click事件設置: ![](https://i.imgur.com/773rR1J.png) 3.檢查埋碼有無成功 ![](https://i.imgur.com/pLdi63k.png) 4.按"提交" (名稱範例:clickforce_v1) ★一般selector抓取元素點擊無效時的設定法↓ ![](https://i.imgur.com/3kw4gws.png) ps.表單需判斷不得為空才觸發事件code ``` <script> function CFsubmit() { clickforce_rtid("9379006"); ElandTracker.Track({ 'source': 'CAP9379', 'trackType': 'click', 'trackSubfolderDepth': 3, 'targetType': 'CFsubmit' }); gtag('event', 'conversion', { 'send_to': 'AW-615551387/io6QCKbJ1t8BEJujwqUC' }); gtag('event', 'CFsubmit', { 'event_category': 'event', 'send_to': 'UA-178755716-1' }); } var submitGtm = document.getElementById('9527'); submitGtm.addEventListener('click', function () { var nameValue = document.getElementById('form-field-name').value; var emailValue = document.getElementById('form-field-email').value; var telValue = document.getElementById('form-field-field_57e9c8f').value; if (nameValue !== '' && emailValue !== '' && telValue !== '') { CFsubmit(); } }); </script> ``` 追蹤碼範例檔案: https://drive.google.com/file/d/1MMb7h_MfzsbOsg7PLAJ9RieMiTK_dDcE/view?usp=sharing

    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
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    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