question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Analytics: On web there's a new session every page load

See original GitHub issue

Describe 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:

  1. Create a web app with a few pages that includes analytics & auth
  2. Add Analytics.autoTrack('pageView', { type: 'multiPageApp' }) to the code.
  3. Navigate around a bit
  4. 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:closed
  • Created 5 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
readshawcommented, Apr 12, 2019

Thanks @roborourke. Our team reached a similar conclusion on the way forward for multi-page sites.

0reactions
github-actions[bot]commented, Jun 12, 2021

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.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found