简体   繁体   English

如何修复 Google Analytics for AMP 插件跟踪代码?

[英]How to fix Google Analytics for AMP plugin tracking code?

Website: https://kidsenglishclass.com Type of business: Education, English Lessons, Online Classes, English Tutor, English For Kids网站: https://kidsenglishclass.com业务类型:教育、英语课程、在线课程、英语导师、儿童英语

Google Analytics tracking tag is installed but not receiving data.已安装 Google Analytics 跟踪代码,但未接收数据。

enter image description here在此处输入图像描述

enter image description here在此处输入图像描述

When you debug it, you get this error: The tid (G-0KXVN1M2LR) is not a valid target.当你调试它时,你会得到这个错误: The tid (G-0KXVN1M2LR) is not a valid target.

You're using a wrong id.您使用了错误的 ID。 Well, ok, to be precise, you're using a correct ID.好吧,准确地说,您使用的是正确的 ID。 For GA4.对于 GA4。 But your plugin doesn't expect GA4, it was made for GA UA.但是您的插件并不期望 GA4,它是为 GA UA 制作的。

I suggest deleting the plugin, installing GTM instead and have your tracking in there.我建议删除插件,安装 GTM 并在那里进行跟踪。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM