相关疑难解决方法(0)

跟踪目录产品展示次数 - 增强型电子商务Google Analytics

我正在尝试使用Google Analytics分析增强型电子商务跟踪在电子商务目录页面上实施产品展示.

遵循规范,应该像这样实现它:

ga('create', 'UA-XXXXX-Y');
ga('require', 'ec');

ga('ec:addImpression', {
  'id': 'P12345',                   // Product details are provided in an impressionFieldObject.
  'name': 'Android Warhol T-Shirt',
  'category': 'Apparel/T-Shirts',
  'brand': 'Google',
  'variant': 'black',
  'list': 'Search Results',
  'position': 1                     // 'position' indicates the product position in the list.
});

ga('ec:addImpression', {
  'id': 'P67890',
  'name': 'YouTube Organic T-Shirt',
  'type': 'view',
  'category': 'Apparel/T-Shirts',
  'brand': , 'YouTube',
  'variant': 'gray',
  'list': 'Search Results',
  'position': 2
});

ga('send', 'pageview');              // Send product impressions with initial pageview.
Run Code Online (Sandbox Code Playgroud)

虽然规格显示了一个赛道网页浏览事件.为了发送REAL印象,我想在用户向下滚动时触发信标.为此,我通过"延迟加载器"触发了事件,该加载器使用事件'ga(发送,印象)'逐渐加载目录上的图像,但它不起作用,如果我使用其他综合浏览器事件我这样做会破坏我在GA上的综合浏览量指标.

有没有人有关于如何解决这个问题的想法?

javascript google-analytics e-commerce

8
推荐指数
1
解决办法
5844
查看次数

标签 统计

e-commerce ×1

google-analytics ×1

javascript ×1