<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Google Tag Manager 彙整 - 韓哥數位行銷私塾</title>
	<atom:link href="https://hanyalun.com/category/google-tag-manager/feed/" rel="self" type="application/rss+xml" />
	<link>https://hanyalun.com/category/google-tag-manager/</link>
	<description></description>
	<lastBuildDate>Wed, 18 May 2022 09:16:10 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://hanyalun.com/wp-content/uploads/2019/08/han_icon_100-75x75.png</url>
	<title>Google Tag Manager 彙整 - 韓哥數位行銷私塾</title>
	<link>https://hanyalun.com/category/google-tag-manager/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>用GTM元素可見度來設定WordPress Contact Form 7轉換追蹤</title>
		<link>https://hanyalun.com/471/gtm-wordpress-contact-form-7/</link>
		
		<dc:creator><![CDATA[Allen]]></dc:creator>
		<pubDate>Fri, 02 Jul 2021 16:30:26 +0000</pubDate>
				<category><![CDATA[Google Tag Manager]]></category>
		<category><![CDATA[Contact Form 7]]></category>
		<guid isPermaLink="false">https://hanyalun.com/?p=471</guid>

					<description><![CDATA[<p>從上篇「如何使用GTM設定GA點擊事件追蹤？以WordPress聯絡表單7為例」有提到如何透過「點擊事件」快速 [&#8230;]</p>
<p>這篇文章 <a href="https://hanyalun.com/471/gtm-wordpress-contact-form-7/">用GTM元素可見度來設定WordPress Contact Form 7轉換追蹤</a> 最早出現於 <a href="https://hanyalun.com">韓哥數位行銷私塾</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>從上篇「<a href="https://hanyalun.com/239/gtm-event-tracking-for-wordpress-cf7/" target="_blank" rel="noopener">如何使用GTM設定GA點擊事件追蹤？以WordPress聯絡表單7為例</a>」有提到如何透過「點擊事件」快速的在GTM中設置Contact Form 7的表單轉換追蹤，但後續也有檢討該方法其實是會產生數據追蹤落差，今天要來教大家透過GTM「元素可見度」的方式來更精確的追蹤表單送出後的轉換動作。</p>
<p><strong>這個方法是透過 Contact Form 7 在正確送出表單後，會顯示一串傳送成功的訊息，我們利用它「只有送出成功才會出現的特性」來作為轉換目標的設定。</strong></p>
<p>因此我們會需要兩樣資訊：</p>
<p>1. 傳送成功訊息的Class名稱</p>
<p>2. 傳送成功訊息的內容</p>
<p>// 進入正題</p>
<h2>步驟一：確認表單屬性(Class)以及傳送成功訊息的內容</h2>
<p>首先，你得實際成功送出一張表單，以正常未經過特殊設定的Contact Form 7表單來說，會在傳送成功後，給你一串訊息。而我們在這串訊息直接點「右鍵 &gt; 檢查」(Chrome瀏覽器)，就可以看到圖中資訊。</p>
<figure id="attachment_551" aria-describedby="caption-attachment-551" style="width: 2036px" class="wp-caption alignnone"><img fetchpriority="high" decoding="async" class="wp-image-551 size-full" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-1.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="2036" height="858" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-1.png 2036w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-1-300x126.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-1-1024x432.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-1-768x324.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-1-1536x647.png 1536w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-1-750x316.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-1-1140x480.png 1140w" sizes="(max-width: 2036px) 100vw, 2036px" /><figcaption id="caption-attachment-551" class="wp-caption-text">圖1. 確認表單屬性(Class)以及傳送成功訊息的內容</figcaption></figure>
<p>以範例網站的資訊來說：</p>
<p>1. 傳送成功訊息的Class名稱：「wpcf7-response-output」</p>
<p>2. 傳送成功訊息的內容：「感謝你的留言，已將留言傳送給站務人員。」</p>
<p>備註：Class基本上不會變動，但是訊息內容可以改變(圖2)，若是有修改，在後續的步驟也記得一併修改，否則便不會觸發轉換追蹤。</p>
<figure id="attachment_552" aria-describedby="caption-attachment-552" style="width: 1938px" class="wp-caption alignnone"><img decoding="async" class="size-full wp-image-552" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-2.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="1938" height="586" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-2.png 1938w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-2-300x91.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-2-1024x310.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-2-768x232.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-2-1536x464.png 1536w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-2-750x227.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-2-1140x345.png 1140w" sizes="(max-width: 1938px) 100vw, 1938px" /><figcaption id="caption-attachment-552" class="wp-caption-text">圖2. Contact Form 7 後台可變更傳送成功訊息</figcaption></figure>
<h2>步驟二：設定GTM觸發條件「元素可見度」</h2>
<p>進到GTM中，我們在「觸發條件」處「新增」一個觸發條件，並選擇「元素可見度」。</p>
<figure id="attachment_553" aria-describedby="caption-attachment-553" style="width: 1980px" class="wp-caption alignnone"><img decoding="async" class="wp-image-553 size-full" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-3.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="1980" height="752" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-3.png 1980w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-3-300x114.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-3-1024x389.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-3-768x292.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-3-1536x583.png 1536w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-3-750x285.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-3-1140x433.png 1140w" sizes="(max-width: 1980px) 100vw, 1980px" /><figcaption id="caption-attachment-553" class="wp-caption-text">圖3. 設定觸發條件並選擇元素可見度</figcaption></figure>
<p>接著開始設定：</p>
<h3>1. 選取方式</h3>
<p>選擇「CSS選取器」</p>
<h3>2. 元素選擇器</h3>
<p>填入剛剛記錄的Class名稱，「.wpcf7-response-output」</p>
<p>(前面加「.」是因為CSS語法選擇器為Class的關係，如果是ID則是用「#」有興趣可以去參考CSS基礎教學)</p>
<h3>3. 啟動此觸發條件的時間</h3>
<p>選擇「每個網頁一次」</p>
<figure id="attachment_554" aria-describedby="caption-attachment-554" style="width: 2200px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-554 size-full" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="2200" height="1102" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4.png 2200w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4-300x150.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4-1024x513.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4-768x385.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4-1536x769.png 1536w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4-2048x1026.png 2048w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4-360x180.png 360w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4-750x376.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-4-1140x571.png 1140w" sizes="(max-width: 2200px) 100vw, 2200px" /><figcaption id="caption-attachment-554" class="wp-caption-text">圖4. 元素可見度設定剛剛記錄的Class值</figcaption></figure>
<h3>4. 最低可見百分比</h3>
<p>填寫「1」，意思為當有元素出現馬上就觸發。</p>
<h3>5.  勾選「觀察 DOM 改變情形」</h3>
<h3>6. 這項觸發條件的啟動時機</h3>
<p>點選「部分可見度事件」，選擇「Click Text」「等於」傳送成功訊息的內容：「感謝你的留言，已將留言傳送給站務人員。」設定完後按下右上角的儲存。</p>
<p>備註：再次提醒，若是有去後台修改訊息內容，要在這邊修改，否則不會觸發。這也可以衍伸成不同表單的觸發條件，例如：可以針對三個不同的需求開立三個表單，並在傳送成功訊息內容做出差異化，便可以追蹤不同的表單轉換。</p>
<figure id="attachment_555" aria-describedby="caption-attachment-555" style="width: 2194px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-555 size-full" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-5.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="2194" height="1028" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-5.png 2194w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-5-300x141.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-5-1024x480.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-5-768x360.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-5-1536x720.png 1536w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-5-2048x960.png 2048w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-5-750x351.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-5-1140x534.png 1140w" sizes="(max-width: 2194px) 100vw, 2194px" /><figcaption id="caption-attachment-555" class="wp-caption-text">圖5. 部分可見度事件設定剛剛記錄的傳送成功訊息</figcaption></figure>
<h2>步驟三：設定GTM代碼「GA通用版事件」</h2>
<p>(GA4的設定方法後續更新)</p>
<p>完成觸發條件設定後，回到主畫面，點選「代碼」，新增「Google Analytics (分析)：通用 Analytics (分析)」。</p>
<figure id="attachment_556" aria-describedby="caption-attachment-556" style="width: 2252px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full wp-image-556" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-6.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="2252" height="666" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-6.png 2252w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-6-300x89.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-6-1024x303.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-6-768x227.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-6-1536x454.png 1536w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-6-2048x606.png 2048w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-6-750x222.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-6-1140x337.png 1140w" sizes="(max-width: 2252px) 100vw, 2252px" /><figcaption id="caption-attachment-556" class="wp-caption-text">圖6. 新增GA通用版代碼</figcaption></figure>
<p>在追蹤類型選擇「事件」，下方有事件追蹤參數，分別是「類別」、「動作」、「標籤」、「值」填寫的越完整，越可以在GA分析到更深的層面，但如果資訊不夠或不多，建議起碼填上「類別」、「動作」(參考圖7)，詳細的事件追蹤參數可以參考官方「<a href="https://support.google.com/analytics/answer/1033068" target="_blank" rel="noopener">事件簡介</a>」。</p>
<p>這邊所設定的事件追蹤參數，請一定要記錄起來，因為還要設定到GA的「目標」才能有效的在GA內將事件變成目標轉換數。</p>
<figure id="attachment_557" aria-describedby="caption-attachment-557" style="width: 1464px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full wp-image-557" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-7.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="1464" height="1310" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-7.png 1464w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-7-300x268.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-7-1024x916.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-7-768x687.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-7-750x671.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-7-1140x1020.png 1140w" sizes="(max-width: 1464px) 100vw, 1464px" /><figcaption id="caption-attachment-557" class="wp-caption-text">圖7. 設定GA事件追蹤參數</figcaption></figure>
<p>下方的GA分析設定，記得選擇網站目前的GA代碼，下方的觸發條件，就選擇剛剛步驟二設定的元素可見度觸發條件。</p>
<figure id="attachment_558" aria-describedby="caption-attachment-558" style="width: 1196px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-558 size-full" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-8.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="1196" height="1290" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-8.png 1196w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-8-278x300.png 278w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-8-949x1024.png 949w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-8-768x828.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-8-750x809.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-8-1140x1230.png 1140w" sizes="(max-width: 1196px) 100vw, 1196px" /><figcaption id="caption-attachment-558" class="wp-caption-text">圖8. 代碼要設定步驟二的元素可見度作為觸發條件</figcaption></figure>
<p>正確完成以上步驟後，主頁面便會多一個代碼，觸發條件為步驟二設定的元素可見度。</p>
<figure id="attachment_559" aria-describedby="caption-attachment-559" style="width: 2540px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-559 size-full" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-9.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="2540" height="642" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-9.png 2540w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-9-300x76.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-9-1024x259.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-9-768x194.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-9-1536x388.png 1536w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-9-2048x518.png 2048w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-9-750x190.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-9-1140x288.png 1140w" sizes="(max-width: 2540px) 100vw, 2540px" /><figcaption id="caption-attachment-559" class="wp-caption-text">圖9. 完成後在GTM主頁確認代碼項目</figcaption></figure>
<p>在送出前建議先到瀏覽模式，在瀏覽模式的網站中，實際送出一張表單，若成功設置，便會在表單送出後，左側出現「Element Visibility」右側的Tags Fired處會出現剛剛設定的代碼(圖10)，這樣表示成功觸發，可點進去看觸發的記錄(圖11)</p>
<figure id="attachment_560" aria-describedby="caption-attachment-560" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full wp-image-560" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-10.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="1364" height="506" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-10.png 1364w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-10-300x111.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-10-1024x380.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-10-768x285.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-10-750x278.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-10-1140x423.png 1140w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-560" class="wp-caption-text">圖10. 確認預覽模式成功觸發代碼</figcaption></figure>
<figure id="attachment_561" aria-describedby="caption-attachment-561" style="width: 1160px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-561 size-full" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-11.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="1160" height="1304" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-11.png 1160w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-11-267x300.png 267w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-11-911x1024.png 911w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-11-768x863.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-11-750x843.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-11-1140x1282.png 1140w" sizes="(max-width: 1160px) 100vw, 1160px" /><figcaption id="caption-attachment-561" class="wp-caption-text">圖11. 進入觸發的代碼可詳細確認觸發項目</figcaption></figure>
<p>在預覽模式都確認沒問題之後，記得回到GTM主畫面，按下「提交 &gt; 發布」並大方的唱首歌！</p>
<h2>步驟四：設定GA「目標」</h2>
<p>剛剛有說到，要把GTM設定事件追蹤參數記錄起來，以便在GA的目標中，將事件透過目標記錄成轉換。</p>
<p>前往GA後台，並找到目標，按新增目標，設定如下：</p>
<p>目標設定：自訂</p>
<p>名稱：聯絡我們表單 (可自行變更)</p>
<p>目標類型：事件</p>
<p>事件條件：類別及動作，就是設定剛剛GTM設定的事件追蹤參數(圖7)</p>
<figure id="attachment_562" aria-describedby="caption-attachment-562" style="width: 2256px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full wp-image-562" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-12.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="2256" height="1250" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-12.png 2256w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-12-300x166.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-12-1024x567.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-12-768x426.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-12-1536x851.png 1536w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-12-2048x1135.png 2048w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-12-750x416.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-12-1140x632.png 1140w" sizes="(max-width: 2256px) 100vw, 2256px" /><figcaption id="caption-attachment-562" class="wp-caption-text">圖12. 進入GA目標設定，選擇事件並填入事件追蹤參數</figcaption></figure>
<p>目標設定完成，可以實際透過GA即時功能，測試事件與轉換是否有設定成功。前往前台實際送出聯絡表單，並進到GA「即時」報表，分別在「事件」及「轉換」處，觀察是否在送出表單後，GA有正確記錄到，如果都有，恭喜你成功了。</p>
<figure id="attachment_563" aria-describedby="caption-attachment-563" style="width: 1718px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full wp-image-563" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-13.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="1718" height="700" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-13.png 1718w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-13-300x122.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-13-1024x417.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-13-768x313.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-13-1536x626.png 1536w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-13-750x306.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-13-1140x464.png 1140w" sizes="(max-width: 1718px) 100vw, 1718px" /><figcaption id="caption-attachment-563" class="wp-caption-text">圖13. 透過GA即時報表測試「事件」是否成功觸發</figcaption></figure>
<figure id="attachment_564" aria-describedby="caption-attachment-564" style="width: 1444px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="size-full wp-image-564" src="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-14.png" alt="用GTM元素可見度來設定WordPress  Contact Form 7轉換追蹤" width="1444" height="712" srcset="https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-14.png 1444w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-14-300x148.png 300w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-14-1024x505.png 1024w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-14-768x379.png 768w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-14-750x370.png 750w, https://hanyalun.com/wp-content/uploads/2021/07/Element-Visibility-14-1140x562.png 1140w" sizes="(max-width: 1444px) 100vw, 1444px" /><figcaption id="caption-attachment-564" class="wp-caption-text">圖14. 透過GA即時報表測試「目標轉換」是否成功觸發</figcaption></figure>
<p>以上四步驟，簡單教大家如何更準確的去記錄Contact Form7的表單傳送轉換，未來不論是透過廣告或者其他行銷活動，都能過透過GA的數據追蹤，更容易去評估表單所帶來的效益。</p>
<p>備註：如果要設置成Google Ads的轉換代碼，只要新增一個Google Ads轉換代碼，並把步驟二的觸發條件加上，就完成了。至於要如何設定Google Ads轉換代碼？可參考「<a href="https://hanyalun.com/301/gtm-google-ads-conversion-tracking-for-line/" target="_blank" rel="noopener">運用GTM埋設GOOGLE ADS轉換追蹤代碼，以LINE加入好友連結為例</a>」內的第二步。</p>
<p>參考資訊：<a href="https://support.google.com/analytics/answer/1033068" target="_blank" rel="noopener">「事件」簡介</a>、<a href="https://support.google.com/tagmanager/answer/7679410">元素可見度觸發條件</a></p>
<p>謝謝大家觀看，有任何操作問題，隨時歡迎透過 <a href="https://line.me/ti/p/@708zbiyb" target="_blank" rel="noopener">LINE</a> 向我諮詢。</p>
<p>這篇文章 <a href="https://hanyalun.com/471/gtm-wordpress-contact-form-7/">用GTM元素可見度來設定WordPress Contact Form 7轉換追蹤</a> 最早出現於 <a href="https://hanyalun.com">韓哥數位行銷私塾</a>。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查</title>
		<link>https://hanyalun.com/401/gtm-line-tag/</link>
					<comments>https://hanyalun.com/401/gtm-line-tag/#respond</comments>
		
		<dc:creator><![CDATA[Allen]]></dc:creator>
		<pubDate>Sat, 05 Jun 2021 10:03:32 +0000</pubDate>
				<category><![CDATA[Google Tag Manager]]></category>
		<category><![CDATA[LINE]]></category>
		<guid isPermaLink="false">https://hanyalun.com/?p=401</guid>

					<description><![CDATA[<p>LINE日前推出了LINE Biz-Solutions，主要針對企業提供各式LINE的行銷解決方案，其中我覺得 [&#8230;]</p>
<p>這篇文章 <a href="https://hanyalun.com/401/gtm-line-tag/">如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查</a> 最早出現於 <a href="https://hanyalun.com">韓哥數位行銷私塾</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>LINE日前推出了<a href="https://tw.linebiz.com/" target="_blank" rel="noopener">LINE Biz-Solutions</a>，主要針對企業提供各式LINE的行銷解決方案，其中我覺得最有亮點的就是 <a href="https://tw.linebiz.com/service/display-solutions/line-ads-platform/" target="_blank" rel="noopener">LINE成效型廣告 (LINE Ads Platform, LAP)</a>，既然是廣告，作為一個行銷人，第一直覺一定得想到「追蹤」，唯有好的追蹤，才能準確的評估廣告的效果，是吧？</p>
<p>LINE在這部分，分別於「LINE官方帳號」以及「LINE成效型廣告」都提供了「LINE Tag」追蹤碼供廣告主針對訊息到達頁做埋設，便於評估群發訊息後的轉換以及後續可建立自訂受眾。</p>
<p>// LINE Tag追蹤碼，其實就是類似Google Analytics追蹤碼以及Facebook的像素(Pixel)，都是用來追蹤網站種種狀態。</p>
<p>剛剛提到，LINE Tag在官方帳號以及成效型廣告內都有提供不同追蹤碼，這樣要用哪一個？答案是兩個都要裝，而裝了之後可以透過「共享 Tag」功能使用彼此的數據，本篇先教大家使用Google Tag Manager安裝LINE Tag的基本程式碼，陸續再分享轉換與自訂事件追蹤碼的安裝方法。</p>
<p>// 此篇的前提為，須先擁有LINE官方帳號以及LINE成效型廣告帳號</p>
<h2>Step1. 取得LINE Tag 基本程式碼 (Base code)</h2>
<h3>1.1 取得LINE官方帳號的LINE Tag</h3>
<p>登入<a href="https://manager.line.biz/" target="_blank" rel="noopener">LINE官方帳號管理頁面</a>，選擇欲安裝LINE Tag的官方帳號，點選側欄的「資料管理」&gt;「追蹤 (LINE Tag)」，看到基本程式碼後，直接按右上角的複製，就是如此簡單。</p>
<h3><img loading="lazy" decoding="async" class="alignnone size-full wp-image-403" src="https://hanyalun.com/wp-content/uploads/2021/06/linetag-2.png" alt="如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查" width="2466" height="1194" srcset="https://hanyalun.com/wp-content/uploads/2021/06/linetag-2.png 2466w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-2-300x145.png 300w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-2-1024x496.png 1024w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-2-768x372.png 768w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-2-1536x744.png 1536w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-2-2048x992.png 2048w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-2-750x363.png 750w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-2-1140x552.png 1140w" sizes="(max-width: 2466px) 100vw, 2466px" />1.2 取得LINE成效型廣告的LINE Tag</h3>
<p>登入<a href="https://admanager.line.biz/" target="_blank" rel="noopener">LINE成效型廣告管理頁面</a>，選擇欲安裝LINE Tag的廣告帳號，點選左上角的三條線按鈕，接著點選「共享的資料庫」&gt;「追蹤 (LINE Tag)」，一樣看到基本程式碼後，按下複製，依舊如此簡單。</p>
<h2><img loading="lazy" decoding="async" class="alignnone size-full wp-image-405" src="https://hanyalun.com/wp-content/uploads/2021/06/linetag-8.png" alt="如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查" width="2554" height="506" srcset="https://hanyalun.com/wp-content/uploads/2021/06/linetag-8.png 2554w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-8-300x59.png 300w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-8-1024x203.png 1024w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-8-768x152.png 768w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-8-1536x304.png 1536w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-8-2048x406.png 2048w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-8-750x149.png 750w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-8-1140x226.png 1140w" sizes="(max-width: 2554px) 100vw, 2554px" /><img loading="lazy" decoding="async" class="alignnone size-full wp-image-406" src="https://hanyalun.com/wp-content/uploads/2021/06/linetag-9.png" alt="如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查" width="2154" height="968" srcset="https://hanyalun.com/wp-content/uploads/2021/06/linetag-9.png 2154w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-9-300x135.png 300w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-9-1024x460.png 1024w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-9-768x345.png 768w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-9-1536x690.png 1536w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-9-2048x920.png 2048w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-9-750x337.png 750w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-9-1140x512.png 1140w" sizes="(max-width: 2154px) 100vw, 2154px" />Step2. 在GTM中新增LINE Tag基本程式碼</h2>
<p>// 前提是已經在網站中正確埋設GTM追蹤碼</p>
<p>開啟 <a href="https://tagmanager.google.com/" target="_blank" rel="noopener">Google Tag Manager</a>，點選要安裝的網站帳戶(如果有管理很多網站的話)，直接在「代碼」處按「新增」並在代碼設定選擇「自訂 HTML」，將LINE官方帳號的LINE Tag與LINE成效型廣告的LINE Tag「<strong>分別」</strong>新增。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-407" src="https://hanyalun.com/wp-content/uploads/2021/06/linetag-3.png" alt="如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查" width="2526" height="1286" srcset="https://hanyalun.com/wp-content/uploads/2021/06/linetag-3.png 2526w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-3-300x153.png 300w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-3-1024x521.png 1024w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-3-768x391.png 768w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-3-1536x782.png 1536w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-3-2048x1043.png 2048w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-3-750x382.png 750w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-3-1140x580.png 1140w" sizes="(max-width: 2526px) 100vw, 2526px" /></p>
<p>// 注意！分別的意思就是要新增兩個代碼，不是貼在同一個代碼內喔！因為步驟一樣，僅用一張圖示意。</p>
<p>觸發條件選擇「All Pages」後按「儲存」之後就是「提交」。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-408" src="https://hanyalun.com/wp-content/uploads/2021/06/linetag-4.png" alt="如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查" width="2536" height="1302" srcset="https://hanyalun.com/wp-content/uploads/2021/06/linetag-4.png 2536w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-4-300x154.png 300w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-4-1024x526.png 1024w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-4-768x394.png 768w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-4-1536x789.png 1536w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-4-2048x1051.png 2048w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-4-750x385.png 750w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-4-1140x585.png 1140w" sizes="(max-width: 2536px) 100vw, 2536px" />// 謹慎一點的人，可以在儲存後先用「預覽」確認基本程式碼有被安裝，而網站其它的設定及顯示也沒有受到影響，確認都沒問題後再按下「提交 &gt; 發布」。</p>
<h2><img loading="lazy" decoding="async" class="alignnone size-full wp-image-409" src="https://hanyalun.com/wp-content/uploads/2021/06/linetag-10.png" alt="如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查" width="2550" height="862" srcset="https://hanyalun.com/wp-content/uploads/2021/06/linetag-10.png 2550w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-10-300x101.png 300w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-10-1024x346.png 1024w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-10-768x260.png 768w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-10-1536x519.png 1536w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-10-2048x692.png 2048w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-10-750x254.png 750w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-10-1140x385.png 1140w" sizes="(max-width: 2550px) 100vw, 2550px" />Step3. 使用LINE Tag Helper檢查</h2>
<p>安裝LINE Tag之後要如何檢查是否正確安裝？LINE自己出了一個Chrome插件「<a href="https://chrome.google.com/webstore/detail/line-tag-helper/jgnholagndjghcjedffhinifilbjmklg?hl=zh-TW" target="_blank" rel="noopener">LINE Tag Helper</a>」來供大家檢查。用法相當簡單，只要將其加入Chrome之後，Chrome瀏覽器的擴充功能就會出現LINE Tag Helper的icon，在安裝完LINE Tag的網站點擊後，就可以確認是否正確安裝，基本上亮綠燈就是正確安裝囉。</p>
<p>// 若亮紅燈可能是安裝位置錯誤，以用GTM安裝來看，要去檢查GTM的安裝位置是不是在&lt;head&gt;內。</p>
<p>// LINE Tag Helper類似Google的Tag Assistant以及Facebook的Facebook Pixel Helper，用法都是一樣的。</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-412" src="https://hanyalun.com/wp-content/uploads/2021/06/linetag-11.png" alt="如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查" width="910" height="1128" srcset="https://hanyalun.com/wp-content/uploads/2021/06/linetag-11.png 910w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-11-242x300.png 242w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-11-826x1024.png 826w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-11-768x952.png 768w, https://hanyalun.com/wp-content/uploads/2021/06/linetag-11-750x930.png 750w" sizes="(max-width: 910px) 100vw, 910px" />// 如果真的在操作上有困難，可以參考「<a href="https://lbstw-static.lineverda-scdn.net/images/uploads/download_files/cd98808e8c63b5837c95ff862b0e1aed/LINE%20Tag%20Helper%20Manual_2021_03.pdf">LINE Tag Helper操作手冊</a>」</p>
<p>// 若連結無法點擊，可直接上Google搜尋「LINE Tag Helper Manual」</p>
<p>參考資訊：<a href="https://tw.linebiz.com/manual/line-official-account/oa-manager-linetag" target="_blank" rel="noopener">LINE官方帳號追蹤(LINE Tag)</a>、<a href="https://tw.linebiz.com/manual/lap/linetag" target="_blank" rel="noopener">LINE成效型廣告(LINE Tag)</a>、<a href="https://tw.linebiz.com/login/" target="_blank" rel="noopener">LINE Biz-Solutions相關登入管理頁面</a></p>
<p>這篇文章 <a href="https://hanyalun.com/401/gtm-line-tag/">如何透過GTM安裝LINE Tag追蹤碼？並使用LINE Tag Helper檢查</a> 最早出現於 <a href="https://hanyalun.com">韓哥數位行銷私塾</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hanyalun.com/401/gtm-line-tag/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>運用GTM埋設Google Ads轉換追蹤代碼，以LINE加入好友連結為例</title>
		<link>https://hanyalun.com/301/gtm-google-ads-conversion-tracking-for-line/</link>
					<comments>https://hanyalun.com/301/gtm-google-ads-conversion-tracking-for-line/#comments</comments>
		
		<dc:creator><![CDATA[Allen]]></dc:creator>
		<pubDate>Sat, 28 Nov 2020 15:25:54 +0000</pubDate>
				<category><![CDATA[Google Ads]]></category>
		<category><![CDATA[Google Tag Manager]]></category>
		<category><![CDATA[LINE]]></category>
		<guid isPermaLink="false">https://hanyalun.com/?p=301</guid>

					<description><![CDATA[<p>零程式基礎也能輕鬆設定Google Ads轉換追蹤 有使用一定時間Google Ads投放的人一定會遇到這樣的 [&#8230;]</p>
<p>這篇文章 <a href="https://hanyalun.com/301/gtm-google-ads-conversion-tracking-for-line/">運用GTM埋設Google Ads轉換追蹤代碼，以LINE加入好友連結為例</a> 最早出現於 <a href="https://hanyalun.com">韓哥數位行銷私塾</a>。</p>
]]></description>
										<content:encoded><![CDATA[<h2>零程式基礎也能輕鬆設定Google Ads轉換追蹤</h2>
<p>有使用一定時間Google Ads投放的人一定會遇到這樣的問題，就是Google Ads會要求你設置「轉換動作」，增加轉換動作，可以讓Google Ads的廣告更進一步的學習，並逐漸找到更精準的受眾，會對於整體廣告成效加分。</p>
<p>此文將運用目前最常使用到的LINE加入好友連結，來作為轉換追蹤標的，搭配使用Google Tag Manager (又稱Google代碼管理工具 or GTM) 輕鬆設置所需要的代碼與觸發條件，讓廣告投放後，可以追蹤到該廣告所帶來的轉換效益。在未設置轉換追蹤前，我們僅能在廣告後台看見基本的廣告數據，如曝光、點擊、點閱率、花費等等，增加了轉換追蹤後，可進一步瞭解廣告投放後的「轉換數」，近一步的可以透過此轉換數來針對各個不同的廣告來進行優化，讓廣告達到最佳效益。</p>
<h2>第一步：網站中設置LINE加入好友連結</h2>
<p><a href="https://tw.linebiz.com/">LINE for Business</a> (前身叫LINE@) 或稱 LINE官方帳號，是目前最好用的行銷管道之一，不論是他的普及度以及方便性，各方面應用都有助於從業者解決相關行銷面問題。然而，在我自己的經驗中，LINE尤其取代了網站中的傳統表單，不論是詢價表單或者是報名表單，現在如果直接使用LINE來與使用者互動，有別於繁瑣的表單資料填寫流程，LINE對話相較更直覺、更快速、更吸引使用者來使用。</p>
<p>官方本身針對 <a href="https://social-plugins.line.me/zh_TW/how_to_install" target="_blank" rel="noopener">LINE Social Plugins</a> 有一系列的設置方法，但我認為他有點複雜，因此這邊提供一個簡易又快速的設置方法，只需將下方提供的連結後綴換成自己的官方帳號ID或個人ID，作為連結置入在網站內各個想要讓使用者點擊的位置即可，方法如下：</p>
<p><strong>https://line.me/ti/p/<span style="color: #ff0000;">@</span>官方帳號ID 或是 </strong></p>
<p><strong>https://line.me/ti/p/<span style="color: #ff0000;">~</span>個人帳號ID (官方用「@」；個人用「~」)</strong></p>
<p>範例如下：</p>
<p>個人帳號加入好友網址：https://line.me/ti/p/<span style="color: #0000ff;">~allen781115</span></p>
<p>官方帳號加入好友網址：https://line.me/ti/p/<span style="color: #0000ff;">@qox4213x</span></p>
<p>官方帳號購買專屬ID加入好友網址：https://line.me/ti/p/<span style="color: #0000ff;">@isweets</span></p>
<p>按照上面介紹的規則，可以輕鬆的將官方帳號ID或者個人帳號ID，替換之後以文字超連結或者按鈕超連結等方式出現在網站各個適合的地方，當使用者透過桌機版點擊，會跳出QRCODE，掃描即加入好友並進行對話；當使用者透過手機版點擊，會直接開啟加入好友或者對話框畫面。</p>
<p>參考以下設置完成示意圖：</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-322 size-full" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-1.png" alt="LINE加入好友連結設置" width="1689" height="527" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-1.png 1689w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-1-300x94.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-1-1024x320.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-1-768x240.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-1-1536x479.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-1-750x234.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-1-1140x356.png 1140w" sizes="(max-width: 1689px) 100vw, 1689px" /></p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-323 size-full" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-2.png" alt="LINE加入好友連結設置" width="1689" height="529" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-2.png 1689w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-2-300x94.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-2-1024x321.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-2-768x241.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-2-1536x481.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-2-750x235.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-ads-line-2-1140x357.png 1140w" sizes="(max-width: 1689px) 100vw, 1689px" /></p>
<h2>第二步：Google Ads中設置轉換動作</h2>
<h3>1. 登入Google Ads後台</h3>
<p>到Google Ads後台「工具與設定」&gt; 「評估」&gt;「轉換」<img loading="lazy" decoding="async" class="aligncenter wp-image-351 size-full" src="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-1.png" alt="GoogleAds-工具與設定-評估-轉換" width="552" height="978" srcset="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-1.png 552w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-1-169x300.png 169w" sizes="(max-width: 552px) 100vw, 552px" /></p>
<h3>2. 新增轉換動作</h3>
<p>點選左邊的「＋」號新增轉換動作</p>
<h3><img loading="lazy" decoding="async" class="size-full wp-image-352 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-2.png" alt="Google Ads 新增轉換動作" width="906" height="308" srcset="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-2.png 906w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-2-300x102.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-2-768x261.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-2-750x255.png 750w" sizes="(max-width: 906px) 100vw, 906px" />3. 選擇轉換類型</h3>
<p>點選「網站」(因為本次範例是在網站上設置LINE加入好友連結)</p>
<h3><img loading="lazy" decoding="async" class="wp-image-353 size-full aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-3.png" alt="Google Ads 設置網站為轉換動作標的" width="2310" height="794" srcset="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-3.png 2310w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-3-300x103.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-3-1024x352.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-3-768x264.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-3-1536x528.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-3-2048x704.png 2048w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-3-750x258.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-3-1140x392.png 1140w" sizes="(max-width: 2310px) 100vw, 2310px" />4. 建立轉換動作</h3>
<p>建立轉換動作有以下四個主要欄位需要填寫：</p>
<p><strong>類別：</strong>本案以LINE加入好友為例，可以選擇「要求報價」或「其它」。</p>
<p><img loading="lazy" decoding="async" class="wp-image-354 size-full aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-4.png" alt="Google Ads 選取轉換動作類別" width="1418" height="268" srcset="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-4.png 1418w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-4-300x57.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-4-1024x194.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-4-768x145.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-4-750x142.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-4-1140x215.png 1140w" sizes="(max-width: 1418px) 100vw, 1418px" /><strong>轉換名稱：</strong>自行定義，如：LINE加入好友</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-355 size-full" src="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-5.png" alt="Google Ads 設置轉換名稱" width="1410" height="220" srcset="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-5.png 1410w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-5-300x47.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-5-1024x160.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-5-768x120.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-5-750x117.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-5-1140x178.png 1140w" sizes="(max-width: 1410px) 100vw, 1410px" /><strong>價值：</strong>非電商類的建議勾選「為每次轉換指定相同的價值」，並且計算該轉換的平均價值。</p>
<p>例如：透過LINE加入好友的客戶，平均可帶來$500的價值，那就填寫$500。</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-356 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-6.png" alt="Google Ads 設置轉換價值" width="1390" height="570" srcset="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-6.png 1390w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-6-300x123.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-6-1024x420.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-6-768x315.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-6-750x308.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-6-1140x467.png 1140w" sizes="(max-width: 1390px) 100vw, 1390px" /><strong>計算方式：</strong>以這次的轉換項目，建議勾選「一次」，避免誤點造成的無效轉換。</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-357 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-7.png" alt="Google Ads 設置轉換計算方式" width="1436" height="368" srcset="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-7.png 1436w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-7-300x77.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-7-1024x262.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-7-768x197.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-7-750x192.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-7-1140x292.png 1140w" sizes="(max-width: 1436px) 100vw, 1436px" />下方的「點閱後轉換回溯期」、「瀏覽後轉換回溯期」、「納入「轉換」欄」、「歸因模式」維持預設即可，設置完後按建立並繼續。</p>
<h3><img loading="lazy" decoding="async" class="size-full wp-image-358 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-8.png" alt="Google Ads 其他轉換條件設定" width="648" height="370" srcset="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-8.png 648w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-8-300x171.png 300w" sizes="(max-width: 648px) 100vw, 648px" />5. 選擇代碼加入方式</h3>
<p>設定代碼請選擇「使用Google代碼管理工具 (Google Tag Manager)」，並會獲得「轉換ID」以及「轉換標籤」，請將其記錄下來，在第三步於Google Tag Manager中設定時會需要用到。</p>
<h2><img loading="lazy" decoding="async" class="size-full wp-image-359 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-9.png" alt="Google Ads 取得GTM用轉換ID與轉換標籤" width="1982" height="762" srcset="https://hanyalun.com/wp-content/uploads/2020/11/google-ads-9.png 1982w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-9-300x115.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-9-1024x394.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-9-768x295.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-9-1536x591.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-9-750x288.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/google-ads-9-1140x438.png 1140w" sizes="(max-width: 1982px) 100vw, 1982px" />第三步：Google Tag Manager中設置代碼及觸發條件</h2>
<h3>1. 在GTM後台新增代碼</h3>
<p>到Google Tag Manager (GTM) 後台中，找到「代碼」並按下「新增」，新增後，在代碼設定處的代碼類型中，選擇「Google Ads轉換追蹤」並且將剛剛於Google Ads獲得的轉換ID以及轉換標籤填入。</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-360 size-full" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-1.png" alt="Google Tag Manager 新增代碼" width="2456" height="526" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-1.png 2456w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-1-300x64.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-1-1024x219.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-1-768x164.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-1-1536x329.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-1-2048x439.png 2048w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-1-750x161.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-1-1140x244.png 1140w" sizes="(max-width: 2456px) 100vw, 2456px" /></p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-361 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-2.png" alt="Google Tag Manager 設置Google Ads轉換ID與轉換標籤" width="812" height="1172" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-2.png 812w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-2-208x300.png 208w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-2-709x1024.png 709w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-2-768x1108.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-2-750x1083.png 750w" sizes="(max-width: 812px) 100vw, 812px" /></p>
<h3>2. 設定代碼的觸發條件</h3>
<p>在觸發條件這邊，我們稍作思考，什麼樣的動作需要被記錄成轉換？觸發到什麼狀況，會讓這組轉換追蹤碼執行紀錄？以我們本次的範例是追蹤「LINE加入好友連結」來看，「點擊加入好友的連結」這個動作，會是要被記錄的轉換動作。</p>
<p>GTM預設的觸發條件只會有「All Pages」，選擇All Pages作為觸發條件，意思就是瀏覽所有網頁皆會觸發我們的轉換追蹤碼，但顯然的這並不是我們這次想要的轉換追蹤，因此我們在右上角按下「＋ 新增觸發條件」，接著選擇「僅連結」設定「Click URL」包含「line.me」。</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-362 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-3.png" alt="Google Tag Manager 設置觸發條件" width="2168" height="1036" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-3.png 2168w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-3-300x143.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-3-1024x489.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-3-768x367.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-3-1536x734.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-3-2048x979.png 2048w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-3-750x358.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-3-1140x545.png 1140w" sizes="(max-width: 2168px) 100vw, 2168px" />實際操作你將發現除了Click URL外，還有其他Click ID、Click Classes、Click Text&#8230;等等，那為什麼本案是使用Click URL？聰明的你或許已經發現，因為本次案例設定的是連結 (https://line.me/ti/p/~allen781115)，而且是點擊動作，因此選擇Click URL。那為何後面是設定包含「line.me」呢？理由很簡單，因為網址中就是包含著「line.me」。</p>
<p>＊注意：如果今天你要追蹤的不是這個範例連結類型，請記得將它換成你想要設置轉換追蹤網址中所擁有的元素，確保這個元素不會與不想觸發轉換的連結相衝突，造成轉換數據失真。</p>
<h3>3. 確認代碼以及提交發布</h3>
<p>設定完代碼與觸發條件後按下儲存即完成，我們回到工作區就會看到剛剛所設置的代碼，到這邊還沒結束，記得一定要提交並發布出去才會更新到網站上，要看到發布後的版本更新才算完成。</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-363 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-4.png" alt="Google Tag Manager 完成Google Ads轉換追蹤代碼與觸發條件設置" width="2190" height="1126" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-4.png 2190w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-4-300x154.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-4-1024x526.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-4-768x395.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-4-1536x790.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-4-2048x1053.png 2048w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-4-750x386.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-4-1140x586.png 1140w" sizes="(max-width: 2190px) 100vw, 2190px" /><img loading="lazy" decoding="async" class="aligncenter wp-image-364 size-full" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-5.png" alt="Google Tag Manager 確認代碼設置正確並提交" width="2540" height="690" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-5.png 2540w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-5-300x81.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-5-1024x278.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-5-768x209.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-5-1536x417.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-5-2048x556.png 2048w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-5-750x204.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-5-1140x310.png 1140w" sizes="(max-width: 2540px) 100vw, 2540px" /></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-365" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-6.png" alt="Google Tag Manager 將新增的代碼與觸發條件發布" width="2188" height="1150" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-6.png 2188w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-6-300x158.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-6-1024x538.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-6-768x404.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-6-1536x807.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-6-2048x1076.png 2048w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-6-750x394.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-6-1140x599.png 1140w" sizes="(max-width: 2188px) 100vw, 2188px" /><img loading="lazy" decoding="async" class="size-full wp-image-366 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-7.png" alt="Google Tag Manager 確認代碼與觸發條件發布成功" width="2222" height="980" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-7.png 2222w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-7-300x132.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-7-1024x452.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-7-768x339.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-7-1536x677.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-7-2048x903.png 2048w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-7-750x331.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-7-1140x503.png 1140w" sizes="(max-width: 2222px) 100vw, 2222px" /></p>
<h2>第四步：使用GTM預覽工具檢查轉換代碼以及觸發條件正確被執行</h2>
<h3>1. 開啟GTM預覽工具</h3>
<p>發布完成我們必須得確認一下我們所設定的代碼以及觸發條件是能被正常觸發及追蹤的，因此我們會利用GTM中的「預覽」功能來實際測試我們剛剛所設定的代碼。我們到GTM工作區主頁，點選右上角的「預覽」，點選後會要求你確認目前的GTM代碼以及輸入安裝代碼的網址，確認後按下「Start」。</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-367 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-8.png" alt="Google Tag Manager 預覽測試" width="1248" height="936" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-8.png 1248w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-8-300x225.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-8-1024x768.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-8-768x576.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-8-750x563.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-8-1140x855.png 1140w" sizes="(max-width: 1248px) 100vw, 1248px" /></p>
<h3>2. 確認新增代碼狀態</h3>
<p>按下後GTM會自動開啟要測試網站的首頁，同時在預覽頁會跳出目前所有安裝在此GTM容器中的代碼，畫面中可以發現到有「Tags Fired」以及「Tags Not Fired」，這意思是代碼正被執行以及代碼未被執行，依照我們這次的觸發條件測試，開啟首頁並不是我們所要追蹤的觸發條件，因此目前我們理當要在「Tags Not Fired」中，找到我們剛剛設置的代碼，如：「LINE加入好友ADS轉換追蹤」。</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-368 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-9.png" alt="Google Tag Manager 確認代碼目前狀態" width="2336" height="1148" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-9.png 2336w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-9-300x147.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-9-1024x503.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-9-768x377.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-9-1536x755.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-9-2048x1006.png 2048w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-9-750x369.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-9-1140x560.png 1140w" sizes="(max-width: 2336px) 100vw, 2336px" /></p>
<h3>3. 實際到網頁測試轉換</h3>
<p>GTM預覽功能測試代碼的方式很簡單，就是去到GTM幫你開啟的測試網頁中，執行一次我們所設置的轉換追蹤觸發條件 (記住！一定是要透GTM開啟的網頁他才能做有效測試)，以本次案例來說，就是找到「LINE加入好友」連結的地方，並做一次點擊。</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-369 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-10.png" alt="實際測試轉換追蹤之連結 (LINE好友加入連結)" width="1250" height="1054" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-10.png 1250w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-10-300x253.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-10-1024x863.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-10-768x648.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-10-750x632.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-10-1140x961.png 1140w" sizes="(max-width: 1250px) 100vw, 1250px" /></p>
<h3>4. 確認轉換追蹤代碼成功被觸發</h3>
<p>在網站找到我們設置的連結，並測試點擊後，我們隨即回到測試預覽頁面，確認「LINE加入好友ADS轉換追蹤」代碼是否有正確的出現在「Tags Fired」，若有表示該代碼與觸發條件設置正確，之後當有使用者做點擊時，就會被紀錄轉換，同時回傳到Google Ads上，好讓我們後續評估廣告的轉換成效。</p>
<p>＊注意：若是在非觸發條件的使用情境下，發現代碼出現在「Tags Fired」，那就表示有地方設置錯誤囉，必須重新檢視一下代碼以及觸發條件。</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-370 aligncenter" src="https://hanyalun.com/wp-content/uploads/2020/11/gtm-11.png" alt="Google Tag Manager 確認代碼與觸發條件成功在點擊後被執行" width="2474" height="604" srcset="https://hanyalun.com/wp-content/uploads/2020/11/gtm-11.png 2474w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-11-300x73.png 300w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-11-1024x250.png 1024w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-11-768x187.png 768w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-11-1536x375.png 1536w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-11-2048x500.png 2048w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-11-750x183.png 750w, https://hanyalun.com/wp-content/uploads/2020/11/gtm-11-1140x278.png 1140w" sizes="(max-width: 2474px) 100vw, 2474px" />＊補充說明：若要執行Google Ads轉換追蹤，請記得在GTM中設置「轉換連接器」代碼，以確保數據正確。步驟為：新增「代碼」、選擇「轉換連接器」、觸發條件「All Pages」儲存並發布。</p>
<p>有關轉換連接器相關資訊請參考官方<a href="https://support.google.com/tagmanager/answer/7549390" target="_blank" rel="noopener">轉換連接器</a>介紹。</p>
<p>本篇的「運用GTM埋設Google Ads轉換追蹤代碼，以LINE加入好友連結為例」到這邊教學結束，歡迎大家實際操作，有任何問題都可以寄信詢問：alan1115@gmail.com。</p>
<p>祝大家廣告成效日益漸進。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>這篇文章 <a href="https://hanyalun.com/301/gtm-google-ads-conversion-tracking-for-line/">運用GTM埋設Google Ads轉換追蹤代碼，以LINE加入好友連結為例</a> 最早出現於 <a href="https://hanyalun.com">韓哥數位行銷私塾</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hanyalun.com/301/gtm-google-ads-conversion-tracking-for-line/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>如何使用GTM設定GA點擊事件追蹤？以WordPress聯絡表單7為例</title>
		<link>https://hanyalun.com/239/gtm-event-tracking-for-wordpress-cf7/</link>
					<comments>https://hanyalun.com/239/gtm-event-tracking-for-wordpress-cf7/#comments</comments>
		
		<dc:creator><![CDATA[Allen]]></dc:creator>
		<pubDate>Mon, 16 Sep 2019 18:51:00 +0000</pubDate>
				<category><![CDATA[Google Tag Manager]]></category>
		<category><![CDATA[Contact Form 7]]></category>
		<guid isPermaLink="false">https://hanyalun.com/?p=239</guid>

					<description><![CDATA[<p>// 本篇案例適用非Wordpress網站 // 零程式基礎也能輕鬆做GA點擊事件追蹤 隨著Wordpress [&#8230;]</p>
<p>這篇文章 <a href="https://hanyalun.com/239/gtm-event-tracking-for-wordpress-cf7/">如何使用GTM設定GA點擊事件追蹤？以WordPress聯絡表單7為例</a> 最早出現於 <a href="https://hanyalun.com">韓哥數位行銷私塾</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>// 本篇案例適用非Wordpress網站</p>
<p>// 零程式基礎也能輕鬆做GA點擊事件追蹤</p>
<p>隨著Wordpress的主題多樣性、外掛擴充性、後台便利性持續不斷的多元更新，同時在廣告費日益高漲的情況下，廠商逐漸重視SEO的重要，而通常要做SEO的第一步會先檢視網站架構與體質，往往在檢視網站體質這部分，企業就會再度花費許多人力成本，而Wordpress迷人之處在於網站架構很適合做SEO，只要有正確的觀念，用對外掛、主題並做細部的調校，往往在SEO上都能有不錯的成效。也因此開始有許多的廠商，不論是B2B、B2C，都逐漸將網站的架構改為Wordpress，這也使得Wordpress所架設的網站越來越普及化。</p>
<p>// 未來再詳細介紹使用Wordpress做SEO的眉角</p>
<p>然而一個網站成形了，不論你是賣東西亦或者你是內容型網站，你可能會開始佈局各種網路資源，想盡辦法的讓大家看到你、知道你，例如：Facebook廣告、Google Ads廣告、部落客KOL合作以及SEO等。這時候你可能會透過Google Analytics來追蹤你佈局在各個來源媒介下的流量，進而去擬定下一步的策略。</p>
<p>「只看流量這個變數來擬定策略夠嗎？」</p>
<p>一般來說若有人回答我這個問題，我通常會先反問他，你的目標是什麼？</p>
<p>假設今天你佈局出去的網路資源，目標是要做大量的曝光，那以廣告來說，可以去看取得1個流量花費多少成本，再經過廣告數據以及流量的分析後，我們可以把廣告費花在獲取流量成本相對低的廣告上。</p>
<p>但在這每個廣告成本都斤斤計較的世道下，不是太多種類型的廣告會只看曝光和進來的流量。一般來說若是電商網站，會看流量進來後有沒有做購買；若是內容型或比較B2B性質亦或者非直接購買性質的網站，可能會想看到流量進來後有沒有填寫表單？有沒有點擊我們期望他點擊的按鈕？</p>
<p>「不論是購買或者填寫表單等等流量進來我們所期望他完成的動作，我們統稱它為&#8221;轉換&#8221;」</p>
<p>// 廢話這麼多是到底要不要開始教</p>
<p>// 正文開始</p>
<p>本篇案例的情境為，想知道流量進來後，使用者有沒有填寫表單並按下按鈕送出？</p>
<p>(以圖1為例，就是有沒有按下&#8221;申請彌月試吃&#8221;)</p>
<p>因此我們將流量進來後，使用者按下&#8221;申請彌月試吃&#8221;，定義為此次要追蹤的「轉換目標」</p>
<figure id="attachment_245" aria-describedby="caption-attachment-245" style="width: 2248px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-245 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/isweets_fullmonthcake_button.png" alt="使用gtm追蹤點擊事件，範例示意圖" width="2248" height="828" srcset="https://hanyalun.com/wp-content/uploads/2019/09/isweets_fullmonthcake_button.png 2248w, https://hanyalun.com/wp-content/uploads/2019/09/isweets_fullmonthcake_button-300x110.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/isweets_fullmonthcake_button-768x283.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/isweets_fullmonthcake_button-1024x377.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/isweets_fullmonthcake_button-750x276.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/isweets_fullmonthcake_button-1140x420.png 1140w" sizes="(max-width: 2248px) 100vw, 2248px" /><figcaption id="caption-attachment-245" class="wp-caption-text">圖1. 使用GTM追蹤點擊事件，範例示意圖</figcaption></figure>
<h2>第一步：開啟GTM內建變數</h2>
<p>從 [工作區] &gt; [變數] &gt; [設定] 中，可以將GTM預設的變數開啟，本篇案例會使用到的變數為 [Click Classes] ，先確定他有被打勾。(圖2)</p>
<figure id="attachment_248" aria-describedby="caption-attachment-248" style="width: 1764px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-248 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/variables.png" alt="從GTM中開啟預設的內建變數" width="1764" height="890" srcset="https://hanyalun.com/wp-content/uploads/2019/09/variables.png 1764w, https://hanyalun.com/wp-content/uploads/2019/09/variables-300x151.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/variables-768x387.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/variables-1024x517.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/variables-750x378.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/variables-1140x575.png 1140w" sizes="(max-width: 1764px) 100vw, 1764px" /><figcaption id="caption-attachment-248" class="wp-caption-text">圖2. 從GTM中開啟預設的內建變數</figcaption></figure>
<h2>第二步：設定觸發條件</h2>
<p>從 [工作區] &gt; [觸發條件] &gt; [新增] 中，選擇 [所有元素]。(圖3)</p>
<figure id="attachment_249" aria-describedby="caption-attachment-249" style="width: 1918px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-249 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/trigger.png" alt="新增GTM觸發條件-所有元素" width="1918" height="926" srcset="https://hanyalun.com/wp-content/uploads/2019/09/trigger.png 1918w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-300x145.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-768x371.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-1024x494.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-750x362.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-1140x550.png 1140w" sizes="(max-width: 1918px) 100vw, 1918px" /><figcaption id="caption-attachment-249" class="wp-caption-text">圖3. 新增GTM觸發條件 (所有元素)</figcaption></figure>
<p>觸發條件可依照欲新增之事項命名，這邊選擇 [部分點擊]，變數為 [Click Classes]，條件是&#8221;等於&#8221; [wpcf7-form-control wpcf7-submit]。(圖4)</p>
<figure id="attachment_250" aria-describedby="caption-attachment-250" style="width: 2110px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-250 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/trigger-set.png" alt="設定GTM觸發條件 (以Click Classes為例)" width="2110" height="878" srcset="https://hanyalun.com/wp-content/uploads/2019/09/trigger-set.png 2110w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-set-300x125.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-set-768x320.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-set-1024x426.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-set-750x312.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/trigger-set-1140x474.png 1140w" sizes="(max-width: 2110px) 100vw, 2110px" /><figcaption id="caption-attachment-250" class="wp-caption-text">圖4. 設定GTM觸發條件 (以Click Classes為例)</figcaption></figure>
<p>為什麼這邊條件是等於 [wpcf7-form-control wpcf7-submit]？是因為此Class為Wordpress外掛Contact Form 7對於送出按鈕的定義，查看的方法為，在Chrome瀏覽器對&#8221;申請彌月試吃&#8221;按鈕，按 [右鍵] &gt; [檢查]，我們可以發現這個按鈕的Class被定義為 [wpcf7-form-control wpcf7-submit]，如下圖5。</p>
<p>// 若您今天不是使用Contact Form 7 表單外掛，而是其他表單或者是自行架設的網站所自製的表單，定義會有所不同，用相同的方法檢視並替換即可。</p>
<p>// 當然，剛剛上面也提到內建變數不只有 [Click Classes]，同樣的邏輯可以自行應用在 [Click Text]、[Click ID]等。</p>
<figure id="attachment_251" aria-describedby="caption-attachment-251" style="width: 1736px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-251 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/check-cf7-class.png" alt="尋找按鈕上被定義的Class" width="1736" height="988" srcset="https://hanyalun.com/wp-content/uploads/2019/09/check-cf7-class.png 1736w, https://hanyalun.com/wp-content/uploads/2019/09/check-cf7-class-300x171.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/check-cf7-class-768x437.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/check-cf7-class-1024x583.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/check-cf7-class-750x427.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/check-cf7-class-1140x649.png 1140w" sizes="(max-width: 1736px) 100vw, 1736px" /><figcaption id="caption-attachment-251" class="wp-caption-text">圖5. 尋找按鈕上被定義的Class</figcaption></figure>
<h2>第三步：新增代碼</h2>
<p>從 [工作區] &gt; [代碼] &gt; [新增] 中，選擇 [Google Analytics (分析)：通用 Analytics (分析)]。(圖6)</p>
<figure id="attachment_254" aria-describedby="caption-attachment-254" style="width: 2126px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-254 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/tag.png" alt="設定GTM代碼 (用於點擊事件追蹤)" width="2126" height="784" srcset="https://hanyalun.com/wp-content/uploads/2019/09/tag.png 2126w, https://hanyalun.com/wp-content/uploads/2019/09/tag-300x111.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/tag-768x283.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/tag-1024x378.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/tag-750x277.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/tag-1140x420.png 1140w" sizes="(max-width: 2126px) 100vw, 2126px" /><figcaption id="caption-attachment-254" class="wp-caption-text">圖6. 設定GTM代碼 (用於點擊事件追蹤)</figcaption></figure>
<p>代碼可依照欲新增之事項命名，追蹤類型選擇 [事件]，事件追蹤類型之類別 [申請彌月試吃 or 表單追蹤]、動作 [Click or 播放、下載等]、標籤 [{{Click URL}} (通常用於區分相同類別與動作時的追蹤狀況)]。(圖7)</p>
<p>// 若不清楚類別、動作、標籤、值的概念，<a href="https://support.google.com/analytics/answer/1033068?hl=zh-Hant" target="_blank" rel="noopener noreferrer">參閱：Google官方「事件」簡介</a></p>
<figure id="attachment_255" aria-describedby="caption-attachment-255" style="width: 2442px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-255 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/tag-set-event.png" alt="設定代碼的事件追蹤 (類別、動作、標籤)" width="2442" height="1196" srcset="https://hanyalun.com/wp-content/uploads/2019/09/tag-set-event.png 2442w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-event-300x147.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-event-768x376.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-event-1024x502.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-event-750x367.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-event-1140x558.png 1140w" sizes="(max-width: 2442px) 100vw, 2442px" /><figcaption id="caption-attachment-255" class="wp-caption-text">圖7. 設定代碼的事件追蹤 (類別、動作、標籤)</figcaption></figure>
<p>Google Analytics (分析) 設定記得要選擇追蹤碼的變數，下方觸發條件，選擇剛剛設定好的變數 &#8220;點擊申請彌月試吃&#8221;。(圖8)</p>
<figure id="attachment_256" aria-describedby="caption-attachment-256" style="width: 2444px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-256 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/tag-set-trigger.png" alt="設定事件追蹤代碼的觸發條件" width="2444" height="1192" srcset="https://hanyalun.com/wp-content/uploads/2019/09/tag-set-trigger.png 2444w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-trigger-300x146.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-trigger-768x375.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-trigger-1024x499.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-trigger-750x366.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/tag-set-trigger-1140x556.png 1140w" sizes="(max-width: 2444px) 100vw, 2444px" /><figcaption id="caption-attachment-256" class="wp-caption-text">圖8. 設定事件追蹤代碼的觸發條件</figcaption></figure>
<h2>第四步：透過預覽模式與GA即時報表測試</h2>
<p>設定到這邊，基本上已經透過GTM完成一個基礎表單按鈕的點擊追蹤，但先別急著發佈，切記！在發佈任何修改版本前，一定要先透過&#8221;預覽&#8221;模式來檢視設定有被正確觸發。</p>
<p>我們在工作區的右上角可以發現&#8221;預覽&#8221;按鈕，點擊後會出現如下方的預覽模式確認通知。(圖9)</p>
<figure id="attachment_261" aria-describedby="caption-attachment-261" style="width: 2508px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-261 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview.png" alt="GTM預覽模式確認通知" width="2508" height="560" srcset="https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview.png 2508w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-300x67.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-768x171.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-1024x229.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-750x167.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-1140x255.png 1140w" sizes="(max-width: 2508px) 100vw, 2508px" /><figcaption id="caption-attachment-261" class="wp-caption-text">圖9. GTM預覽模式確認通知</figcaption></figure>
<p>此時，在相同的瀏覽器上，將你的網站重新整理，下方就會出現GTM的預覽工作視窗，前往我們剛剛設定按鈕點擊追蹤的表單上，找到按鈕並嘗試做點擊，若是剛剛設定的代碼有成功被觸發，則在&#8221;Tags Fired On This Page&#8221;上，就會出現剛剛自行所設定的代碼名稱，本篇範例代碼為&#8221;CF7申請彌月試吃&#8221;。(圖10)</p>
<figure id="attachment_262" aria-describedby="caption-attachment-262" style="width: 1098px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-262 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-1.png" alt="測試GTM代碼是否成功被觸發" width="1098" height="1096" srcset="https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-1.png 1098w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-1-150x150.png 150w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-1-300x300.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-1-768x767.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-1-1024x1022.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-1-75x75.png 75w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-1-750x749.png 750w" sizes="(max-width: 1098px) 100vw, 1098px" /><figcaption id="caption-attachment-262" class="wp-caption-text">圖10. 測試GTM代碼是否成功被觸發</figcaption></figure>
<p>你可能會問，如果在我按下按鈕後，代碼沒出現在&#8221;Tags Fired On This Page&#8221; (意即未觸發成功)，該怎麼辦？這時候可以從旁邊的狀態列，點擊&#8221;Click&#8221; (因為我們是追蹤點擊行為)，點進去設定好應該要被觸發的代碼，往下會找到&#8221;Firing Triggers&#8221;，這時候你會看到我們設定的觸發條件呈現打&#8221;x&#8221; (其他觸發條件也同理)，打&#8221;x&#8221;意指在這次的點擊事件中，此觸發條件並未正確被觸發，因此要回去重新修正觸發條件。(圖11)</p>
<p>// &#8220;Click&#8221;要選擇當我們點擊欲追蹤按鈕的時候所出現的那次Click，因為在預覽模式下，任何在網站上的點擊都會被記錄一次&#8221;Click&#8221;動作，因此要確保你檢查的Click是當你按下按鈕後的那一次Click動作。</p>
<figure id="attachment_264" aria-describedby="caption-attachment-264" style="width: 1184px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-264 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-2.png" alt="測試GTM代碼是否成功被觸發" width="1184" height="1170" srcset="https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-2.png 1184w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-2-300x296.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-2-768x759.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-2-1024x1012.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-2-75x75.png 75w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-2-750x741.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/gtm-preview-chick-2-1140x1127.png 1140w" sizes="(max-width: 1184px) 100vw, 1184px" /><figcaption id="caption-attachment-264" class="wp-caption-text">圖11. 測試GTM代碼是否成功被觸發</figcaption></figure>
<p>若是在預覽模式下，確認點擊按鈕有成功觸發到代碼，就可以放心的提交出去，提交後可以到網站實際送出一次表單，然後到GA的 [即時] &gt; [事件] 報表中確認是否有被GA收錄 (圖12)。若要看完整的事件追蹤數據，GA會將其收錄在 [行為] &gt; [事件] 報表中 (圖13)。若要觀察各種不同維度下的事件追蹤流程，則到 [行為] &gt; [事件] &gt; [事件流程] 下，篩選出想要觀察的維度即可 (圖14)。</p>
<figure id="attachment_265" aria-describedby="caption-attachment-265" style="width: 1952px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-265 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/ga-event-realtime.png" alt="使用GA即時報表測試點擊事件追蹤狀況" width="1952" height="896" srcset="https://hanyalun.com/wp-content/uploads/2019/09/ga-event-realtime.png 1952w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-realtime-300x138.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-realtime-768x353.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-realtime-1024x470.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-realtime-750x344.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-realtime-1140x523.png 1140w" sizes="(max-width: 1952px) 100vw, 1952px" /><figcaption id="caption-attachment-265" class="wp-caption-text">圖12. 使用GA即時報表測試點擊事件追蹤狀況</figcaption></figure>
<figure id="attachment_266" aria-describedby="caption-attachment-266" style="width: 2490px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-266 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/ga-event.png" alt="GA行為報表中查看事件追蹤狀況" width="2490" height="656" srcset="https://hanyalun.com/wp-content/uploads/2019/09/ga-event.png 2490w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-300x79.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-768x202.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-1024x270.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-750x198.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/ga-event-1140x300.png 1140w" sizes="(max-width: 2490px) 100vw, 2490px" /><figcaption id="caption-attachment-266" class="wp-caption-text">圖13. GA行為報表中查看事件追蹤狀況</figcaption></figure>
<figure id="attachment_269" aria-describedby="caption-attachment-269" style="width: 2316px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-269 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/event-flow.png" alt="GA行為報表中查看事件流程" width="2316" height="980" srcset="https://hanyalun.com/wp-content/uploads/2019/09/event-flow.png 2316w, https://hanyalun.com/wp-content/uploads/2019/09/event-flow-300x127.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/event-flow-768x325.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/event-flow-1024x433.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/event-flow-750x317.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/event-flow-1140x482.png 1140w" sizes="(max-width: 2316px) 100vw, 2316px" /><figcaption id="caption-attachment-269" class="wp-caption-text">圖14. GA行為報表中查看事件流程</figcaption></figure>
<h2>同場加映：將事件追蹤設定成為GA目標</h2>
<p>做到這邊，基本上已經使用GTM完成了一個很基礎按鈕事件點擊追蹤，對於零程式基礎的行銷人員來說，想必也多了許多以往不同的思維和經驗。但只做點擊事件追蹤，在擬定行銷策略上肯定是少了什麼，特別是以這種表單來說，行銷人員要知道的不單單是按鈕是否有被點擊，而是這些點擊的流量從何而來，以及流量進到網站後，有完成此點擊的比例。</p>
<p>// 以此篇案例來說，我們可將「流量進來後有點擊表單」稱作「轉換」，而流量與此轉換的比例稱作「轉換率」</p>
<p>然而若只使用點擊事件追蹤的話，在GA是無法看到其轉換率的，因此我們需要配合GA的「目標」設定來達成。從 [GA設定] &gt; [目標] &gt; [新增目標] &gt; [自訂] &gt; [事件] 設定，目標詳情的 [類別] 及 [動作] 要填的條件是我們在GTM所設定的類別與動作名稱作為事件條件設定 (圖15)。成功設定後即可在 [客戶開發] &gt; [所有流量] &gt; [來源/媒介] 中詳細地看到各個不同來源的流量以及其轉換 (圖16)。</p>
<figure id="attachment_270" aria-describedby="caption-attachment-270" style="width: 2040px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-270 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/goal-setting.png" alt="GA目標設定(自訂事件)" width="2040" height="1098" srcset="https://hanyalun.com/wp-content/uploads/2019/09/goal-setting.png 2040w, https://hanyalun.com/wp-content/uploads/2019/09/goal-setting-300x161.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/goal-setting-768x413.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/goal-setting-1024x551.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/goal-setting-750x404.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/goal-setting-1140x614.png 1140w" sizes="(max-width: 2040px) 100vw, 2040px" /><figcaption id="caption-attachment-270" class="wp-caption-text">圖15. GA目標設定 (自訂事件)</figcaption></figure>
<figure id="attachment_271" aria-describedby="caption-attachment-271" style="width: 2476px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-271 size-full" src="https://hanyalun.com/wp-content/uploads/2019/09/traffic-conversion.png" alt="從客戶開發中查看流量以及其轉換" width="2476" height="810" srcset="https://hanyalun.com/wp-content/uploads/2019/09/traffic-conversion.png 2476w, https://hanyalun.com/wp-content/uploads/2019/09/traffic-conversion-300x98.png 300w, https://hanyalun.com/wp-content/uploads/2019/09/traffic-conversion-768x251.png 768w, https://hanyalun.com/wp-content/uploads/2019/09/traffic-conversion-1024x335.png 1024w, https://hanyalun.com/wp-content/uploads/2019/09/traffic-conversion-750x245.png 750w, https://hanyalun.com/wp-content/uploads/2019/09/traffic-conversion-1140x373.png 1140w" sizes="(max-width: 2476px) 100vw, 2476px" /><figcaption id="caption-attachment-271" class="wp-caption-text">圖16. 從客戶開發中查看流量以及其轉換</figcaption></figure>
<h2>後續探討：關於點擊事件追蹤的數據落差</h2>
<p>聰明的你，做完這邊是不是有哪裡覺得怪怪的？本篇的教學，可以很快速的讓零程式基礎的行銷人員在不透過工程師的情況下自行設定完按鈕點擊事件追蹤，但確實存在著幾點追蹤落差，是哪幾點？如果你有猜到，看看是不是以下幾點：</p>
<h3>1. Class相同的追蹤落差</h3>
<p>因Wordpress Contact Form 7 Class相同的關係，以此篇來講只適合僅存在一個聯絡表單的Wordpress網站，否則按照上面的做法，若是今天存在兩個以上不同表單，當他們皆被觸發時，將無法分別是被觸發哪個。</p>
<h3>2. 點擊後表單尚未送出的追蹤落差</h3>
<p>因為表單通常會設定 [*必填] 條件，若使用者在並填寫正確就點擊送出，則一樣會追蹤到點擊並計算成轉換，但實際上的表單並未在這次點擊上完成，若是這類的情況經常發生，則會降低點擊轉換數據的準確性。</p>
<h3>3. 惡意點擊表單的追蹤落差</h3>
<p>呈第2點，若是遇到未填寫完成又持續點擊的使用者，或者是習慣點擊按鈕多次的使用者，都將影響這些點擊轉換數據的落差。</p>
<p>若是您想要追蹤的按鈕是較直覺型 (例如：點擊即過頁、點擊即確認等)，並沒有像表單型按鈕的條件限制 (例如：必填欄位)，基本上不用太擔心追蹤出來的數據會有過大的落差，後續我也將延續此篇的內容，介紹另外一種的Wordpress CF7表單追蹤方法，此方法將更確保表單有確實送出才會觸發事件與記錄轉換。</p>
<p>請參閱：「<a href="https://hanyalun.com/471/gtm-wordpress-contact-form-7/" target="_blank" rel="noopener">用GTM元素可見度來設定WORDPRESS CONTACT FORM 7轉換追蹤</a>」。</p>
<p>&nbsp;</p>
<p>這篇文章 <a href="https://hanyalun.com/239/gtm-event-tracking-for-wordpress-cf7/">如何使用GTM設定GA點擊事件追蹤？以WordPress聯絡表單7為例</a> 最早出現於 <a href="https://hanyalun.com">韓哥數位行銷私塾</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hanyalun.com/239/gtm-event-tracking-for-wordpress-cf7/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
