[英]How to fetch Enhanced ecommerce data from analytics using Google analytics Reporting API - PHP
I configured google analytics and integrated Enhanced ecommerce report of my website.我配置了谷歌分析并集成了我网站的增强型电子商务报告。 (Screenshot - Analytics Dashboard)
(屏幕截图 - 分析仪表板)
Now I want to fetch the analytics reports via API.现在我想通过 API 获取分析报告。 I could successfully fetch the reports in "Audience Overview".
我可以成功获取“受众概览”中的报告。 But I couldn't fetch the reports in "Ecommerce Shopping Behavior".
但我无法获取“电子商务购物行为”中的报告。
I used Hello Analytics Reporting API v4 PHP and Dimensions & Metrics Explorer for fetching data.我使用Hello Analytics Reporting API v4 PHP和Dimensions & Metrics Explorer来获取数据。
I want to fetch " Sessions with Add to Cart " and " Sessions with Transactions " (Screenshot) .我想获取“带有添加到购物车的会话”和“带有交易的会话” (屏幕截图) 。 But I don't know which metrics are using for these data.
但我不知道这些数据使用了哪些指标。
Does any one know how can we fetch the data in " Ecommerce Shopping Behavior " with analytics reporting API?有谁知道我们如何通过分析报告 API 获取“电子商务购物行为”中的数据?
Thanks谢谢
For fetching 'Enhanced Ecommerce - Shopping Behavior' data, you can use "Shopping Stage" Dimension.要获取“增强型电子商务 - 购物行为”数据,您可以使用“购物阶段”维度。
It will provide the informations in Various stages of the shopping experience like PRODUCT_VIEW, ADD_TO_CART, CHECKOUT etc.它将提供购物体验各个阶段的信息,如 PRODUCT_VIEW、ADD_TO_CART、CHECKOUT 等。
So in your case, you want results based on sessions.因此,在您的情况下,您需要基于会话的结果。 So try Dimension as " ga:shoppingStage " and Metrics as " ga:sessions "
因此,尝试将 Dimension 设为“ ga:shoppingStage ”,将 Metrics 设为“ ga:sessions ”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.