更新:
A/B 测试运行良好。
重定向测试正在运行但未报告回来。
我关注了 Google 的文章How to use Optimize when you deploy Google Analytics with Google Tag Manager,但我在 Google Optimize 上不断收到错误消息:
似乎有些不对劲。您的实验正在运行,但尚未收到访问。
我使用了 Analytics 调试器,一切似乎都很好,所以我请求您的帮助。
这是我的设置:
<meta charset="utf-8">
<script>dataLayer = [...]</script>
//Page hiding snippet
<style>.async-hide {
opacity: 0 !important
} </style>
<script>(function (a, s, y, n, c, h, i, d, e) {
s.className += ' ' + y;
h.start = 1 * new Date;
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-XXXXXXX': true});</script> //Optimize container id
//Requiring optimize in the analytics code, but not calling a pageview
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-YYYYYYYYY-YY', {name: 'rollup', cookieName: '_rollupGa', allowLinker: true}); //Rollup analytics tracking id
ga('rollup.require', 'GTM-XXXXXXX'); //Optimize container id
</script>
//Tag manager snippet
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(), event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-ZZZZZZ'); //Tag manager id
</script>
此类网页的示例:TAG Heuer 男士 WAZ1110.BA0875 不锈钢手表
任何帮助将不胜感激!