Google Analytics - Innaccurate Avg. Session Duration and Pages/Session Data
Sorry if this has already been asked, I could not find a similar enough question in the forums.
Recently I have had a lot of difficulty matching my Google Analytics data in Domo.
For instance I have a campaign where it is important to be able to drill down to show
A certain Source/Medium, a set Campaign Name and traffic by Ad Content.
From these dimensions, I need to show Average Session Duration and Pages/Session.
In one example, I am looking at traffic from July 2020 for users arriving via just one source/medium and via my campaign. When replicating this filter in GA and Domo I get an Average Session Duration of 9 and 30.11 seconds respectively. When I change to Pages / Session, I get 1.26 and 0.52 respectively. Obviously both are way off the GA figures.
In an attempt to improve accuracy, I am only pulling through very few metrics and dimensions:
Avg Session Duration, Bounce Rate, Sessions, Pages / Session
Date, Source/Medium, Ad Content, Campaign
Best Answer
-
I have found a solution and am posting here so that others can learn from my mistake.
It seems Domo was successfully pulling data from GA, however the fault was in the interpretation. For instance: consider the following:Date Sessions Pages / Session 1 10 3 2 20 2.5 3 300 1
When calculating the average Pages / Session, Domo only averages the Pages / Session column. Therefore the average of 3, 2.5 and 1 = 2.17.
Google Analytics however is calculating the average Page / Session figure, per Session. As the original calculation did not factor in Sessions for any given day, days in which Sessions peaked, did not have enough impact.
To match GA's calculation in Domo, I added a Beast Mode which reads:
sum(`Sessions` * `Pages / Session`) / sum(`Sessions`)
This in the above example equates to 1.15 which finally matches Google Analytics.0
Answers
-
Hi @user08001
With what granularity are you pulling your data in GA and also when importing into Domo? Some metrics will be different if you're using different granularities as GA will dedupe data for certain metrics.
Have you confirmed your Domo API request is the same as how you're pulling the data within Google? Have you tested with the Google Analytics Query Explorer (https://ga-dev-tools.appspot.com/query-explorer/)? Does that return the same information as Domo or GA?
Are you taking into account the same filters or partitions between GA and Domo?
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
I have found a solution and am posting here so that others can learn from my mistake.
It seems Domo was successfully pulling data from GA, however the fault was in the interpretation. For instance: consider the following:Date Sessions Pages / Session 1 10 3 2 20 2.5 3 300 1
When calculating the average Pages / Session, Domo only averages the Pages / Session column. Therefore the average of 3, 2.5 and 1 = 2.17.
Google Analytics however is calculating the average Page / Session figure, per Session. As the original calculation did not factor in Sessions for any given day, days in which Sessions peaked, did not have enough impact.
To match GA's calculation in Domo, I added a Beast Mode which reads:
sum(`Sessions` * `Pages / Session`) / sum(`Sessions`)
This in the above example equates to 1.15 which finally matches Google Analytics.0 -
Thank you Grant. Yes the granularity was tested in the Query Explorer, which resulted in no errors.
The specifics of the request in the original post:
Avg Session Duration, Bounce Rate, Sessions, Pages / Session
Date, Source/Medium, Ad Content, Campaign0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive