Track button views and clicks as events in google analytics

倖福魔咒の 提交于 2019-12-02 02:53:36

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

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).

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