Skip to content
Advertisement

Tag: google-analytics

API returning incorrect transactionsPerSession and transactionRevenue data when a custom filter pagepath added

I am using the API to get analytics data display, For that first I am checking data and parameters in this ga-dev-tool. have checked both ways in ga-dev-tool. When I try without pagepath its works properly and I get data of transactionsPerSession and transactionRevenue. But when I try with pagepath in the same way it’s not working and giving 00

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. 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

How to get all properties for Google Analytics GA4 accounts

How do I list all properties for all account using Google Analytics GA4 through PHP? For universal analyitcs I’m using the following: However, this method only allows me to retrieve Universal analytics properties, not the new GA4 ones. The official documentation was of no help at all. Answer Google analytics GA4 is not the same as universal analytics. You can

GA4 run report setting metrics & dimenssion

Using php laravel i am implementing GA4 data analytics api to get metrics data of my GA4 client website but i am unable to find method setName in Google_Service_AnalyticsReporting_Metric class when running script with out adding name i am getting error here is my code Answer Please replace “Google_Service_AnalyticsReporting_Metric” with “Google_Service_AnalyticsData_Metric”. After replacing that variable, the setName method should be

Google Analytics Event Datetime

I have the javascript code below to trigger an event each time a visitor is clicking on a specific element on the page. The problem is with the datetime (dimension3), because it’s in PHP I only get the time of when the page was loaded and not the time of the click. Any idea how I could get the time

Track Shoutcast streams in Google Analytics

Is there a way to track Shoutcast streams in Google Analytics? So for example, each time someone listens to the stream, it records that as a pageview in Google Analytics? I suspect it might result in modifying the Shoutcast server code, but I’m wondering if anyone has done this before, or could point me in the right direction. Answer 2020

Advertisement