Google 分析增强型电子商务不起作用

Google Analytics Enhanced Ecommerce doesn't work

我正在尝试将增强型电子商务集成到我的页面中(Google 分析似乎有效)。问题是 - 在浏览器控制台中,我收到没有错误的调试消息,但在 Google 分析页面上我什么也看不到。

所以,看起来像这样:

我刚刚从 documentation:

复制的这段代码
  this.$ga.ecommerce.addProduct({
    'id': 'P12345',                   // Product ID (string).
    'name': 'Android Warhol T-Shirt', // Product name (string).
    'category': 'Apparel',            // Product category (string).
    'brand': 'Google',                // Product brand (string).
    'variant': 'Black',               // Product variant (string).
    'position': 1,                    // Product position (number).
    'dimension1': 'Member'            // Custom dimension (string).
  });
  this.$ga.ecommerce.setAction('click', {
    'list': 'Search Results'
  });

并且在 Google 分析页面上没有关于此的内容。除了在线用户和他们访问的页面之外什么都没有,但与增强型电子商务无关

我在 Stack Overflow 的某处看到页面上必须只有一个动作,我试过了但没有用。 无论如何,这里是 @nuxtjs/google-analytics:

的配置
const testingAnalytics = true;

module.exports = {
    modules: [
     '@nuxtjs/google-analytics',
    ],
      googleAnalytics: {
    id: process.env.GA_ID,
    dev: testingAnalytics ? true : process.env.NODE_ENV !== 'production',
    debug: testingAnalytics
      ? {
        enabled: true,
        sendHitTask: true
      }
      : {},
    ecommerce: {
      enabled: true,
      enhanced: true
    }
  },
}

如果有人知道如何解决这个问题以及如何使事情正常进行,我将不胜感激。

数据需要 24 到 48 小时才能显示在 Google 分析网站的标准报告中。

如果您查看实时报告,您应该会看到命中率。

实时报告 GA4

实时报告 UA

实际上,可能一切正常,您可以确保单击此按钮以获取新报告: