Page 2 of 2

Variables on Another Page

Same setup, different page. Variables are captured fresh on each page.

📊

Dynamic Data Capture

Variables are read at submission time, not at page load.

Variables on This Page

This page has the same variables plus an extra one:

userId
12345
sessionId
sess_abc789xyz
appVersion
2.1.0
userRole
admin
currentPage (new!)
checkout

How It Works

// Each page defines its own variables
var userId = 12345;
var currentPage = 'checkout'; // page-specific

// Ginotate reads them at submission time
// so you always get current values

Key Points

  • Variables are looked up from window by name
  • Values are captured when user submits (not at page load)
  • Missing variables are silently ignored
  • Works with any global variable your app exposes
  • Combine with window.ginotate bucket for more data

Note: This page includes currentPage in gino-vars. Submit feedback here and you'll see it in the payload!