Ins*_*ght 5 google-tag-manager content-experiments
我已经在GA中创建了Google Analytics(分析)内容实验,复制了代码,并将其添加到我网站的Google跟踪代码管理器容器中,并将其设置为触发@
https://www.example.com
https://www.example.com/
https://www.example.com/h2/
https://www.example.com/h3/
Run Code Online (Sandbox Code Playgroud)
但是,每次在任何浏览器中加载https://www.example.com时,我都会停留在该浏览器中,并且不会重定向到变体。
GA表示在/h2/&处检测到了实验代码,/h3/但未在处检测到/。
标记管理器代码安装在上述所有页面使用的同一Wordpress主题中。
帮助表示赞赏。
不确定您是否知道,内容实验现在是 Google 优化工具。
要在这里调试,我会这样做:
tag sequencing.async-hide { opacity: 0 !important} (function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*新日期; h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')}; (a[n]=a[n]||[]) .hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c; })(window,document.documentElement,'async-hide','dataLayer', 4000, {'GTM-XXXXXX':true});