在谷歌分析中将按钮查看和点击作为事件进行跟踪 [英] Track button views and clicks as events in google analytics

查看:24
本文介绍了在谷歌分析中将按钮查看和点击作为事件进行跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在电子邮件中放置一个按钮,我想跟踪按钮的查看和点击(Google Analytics 事件).你能告诉我这是否可能以及如何做到这一点?

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?

推荐答案

从技术上讲,您无法跟踪电子邮件中的按钮点击,但您可以控制按钮链接到的位置.

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

如果您将按钮的 URL 设置为指向您的服务器,您可以拦截该链接,使用 测量协议,然后将用户重定向到按钮最初指向的位置.

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.

或者,您可以将自定义广告系列参数附加到 URL 的末尾(utm_mediumutm_source 等).这将使您知道命中来自哪个来源.以下是有关自定义广告系列的一些信息:
https://support.google.com/analytics/answer/1033863?hl=zh-CN

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

这篇关于在谷歌分析中将按钮查看和点击作为事件进行跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆