This demo shows how to pass data to Ginotate using the gino-vars attribute
to reference existing global variables.
// Your app already has these variables var userId = 12345; var sessionId = 'sess_abc789xyz'; var appVersion = '2.1.0'; var userRole = 'admin';
<script src="ginotate.js" <!-- Custom variables --> gino-vars="userId,sessionId,appVersion,userRole" <!-- Appearance --> gino-color="purple" gino-icon="bug" gino-size="medium" gino-shape="circle" gino-pulse="true" <!-- Content --> gino-title="Report Issue" gino-categories="Bug,UI Issue,Performance,Other" gino-testerId="QA Tester" <!-- API --> gino-apiKey="demo-key-12345" gino-demoMode="true" defer></script>
All configuration can be done via HTML attributes - no JavaScript needed!
These are the actual values that will be captured:
gino-vars when:Your app already exposes data as global variables and you don't want to duplicate them.
window.ginotate when:You want a dedicated bucket for Ginotate data, or need dynamic/computed values.
Try it: Click the purple flag, capture a screenshot, and submit. Check the metadata section to see your variables included in customVars!