简体   繁体   English

Google跟踪代码管理器-容器中没有代码

[英]Google Tag Manager - There are no Tags in the container

So I tried to implement google tag manager following this: https://developers.google.com/tag-manager/enhanced-ecommerce . 因此,我尝试按照以下方法实施Google标记管理器: https : //developers.google.com/tag-manager/enhanced-ecommerce But none of my events are firing. 但是我的事件都没有触发。

在此处输入图片说明

Nothing is being POSTed and nothing shows up in Tag manager admin ... Here is simple code snippet taken from tutorial: 什么都没有发布,并且标签管理器admin中什么也没有显示。这是从教程中提取的简单代码段:

dataLayer.push({
        'event': 'addToCart',
        'ecommerce': {
          'currencyCode': 'EUR',
          'add': {                                // 'add' actionFieldObject measures.
            'products': [{                        //  adding a product to a shopping cart.
              'name': 'Triblend Android T-Shirt',
              'id': '12345',
              'price': '15.25',
              'brand': 'Google',
              'category': 'Apparel',
              'variant': 'Gray',
              'quantity': 1
             }]
          }
        }
      });

I've installed Tag Assistant and it says that Tag Manager is loaded with correct container ID. 我已经安装了Tag Assistant,并且说Tag Manager已加载正确的容器ID。 Any ideas why nothing is POSTed and Tag manager admin console is empty? 有什么想法为什么什么都没有张贴并且标记管理器管理控制台为空?

Thnks! Thnks!

Creating the dataLayer does not send any data by itself, you have to configure tags in GTM first. 创建dataLayer本身不会发送任何数据,您必须首先在GTM中配置标签。

Setup instructions for the tags are somewhat hidden in the documentation, one has to click the green arrows under each code block to see them. 标签的设置说明在文档中有些隐藏,您必须单击每个代码块下的绿色箭头才能看到它们。

So if you create and publish your tags after creating the dataLayer you should start to see information in Google Analytics (allow up to 24 hours for processing latency, although realtime view should display data almost immediately). 因此,如果您在创建dataLayer之后创建和发布标签,则应该开始在Google Analytics(分析)中查看信息(最多允许24小时处理延迟,尽管实时视图几乎可以立即显示数据)。

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

相关问题 从Google跟踪代码管理器中提取代码 - Extract tags from Google Tag Manager Google 跟踪代码管理器容器验证错误 - Google Tag Manager Container Validation Error 使用Java的Google Tag Manager将UTM标签传递到Google Analytics(分析) - Passing UTM Tags to Google Analytics with Google Tag Manager in Javascript not working 检测Google跟踪代码管理器何时完成加载代码 - Detect when Google Tag Manager has finished loading tags Google 跟踪代码管理器在预览(调试)模式下触发代码,但不在实时站点上 - Google Tag Manager Fires Tags in Preview (Debug) Mode, but Not on the Live Site Google跟踪代码管理器有多少标签太多了? - How many tags is too many for Google Tag Manager? 在turbolinks下在GTM(Google跟踪代码管理器)容器中触发代码 - Firing tags in GTM (Google Tag Manager) containers under turbolinks 为什么Google跟踪代码管理器在某些页面上不包含代码? - Why does Google Tag Manager not include tags on certain pages? 使用Google跟踪代码管理器跟踪Analytics(分析)中的Wordpress发布代码 - Tracking Wordpress Post Tags in Analytics using Google Tag Manager Google跟踪代码管理器中的一个大型自定义html标签或多个单独标签之间的任何性能差异 - Any performance differences between one large custom html tag or multiple individual tags in Google Tag Manager
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM