How Tag Manager works
標籤管理器如何運作
The structure of Google Tag Manager
Google標籤管理器的結構
To begin using Tag Manager, you’ll place some JavaScript code called a “container snippet” on each page of your website.
要開始使用標籤管理器,你將在網站的每一個頁面上放置一些JavaScript代碼-我們稱之為”集裝箱片段”。
You can then add, delete, or make changes to tags using Tag Manager to publish them to the container snippet, instead of making manual changes to the site code itself. When users visit your website, the container snippet will trigger tags based on firing instructions you’ve set up in Tag Manager, and communicate any data you’ve specified back to other systems such as Google Analytics.
你可以使用標籤管理器對標籤進行新增、刪除或做某些變更來發佈到集裝箱片段上,而不是在網站上進行手動程式變更。當使用者拜訪你的網站,集裝箱片段將觸發你已設定在標籤管理器中的指令,並連結任何你已定義要回覆至其他系統(例如google分析)所需的資料。
Let’s take a look at how Tag Manager is structured.
讓我們看看標籤管理器如何被建構。
Google Tag Manager administration happens at the account level, which allows you to manage tags for one or more websites. Typically, you’ll only need one Tag Manager account per company or organization. But, if you manage website tracking for several companies, you can connect multiple Tag Manager accounts to a single user’s Google account.
Google標籤管理器的總管理功能發生在帳戶級別,它允許你管理一個至多個網站的標籤。通常情況下,你針對一個公司或組織只需要一個標籤管理帳戶。但如果你管理了許多公司的網站追蹤,你可以連結多個標籤管理帳戶在同一個使用者的Google帳號。
For example, if an agency manages tags on behalf of an advertiser such as The Great Outdoors, The Great Outdoors should create the Tag Manager account and grant the agency access. Multiple users can also manage the same Tag Manager account, and each user can be granted different access permissions by account administrators.
例如,假設The Great Outdoors身為廣告主並使得某個代理者代為協助管理標籤,The Great Outdoors應該建立一個標籤管理帳戶並授予代理者訪問許可。不同的使用者可以一起管理一個標籤管理帳戶,而針對不同的使用者都可以用使用者管理功能授予他們不同的訪問權限。Containers and Triggers
Each Tag Manager account has at least one container. A container includes the tags and “triggers” that determine when those tags should fire or collect data. For example, a container may include a tag that communicates when users have made a purchase with a trigger that instructs the tag not to fire until a thank-you page comes up and a transaction is complete. Typically, you’ll have one container for each website domain, though you can use a single container for cross-domain tracking.
每個標籤管理器帳戶至少有一個集裝箱。集裝箱包括標籤和“觸發器”,這可以決定標籤應該在何時被觸發並收集數據。例如,集裝箱中可能包含一個當使用者已進行付費時傳送數據的標籤,而觸發器會指示標籤不要觸發傳送動作 - 直到感謝付費完成的頁面顯示時才完成傳輸。通常情況下,雖然你可以使用一個集裝箱去做跨網域追蹤,但你可以針對每個網域有各自的一個集裝箱。
Triggers are made up of variables, operators, and values.
觸發器是由變數、運算式和值,組合而成。
Variables are placeholders for values that you define. There are two kinds of variables: built-in variables and user-defined variables. Built-in variables such as
變數是您所定義的值的替代字符。有兩種類型的變數:內建變數和使用者自訂變數。內建變數,例如{{page path}}(頁面路徑)或{{click id}} (點擊ID)都已經在標籤管理器中預設配置給你,你只需要選擇它們,以啟用它們。{{page path}} or {{click id}}have already been configured for you in Tag Manager, and you simply have to select them, in order to activate them.
User-defined variables are custom variables that you can create, such as
使用者自訂變數是你可以自行新增定義的變數,例如以{{purchaseComplete}}(付費完成)作為替代字符去擷取交易已經成立的時間點。在新增一個使用者自訂變數的時候,你可以選擇變數的類型,這可以幫助您收集不同種類的數據,或者建立一個能在整個網站中重複使用的字串。{{purchaseComplete}} , to capture when a transaction has been made. When creating a user-defined variable, you can choose from variable types that can help you collect different kinds of data or create reusable strings that can be used throughout your website.
Operators define the relationship between the variable and the value that must be true in order for a trigger to fire. An operator could be something like “equals,” “contains,” or “doesn’t contain”. For example, if you only wanted a tag to fire when a user completed a transaction, you might set up a tag trigger that fires when the variable
運算式定義了變數與值之間所成立的關係,透過成立兩者的關係去啟動觸發器。一個運算式可能代表”等於”、”包含”、”不包含”。例如,如果你想要在使用者完成交易時讓觸發器被啟動,你可能會設定變數{{url}}(連結網址)”等於”你的結帳頁面網址“checkout.html”。你也可以設定多個觸發器都必須成立才讓標籤啟動。{{url}} equals the value of your checkout page “checkout.html”. You can also set up multiple triggers that must all be true before a tag will fire.
Triggers fire tags in response to events, which are any website actions taken by the user.
觸發器會啟動標籤去回應一些事件,而事件則指使用者在網站中執行的動作。
You can set triggers in response to simple events such as a page loading, or you can set custom event tags that fire in response to specific actions like when a user clicks on a submit button for a form. Each tag must have at least one trigger in order to fire and all triggers are initiated by website events.
你可以設定一些觸發器去回應一些簡單的事件,例如網站載入的動作,或是你可以設定自訂的事件標籤去觸發回應一些特定的動作-例如當使用者針對表單點擊了提交的按鈕。每個標籤至少需要有一個觸發器讓它可以被啟動,而且所有觸發器都是由網站事件所發起。
Triggers, variables, and events in Tag Manager let you control when tags fire in response to specific user actions. This can help you customize the way that tags work with your website and enable you to collect valuable marketing information.
觸發器、變數和事件在標籤管理器中可以讓你決定何時應回傳特定的使用者操作動作。這可以幫助你自訂標籤在你網站的運作方式,並可以讓你收集有價值的行銷資訊。
沒有留言:
張貼留言