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?
相关问题
- Android ContextMenu for View (Not Activity)
- Stop child process when parent process stops
- Fire resize event once not based on timing
- C# CS0079 Event Handling Compile Errors
- Google Maps event listeners not working properly i
相关文章
- What does it means in C# : using -= operator by ev
- How are custom broadcast events implemented in Jav
- What the logcat message: “E/MoreInfoHPW_ViewGroup(
- How to correctly use google analytics measurement
- Programming a touch screen application with SWING
- How many pixels are scrolled on a website with a m
- Difference Between RoutedEventHandler and EventHan
- Wait for function till user stops typing
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).