跟踪目录产品展示次数 - 增强型电子商务谷歌分析 [英] Tracking catalog product impressions - Enhanced Ecommerce Google Analytics

查看:141
本文介绍了跟踪目录产品展示次数 - 增强型电子商务谷歌分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用在电子商务商品目录页上实现商品展示谷歌分析增强的电子商务跟踪。



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

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

ga('ec:addImpression',{
'id':'P12345',//产品详细信息在impressionFieldObject中提供
'name':'Android Warholhol T恤',
'category':'服装/ T恤',
'品牌':'Google',
'variant':'black',
' list':'Search Results',
'position':1 //'position'表示产品在列表中的位置。
});

('ec:addImpression',{
'id':'P67890',
'name':'YouTube有机T恤',
'类型':'view',
'category':'服装/ T恤',
'品牌':,'YouTube',
'变体':'灰色',
'list':'搜索结果',
'position':2
});

ga('send','pageview'); //以初始综合浏览量发送产品展示

尽管规格显示了一个跟踪浏览量事件。为了发送真实印象,我想在用户向下滚动时触发信标。要做到这一点,我通过一个懒惰的加载器触发事件,该加载器使用事件ga(send,impression)逐渐加载目录上的图像,但它不起作用,如果我通过其他浏览量事件会破坏我在GA上的综合浏览量。



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

解决方案

来自增强型电子商务文档


注意:电子商务数据只能使用现有匹配进行发送,对于
例如网页浏览或事件。如果您使用电子商务命令但未
发送任何匹配,或者在电子商务命令之前发送匹配,那么将不会发送
电子商务数据。


使用非互动将其发送事件代替:

ga('send','event','catalog','impression',{'nonInteraction':true}) ;


I'm trying to implement product impressions on a ecommerce catalog page using google analytics enhanced ecommerce tracking.

Following the specs one should implement it like this:

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.

Although the specs show a track pageview event. In order to send REAL impressions I wanted to trigger the beacon once the user scrolled down. To do that I've triggered the event through a "lazy loader" which loads gradually the images on the catalog using the event 'ga(send, impression)' but it won't work and if I do that with additional pageviews events I would be corrupting my pageviews metric on GA.

Does anyone have ideas on how to solve that?

解决方案

From the Enhanced Ecommerce docs:

Note: Ecommerce data can only be sent with an existing hit, for example a pageview or event. If you use ecommerce commands but do not send any hits, or the hit is sent before the ecommerce command then the ecommerce data will not be sent.

Send it with a non-interactive event instead:

ga('send', 'event', 'catalog', 'impression', {'nonInteraction': true});

这篇关于跟踪目录产品展示次数 - 增强型电子商务谷歌分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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