Analytics: On web there's a new session every page load
See original GitHub issueDescribe the bug Using page view auto tracking on a website I’m seeing a new session ID for every page view. Given that this was me clicking around a site I would assume this should constitute a single session. It’s difficult or impossible to query for a user’s journey without a single session ID.
To Reproduce Steps to reproduce the behavior:
- Create a web app with a few pages that includes analytics & auth
- Add
Analytics.autoTrack('pageView', { type: 'multiPageApp' })
to the code. - Navigate around a bit
- Number of recorded “sessions” should match the number of page views
Expected behavior There should be a single session ID for the user’s time on the site until they become inactive or otherwise.
Desktop (please complete the following information):
- OS: OSX
- Browser: Chrome
- Version: 71
Additional context It’s hard to find info on what constitutes a session in the docs, I’m sure I saw it but can’t find it now.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
How a web session is defined in Universal Analytics
Overview. A session is a group of user interactions with your website that take place within a given time frame. For example a...
Read more >Google Analytics start always new session for every page visited
This hit starts a new session, most likely because the client ID changed. This is caused by an improper tracking code implementation. Meaning: ......
Read more >Every single reason why a Google Analytics session will start ...
A Google Analytics session will start over after 30 minutes of inactivity, and inactivity means that there were no interaction hits during a ......
Read more >Google Analytics Sessions: Everything You Need To Know
Sessions are how Google Analytics tracks each time your website visitors ... Once the web page finishes loading, the analytics tracking code ...
Read more >Google Analytics And The Page Load | Simo Ahava's blog
An article describing how Google Analytics interacts with, and is influeced by, the page load of the web browser. The rendering process has ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @roborourke. Our team reached a similar conclusion on the way forward for multi-page sites.
This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels or Discussions for those types of questions.