Google Analytics(分析)设置值显示"{}"在Google跟踪代码管理器的预览模式下 [英] Google Analytics Settings value showing a "{}" in google tag manager's preview mode

查看:92
本文介绍了Google Analytics(分析)设置值显示"{}"在Google跟踪代码管理器的预览模式下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的问题是该网站上没有google标签触发.

I'm facing a problem that none of the google tags fire on the website.

例如,这就是我在页面浏览事件中看到的内容 Google分析代码无法成功触发

For example, this is what I see in the page view event google analytic tag not firing successfully

仅供参考:这是我的Google Analytics(分析)变量的设置: Google Analytics(分析)设置变量

FYI: This is the setting of my Google Analytics variable: Google Analytics Setting Variable

此处是网页链接: https://www.canfitpro.com/convention-2020/

我想知道是否有人知道这里发生了什么以及如何解决?非常感谢您的帮助!

I'm wondering if anyone knows what is happening here and how to fix it? Thanks a lot for the help!

推荐答案

与标签管理器一起检查时链接到的WP的子目录安装显示的位置与Google GTM GA设置屏幕快照中的位置不同.可变,似乎表明它不是通过GTM中的代码触发网页浏览量. Tag Assistant指示UA-110328630-1的Universal Analytics跟踪代码段

The subdirectory install of WP that you linked to when checked with tag manager is showing a different GA tracking ID in place to that in the screenshot of your GTM GA Settings Variable, and seems to indicate it is not firing pageviews via a tag in GTM. Tag Assistant is indicating a Universal Analytics tracking code snippet for UA-110328630-1

Initializing Google Analytics.
analytics_debug.js:25 Running command: ga("create", "UA-110328630-1", "auto")
analytics_debug.js:25 Creating new tracker: t0 

主要网站安装 https://www.canfitpro.com 显示了相同GTM容器的安装并确实表明通过GTM触发了综合浏览量

The main website installation https://www.canfitpro.com shows the install of the same GTM container and does indicate pageviews firing for via GTM

Initializing Google Analytics.
analytics_debug.js:25 Running command: ga("create", "UA-110328630-1", {name: "gtm1"})
analytics_debug.js:25 Creating new tracker: gtm1

您是否在对GTM容器进行更改后刷新了它,以便GTM中的调试和预览模式可以确认所做的更改?

Did you refresh the GTM container after making changes in it, so that debug and preview mode in GTM would acknowledge the changes?

如果已发布包含更改的容器,是否为正在使用的任何网站缓存刷新了网站缓存?

If you have published the container with the changes, have you flushed the site cache for whatever site caching is being used?

或者,在某些情况下,GA安装仅限于子目录,您需要将cookiePath设置为子目录.该操作将在要设置的字段"选项下的"GA设置变量"中完成

Alternatively, in some instances where a GA installation is restricted to a subdirectory, you will need to set cookiePath to the subdirectory. Which would be done in the GA Settings Variable under Fields to Set option

默认情况下,Google Analytics(分析)将Cookie路径设置为根级别 (/).在大多数情况下,这是适当的选项,并且可以正常工作 正确安装在您的网站,博客或网站上的跟踪代码 公司网站目录.但是,在某些情况下,用户访问权限是 仅限于域的子目录,此方法可以 通过将子目录设置为默认路径来解决跟踪问题 用于所有跟踪.

By default, Google Analytics sets the cookie path to the root level (/). In most situations, this is the appropriate option and works correctly with the tracking code you install on your website, blog, or corporate web directory. However, in a few cases where user access is restricted to only a sub-directory of a domain, this method can resolve tracking issues by setting a sub-directory as the default path for all tracking.

https://developers.google.com /analytics/devguides/collection/upgrade/reference/gajs-analyticsjs#cookiepath

这篇关于Google Analytics(分析)设置值显示"{}"在Google跟踪代码管理器的预览模式下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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