仅在网站首页上才触发GTM标签 [英] Fire GTM tag only if on homepage of the site

查看:76
本文介绍了仅在网站首页上才触发GTM标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该首页还可以包含其他GET参数(例如utm标签和类似的营销变量).我该如何运作?简单的以 http://example.com http://example.com/不起作用,因为网址可能是 http://example.com/?utm_campaign=text& ...

The homepage can also have extra GET params (e.g. utm tags and similar marketing variables). How can I make it work? Simple "end with http://example.com or http://example.com/" doesn't work cause the url might be http://example.com/?utm_campaign=text&...

谢谢!

推荐答案

最佳做法是始终在域中安装GTM并在需要时执行它. 要仅在家庭中启动标签,您需要使用以下触发器.将此添加到您的自定义HTML标记上,请注意是否相等.

The best practice is always install the GTM along you domain and execute it whenever you need. To launch a tag only in the home you need to use the following trigger. Add this on you custom HTML tag, take care of the equals.

这篇关于仅在网站首页上才触发GTM标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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