Web Tracking
2 min read
Updated:
- Page visibility: discount the time when the page is not visible. E.g. when the user switches to another tab. MDN docs
- Time on page: setting a timer when the page is loaded or resumed and stop it when the page is inactive. It is better than calculating the time difference between two consecutive page views because a user might leave the website after consuming the content, e.g. reading a lengthy blog. Page visibility should also be considered because a user might switch to another tab while reading the content, or the user might take a break and leave the page open.
- Scroll depth: Create custom dimensions for scroll percentages such as 10%, 25%, 50%, and so forth. This method effectively tracks how far users scroll through our blog posts, providing insights into their interest and engagement with the entire content.
Tools
Don’t reinvent the tool.
- Google Analytics
- Adobe Analytics
- Hotjar
- matomo (open-source)
Google Analytics
- Page visibility on Google Analytics
- GTM 觸發條件介紹:我們該在「何時」使用「何種」觸發條件?
- 如何使用 GTM 觸發條件:「 計時器 (Timer) 」?(附上使用情境)
- 如何用 GTM 傳送 User ID 到 GA4?: to track individuals. The website must have a user authentication system. Any personal identifiable information cannot be sent to GA4, including email.
- GA4 中的 Client ID 和 User ID 分別是什麼意思?: client id is a random number generated by GA for device, user id is the id of the user stored in the database
- Google signals are not user id nor client id. It is a feature that allows GA to track users across devices. It is based on the signed-in user’s activity on Google services.
- 如何用 GTM 建立 GA4「連結點擊」事件?
- 如何用 GTM 觸發條件「元素可見度」追蹤站內廣告曝光?
- 如何用 GTM 設定「網頁捲動」追蹤事件?(非 GA4 加強型評估事件)