googleanalytics / autotrack

Automatic and enhanced Google Analytics tracking for common user interactions on the web.
Other
4.93k stars 563 forks source link

Sessions should expire if the client ID changes #190

Open philipwalton opened 7 years ago

philipwalton commented 7 years ago

The current session-expiration logic doesn't handle the case where the user clears their cookies and the client ID is reset. Since this will be a new session in GA, it should be handled in autotrack. The easiest way is probably to store the client ID in the session metadata.