简体   繁体   English

Google 分析如何跟踪电子商务访问者的行为

[英]How Google analytics can track e-commerce visitors behavior

I am sorry if my question seems to be weird but I can't find any information on the Web..如果我的问题看起来很奇怪,但我在网上找不到任何信息,我很抱歉..

The question is simple: how Google analytics can be able to track ANY e-commerce website's data?问题很简单:谷歌分析如何能够跟踪任何电子商务网站的数据?

Websites are different and each one is coded differently so how Google Javascript tag could detect special events like transactions and adding to cart?网站不同,每个网站的编码也不同,那么 Google Javascript 标签如何检测特殊事件,如交易和添加到购物车?

Note : I am not talking about simple data like visit duration or seen pages or the URL etc. I am talking about spacial information like:注意:我不是在谈论简单的数据,如访问持续时间或看到的页面或 URL 等。我在谈论空间信息,如:

  • Visitors commands访客命令
  • Visitors carts访客推车
  • Visitors carts amount访客购物车数量
  • Etc等等

Basically it works like this.基本上它是这样工作的。 There is a standard piece of javascript for google analytics that is placed on ever page typically done via an include file of some sort that causes it to be included on ever page of the website.有一个标准的 javascript 用于谷歌分析,通常通过某种包含文件完成的页面上放置,导致它被包含在网站的每个页面上。

That basically gets you all the standard analytics (visits, page views, etc).这基本上可以为您提供所有标准分析(访问、页面浏览等)。

Then if you want ecommerce tracking (like value of orders placed, products ordered, etc) you place a second javascript file on your thank you page and that piece of javascript has parameters for order value, and products on the order (qty and price).然后,如果您想要电子商务跟踪(例如所下订单的价值、订购的产品等),您可以在感谢页面上放置第二个 javascript 文件,并且该 javascript 文件包含订单价值和订单产品的参数(数量和价格) . You can see more details of the many fields that can be passed about the order here: https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce您可以在此处查看有关订单的许多可以传递的字段的更多详细信息: https : //developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce

In summary: Outside of the standard analytics that it can collect with the sitewide javascript file, Google Analytics only knows what you tell it.总结:除了它可以通过站点范围的 javascript 文件收集的标准分析之外,谷歌分析只知道你告诉它什么。 So if you want cart or order tracking, you need to include a special javascript file for that and pass it the information you want to see in Google Analytics.因此,如果您想要购物车或订单跟踪,您需要为此包含一个特殊的 javascript 文件,并将您希望在 Google Analytics 中看到的信息传递给它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM