如何使用Google跟踪代码管理器(GTM)跟踪加密的电子邮件链接

时间:2021-11-20 13:40:43

I'm in the process of setting up Google Tag Manager on one of my sites and want to track email link clicks.

我正在我的某个网站上设置Google跟踪代码管理器,并希望跟踪电子邮件链接点击次数。

This would normally be straightforward but the challenge is that to reduce SPAM the email links on this site are encrypted using javascript so they look like this:

这通常是直截了当的,但挑战在于减少垃圾邮件,本网站上的电子邮件链接使用javascript加密,因此它们看起来像这样:

<a href="javascript:void(location.href='mailto:'+String.fromCharCode(102,117,110,100,114,97,105,115,105,110,103,64,98,114,101,110,100,111,110,99,97,114,101,46,111,114,103,46,117,107))">click here</a>

Does anyone know how I would go about creating a tag to track clicks of these links and send the data to Analytics?

有谁知道如何创建标记来跟踪这些链接的点击并将数据发送到Google Analytics?

Thanks in advance,

提前致谢,

Tom

1 个解决方案

#1


0  

In Google Tag Manager, you can set up a trigger that will identify this, and fire an event tag of your construction. Try the following trigger setup:

在Google跟踪代码管理器中,您可以设置一个触发器来识别此内容,并触发构造的事件代码。尝试以下触发设置:

如何使用Google跟踪代码管理器(GTM)跟踪加密的电子邮件链接

#1


0  

In Google Tag Manager, you can set up a trigger that will identify this, and fire an event tag of your construction. Try the following trigger setup:

在Google跟踪代码管理器中,您可以设置一个触发器来识别此内容,并触发构造的事件代码。尝试以下触发设置:

如何使用Google跟踪代码管理器(GTM)跟踪加密的电子邮件链接