Skip to content

mbaersch/ga4-session-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GA4 Session Info

Custom Variable Template for Google Tag Manager

Reads GA4 _ga_xxxxxx cookie and extracts data

Template Status Repo Size License


Usage

Pick a method to determine a cookie name for the right session either by entering the cookie name or just the measurement id for a data stream.

Result type

Chose what value to return:

  • Last event timestamp: GA4 updates a timestamp every time an event is sent
  • Seconds since last event: calculates elapsed time since last event timestamp
  • Session ID: id for current session (matches timestamp of session start)
  • Session number: number of current session
  • Cookie value: full cookie value (undecoded)

About

Custom Variable Template for Google Tag Manager

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages