Quickstart Guide to Google Analytics Clickstream Data

This post provides downloadable Google Tag Manager (GTM) scripts and a walkthrough of the necessary steps for getting clickstream data out of Google Analytics. This clickstream data already exists behind the scenes; every time a user takes a tracked action on your website, like viewing a page or clicking a button, the data about that ... Read more

Google Optimize - How to Track Button Clicks

Google Optimize is Google's A/B testing platform that lets you build variants of your site and run experiments to determine which version performs the best. Without additional configuration, you can choose among the following default experiment objectives: Bounces, Pageviews, Session Duration, and, if you have an e-commerce site, Transactions and Revenue. This is a nice ... Read more

[Solution] An error occured while the tag was fired: net :: ERR_ABORTED

Google's Tag Assistant plugin is a great tool for troubleshooting various Google tags like Google Analytics, Google AdWords, and Google Tag Manager; just install and navigate to your site to enable checks for hundreds of issues. This post will describe how to fix a couple of the most common issues reported by the Tag Assistant ... Read more

Track FB Ads in GA with URL Dynamic Parameters

September 2018 Update: URL Dynamic Parameters are back! May 2018 Update: It looks like this feature has been (temporarily?) disabled by Facebook, at least for some accounts. There's discussion online about it not working anymore, and information on these dynamic parameters has been edited out from the official documentation. The original article is still presented ... Read more

透過GTM代碼管理工具和資料層(datalayer)設定GA自訂維度

把自定維度加到Google分析 (Google Analytics, GA) 的過程有幾個相互關聯的部分:資料層(datalayer), Google代碼管理工具 (GTM),和GA的管理員設定。這篇文章會手把手的介紹,如何將自訂維度加進GA。 步驟1:設定資料層 (datalayer) 第一步驟是設定資料層。資料層是使用GTM的關鍵部分。它包含您想要處理的訊息,這些訊息可以通過GTM讀取,然後推送到Google Analytics。 資料層需要由有權限修改你網站的代碼的人,通常是程式設計師。他們應該在GTM代碼前把資料層加到你的網站,使用以下的語法: window.dataLayer = window.dataLayer || []; window.dataLayer.push({ 'event' : 'eventName', 'dim1' : 'value1', 'dim2' : 'value2' }); Simo Ahava's 這個超好用的部落格,有討論這個語法的細節: https://www.simoahava.com/gtm-tips/datalayer-declaration-vs-push/ 所以,如果你想要追蹤網頁類別和登入狀態,會長的像這樣: window.dataLayer = window.dataLayer || []; window.dataLayer.push({ 'event' : 'pageview', 'loginStatus' : 'logged in', 'pageType' : 'product details page' }); ❓ 注意:儘管事件鍵對資料層推送不是必須的,但GTM中的每個標籤,都需要一個事件鍵來觸發它。 如果你在沒有事件鍵的情況下推送維度,會沒辦法抓到那個狀態的維度值 - ... Read more

Get Visitor IP Address with Google Tag Manager

There are a few reasons you may want to access your visitors' IP addresses using Google Tag Manager (GTM): to block internal traffic, set rules for firing tags, pre-fill form fields, etc. Tracking IP address with Google Analytics is also possible through this method, but not advisable as it may violate Google's policies regarding personally identifiable ... Read more

Meta: How Google Analytics Tracks Its Own Analytics

Working as a Google Analytics / Google Tag Manager consultant, it's common to navigate around the web with tools like the Google Analytics Debugger and Google Analytics Tag Assistant still active in the browser. These tools display information about every tracking call sent to Google Analytics' servers, allowing you to view and debug the GA implementation of ... Read more