我在分析电子商务页面中看不到购买的产品

问题描述

对于我的电子商务,我将woocommerce与GTM4WP结合使用。

我已经使用Google跟踪代码管理器配置了分析工具,并且除了电子商务数据(购买了什么产品,价格是多少等等)之外,所有来自网站的数据都已正确传输到了Google Analytics(分析)。 我正在检查网站和所有e

  event: 'gtm.js',gtm: {uniqueEventId: 1},customerTotalOrders: 28,customerTotalOrderValue: '15.30',customerFirstName: '..',customerLastName: '...',customerBillingFirstName: '...',customerBillingLastName: '...',customerBillingCompany: '...',customerBillingAddress1: '...',customerBillingAddress2: '.',customerBillingCity: '...',customerBillingPostcode: '..',customerBillingCountry: '...',customerBillingEmail: '...',customerBillingPhone: '...',customerShippingFirstName: '..',customerShippingLastName: '..',customerShippingCompany: '...',customerShippingAddress1: '...',customerShippingAddress2: '...',customerShippingCity: '...',customerShippingPostcode: '...',customerShippingCountry: '...',cartContent: {
    totals: {
      applied_coupons: [],discount_total: 0,subtotal: '86.50',total: '86.50'
    },items: [
      {
        id: 195521,name: '....',sku: 195521,category: '...',price: 21.6,stocklevel: 112,variant: '250g,...',quantity: 3
      },{
        id: 195520,name: '...',sku: 195520,price: 41.6,variant: '500g,quantity: 1
      }
    ]
  },ecomm_prodid: [195521,195520],ecomm_pagetype: 'cart',ecomm_totalvalue: 106.4,ecommerce: {
    currencyCode: '...',checkout: {
      actionField: {step: 2},products: [
        {
          id: 195521,quantity: 3
        },{
          id: 195520,quantity: 1
        }
      ]
    }
  },google_tag_params: {
    customerTotalOrders: 28,customerFirstName: 'P',customerLastName: 'G',customerBillingAddress2: '...',customerBillingPostcode: '...',customerShippingFirstName: '...',customerShippingLastName: '...',cartContent: {
      totals: {
        applied_coupons: [],total: '86.50'
      },items: [
        {
          id: 195521,quantity: 1
        }
      ]
    },ecommerce: {
      currencyCode: '...',checkout: {
        actionField: {step: 2},products: [
          {
            id: 195521,quantity: 3
          },{
            id: 195520,quantity: 1
          }
        ]
      }
    }
  }
}
    放置
  • '...'而不是实际数据

在分析中,我启用了“电子商务”设置。

为什么我在分析中看不到有关购买的统计信息?

解决方法

伊尔卡。

您似乎在混合使用Google电子商务和Google增强型电子商务语法(以及某些特定于后端系统的语法)。

例如,您使用标准电子商务的“ items”开始产品列表,但使用增强型电子商务的“ category”和“ variant”变量。

检查您是否已启用增强型电子商务。

如果是这样,请使用此处建模的语法:

https://developers.google.com/tag-manager/enhanced-ecommerce#checkout

如果没有,请使用此处建模的语法:

https://developers.google.com/tag-manager/ecommerce-appweb#measure_a_checkout