Track button views and clicks as events in google analytics

孤街醉人 提交于 2019-12-02 07:27:15

问题


I am trying to place a button that will be inside email and I want to track button views and clicks (Google Analytics events). Can you tell me if that is possible and how to do that?


回答1:


You can't technically track a button click from an email, but what you can do is control where the button links to.

If you set the button's URL to point to your servers, you can intercept the link, send a hit to Google Analytics using the Measurement Protocol, and then redirect the user to where the button was originally pointing.

Alternatively, you could append custom campaign parameters to the end of the URL (utm_medium, utm_source, etc.). This would allow you to know what source the hit came from. Here's some information on custom campaigns:
https://support.google.com/analytics/answer/1033863?hl=en




回答2:


This is able to track button views by using Measurement protocol, and using UTM tagging to track sessions come from this button (but not actual clicks).



来源:https://stackoverflow.com/questions/25042368/track-button-views-and-clicks-as-events-in-google-analytics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!