如何在 Google Analytics 中注册包含产品价格的交易?
How to register transaction including product prices in Google Analytics?
我正在尝试使用增强型电子商务来跟踪网上商店的 e-commerce 统计信息。我们有一些订单是通过后端系统自动触发的。为了衡量这些交易,我们使用网络请求将数据发送到 Google Analytics。
这是基于https://gist.github.com/0liver/11229128
提供的一些代码
我使用以下参数注册此交易:
v=1 // Version.
&tid=UA-XXXXX-Y // Tracking ID / Property ID.
&cid=555 // Anonymous Client ID.
&t=pageview // Pageview hit type.
&dh=mydemo.com // Document hostname.
&dp=/receipt // Page.
&dt=Receipt%20Page // Title.
&ti=T12345 // Transaction ID. Required.
&ta=Google%20Store%20-%20Online // Affiliation.
&tr=37.39 // Revenue.
&tt=2.85 // Tax.
&ts=5.34 // Shipping.
&tcc=SUMMER2013 // Transaction coupon.
&pa=purchase // Product action (purchase). Required.
&pr1id=P12345 // Product 1 ID. Either ID or name must be set.
&pr1nm=Android%20Warhol%20T-Shirt // Product 1 name. Either ID or name must be set.
&pr1ca=Apparel // Product 1 category.
&pr1br=Google // Product 1 brand.
&pr1va=Black // Product 1 variant.
&pr1ps=1 // Product 1 position.
基于 https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide 在 header 衡量购买下方提供的信息。
所有这些值都很好,但我还想在交易中登记每个产品的产品价格。
所以根据参数参考,我可以结合使用产品价格参数和产品索引来添加它。
usage: pr<productIndex>pr=29.20
导致例如pr1pr=59.00
我确保价格格式正确。仅使用小数且不使用逗号,但没有价格值在 Google Analytics 中注册。
这样可以注册商品价格吗?
我应该使用不同的方法来解决这个问题吗?
因此控制台应用程序发送的数据显示在 Google 分析报告中。我建立参数的方式似乎工作得很好。我的应用程序出现其他问题,与 Google Analytics 无关。感谢您的时间 DalmTo。
我正在尝试使用增强型电子商务来跟踪网上商店的 e-commerce 统计信息。我们有一些订单是通过后端系统自动触发的。为了衡量这些交易,我们使用网络请求将数据发送到 Google Analytics。
这是基于https://gist.github.com/0liver/11229128
提供的一些代码我使用以下参数注册此交易:
v=1 // Version.
&tid=UA-XXXXX-Y // Tracking ID / Property ID.
&cid=555 // Anonymous Client ID.
&t=pageview // Pageview hit type.
&dh=mydemo.com // Document hostname.
&dp=/receipt // Page.
&dt=Receipt%20Page // Title.
&ti=T12345 // Transaction ID. Required.
&ta=Google%20Store%20-%20Online // Affiliation.
&tr=37.39 // Revenue.
&tt=2.85 // Tax.
&ts=5.34 // Shipping.
&tcc=SUMMER2013 // Transaction coupon.
&pa=purchase // Product action (purchase). Required.
&pr1id=P12345 // Product 1 ID. Either ID or name must be set.
&pr1nm=Android%20Warhol%20T-Shirt // Product 1 name. Either ID or name must be set.
&pr1ca=Apparel // Product 1 category.
&pr1br=Google // Product 1 brand.
&pr1va=Black // Product 1 variant.
&pr1ps=1 // Product 1 position.
基于 https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide 在 header 衡量购买下方提供的信息。
所有这些值都很好,但我还想在交易中登记每个产品的产品价格。
所以根据参数参考,我可以结合使用产品价格参数和产品索引来添加它。
usage:
pr<productIndex>pr=29.20
导致例如pr1pr=59.00
我确保价格格式正确。仅使用小数且不使用逗号,但没有价格值在 Google Analytics 中注册。
这样可以注册商品价格吗? 我应该使用不同的方法来解决这个问题吗?
因此控制台应用程序发送的数据显示在 Google 分析报告中。我建立参数的方式似乎工作得很好。我的应用程序出现其他问题,与 Google Analytics 无关。感谢您的时间 DalmTo。