<?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>Contact Form 7 彙整 - 韓哥數位行銷私塾</title>
	<atom:link href="https://hanyalun.com/tag/contact-form-7/feed/" rel="self" type="application/rss+xml" />
	<link>https://hanyalun.com/tag/contact-form-7/</link>
	<description></description>
	<lastBuildDate>Fri, 02 Jul 2021 17:21:18 +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>Contact Form 7 彙整 - 韓哥數位行銷私塾</title>
	<link>https://hanyalun.com/tag/contact-form-7/</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設定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>
