Google跟踪代码管理器未将电子商务数据发送到Google Analytics(分析)(标准电子商务) [英] Google Tag Manager Not Sending Ecommerce Data to Analytics (Standard Ecommerce)

查看:96
本文介绍了Google跟踪代码管理器未将电子商务数据发送到Google Analytics(分析)(标准电子商务)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在思考这一问题,不知道为什么我们的Google跟踪代码管理器代码未将数据发送到我们的Google Analytics(分析)帐户.

I have been racking my brain on this one and not sure why our Google Tag Manager code isn't sending data to our Google Analytics account.

我在这里研究了多个类似问题的问题,但没有为我工作.另外,这是我遵循的很棒的指南 https: //www.analyticsmania.com/post/ecommerce-tracking-with-google-tag-manager/-但仍然无法将电子商务数据发送到GA.

I have researched multiple questions on here that have similar issues, but haven't worked for me. In addition this is a great guide I've followed https://www.analyticsmania.com/post/ecommerce-tracking-with-google-tag-manager/ - but still no luck in sending the ecommerce data to GA.

下面是我们在/ticketing/confirm/页面上使用的数据层,客户在完成结帐时会去到那里:

Below is the data layer that we're using on our /ticketing/confirm/ page where our customers go when they complete checkout:

    <script>
        dataLayer = [{
            'theatreLocation': 'xxxx',
            'theatreState': 'xx',
            'userID': '0',
            'userEmail': 'xxx',
            'movieTitle': 'xxx',
            'transactionId': 'xxx',
            'transactionTotal': xxx,
            'transactionProducts': [
            ]
        }];
    </script>

这些变量将根据购买的产品自动更新.此标记也放置在我们的Google跟踪代码管理器脚本上方,该脚本会在此脚本下方触发.

These variables are automatically updated based on the product that is purchased. This tag is also placed above our Google Tag Manager script, which fires just below this one.

在Google跟踪代码管理器中,我们有一个连接到Google Analytics(分析)帐户的电子商务代码,它是一种交易类型代码.此标签设置为在订单确认URL的触发器上触发.此时,数据应发送到GA

Within Google Tag Manager, we have an ecommerce tag connected to our GA account that is a transaction type tag. This tag is set to fire on a trigger of the order confirmation URL. At this point the data should be sending to GA

代码设置- https://i.imgur.com/M5LhUuO.png 触发设置- https://i.imgur.com/dRIZyaJ.png

Tag setup - https://i.imgur.com/M5LhUuO.png Trigger setup - https://i.imgur.com/dRIZyaJ.png

在检查带有标签管理器扩展名的订单确认页面时,它会在确认页面的页面视图上显示触发我们的标签: https://i.imgur.com/mPncBqc.png

When checking an order confirmation page with the tag manager extension, it shows our tags being fired on page view of the confirmation page: https://i.imgur.com/mPncBqc.png

总体摘要视图: https://i.imgur.com/TUMxhKS.png

电子商务标签的详细视图: https://i.imgur.com/84ZQaW7.png

Detailed view of the eCommerce tag: https://i.imgur.com/84ZQaW7.png

我还安装了标签助手扩展,如下所示: https://i .imgur.com/PGgNp4S.png

I also have the tag assistant extension installed and here is what that looks like: https://i.imgur.com/PGgNp4S.png

分析标记的详细视图: https://i.imgur.com/7PDTqgb. png

And the detailed view of the Analytics tag: https://i.imgur.com/7PDTqgb.png

根据我上面链接的文章,标签助手中的分析标签的详细视图应列出其他事件",该事件应为发送至GA的交易信息-但正如我们的屏幕快照所示没有那个.我不确定我要去哪里错了,因为我认为所有设置都正确,但是很明显有休息的地方.

According to the article I linked above, the detailed view of that analytics tag within tag assistant should have an "other event" listed which should be the transaction info being sent to GA - but as you can see from our screenshot mine does not have that. I'm not sure where I'm going wrong as I think I have everything setup correctly, but clearly there is a break somewhere.

我们非常感谢您的帮助或投入.

Any help or input is really appreciated.

推荐答案

从标记设置的跟踪ID"字段中删除设置变量.假设您要使用在设置变量中设置的跟踪ID,请取消选中该选项以覆盖设置变量.

Remove the settings variable from the tracking ID field in the tag setup. Assuming you want to use the tracking ID you set in the settings variable, uncheck the option to override the settings variable.

如果您确实想从您的设置变量中覆盖跟踪ID,则它必须是返回跟踪ID的字符串或变量,而不是整个设置变量.

If you do want to override the tracking ID from your settings variable, this needs to be a string or variable that returns a tracking ID and not an entire settings variable.

这篇关于Google跟踪代码管理器未将电子商务数据发送到Google Analytics(分析)(标准电子商务)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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