简体   繁体   English

如何使用 Google 分析从分析中获取增强型电子商务数据

[英]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 PHPDimensions & 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.

相关问题 我们是否可以使用PHP中的Reporting API从Google Analytics中获取所有用户和会话 - Can we fetch all users and session from google analytics using Reporting API in PHP 使用Google Analytics API和PHP从分析帐户获取数据 - Getting data from a analytics account using Google Analytics API and PHP Google Analytics核心报告API PHP查询 - Google Analytics Core Reporting API PHP Query Google Analytics(分析)PHP API:获取报告 - Google Analytics PHP API : get reporting 如何连续两天按小时获取数据? (Google Analytics Reporting API v4,PHP库) - How to get data on hourly basis for two days? (Google Analytics Reporting API v4, PHP library) 谷歌分析区域使用google-api-php-client库从谷歌分析获取 - google analytics region fetch from google anaytics using google-api-php-client library 如何使用 PHP 在 Google Analytics API 中实现 != ? - how to implement != in Google Analytics API using PHP? 将Google AnalyticsAPI与PHP结合使用 - Using Google Analytics API with PHP 如何使用php从谷歌分析API获取下一个10,000数据? - How to get the next 10,000 data from google analytics api using php? 如何在Google Analytics(分析)数据API中获取自定义变量值? - How to fetch custom variable value in google analytics data api?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM