Autogenerated Variables
Last updated
Last updated
Some variables are generated automatically when you create an experience or perform some action. Many of these variables have their values set automatically by the GMetri system. You can use these variables in your Experience logic using Rulesor String Substitution.
v_identifier_var
- A unique ID to identify each viewer who views the experience. This can be viewed in the analytics page. Can be email/name etc. - depends on the authentication mechanism used in the Deployment section.
fullname_var
- A string variable that contains the full name of the user if we get it from the authentication mechanism.
firstname_var
- A string variable that contains the first name of the user if we get it from the authentication mechanism.
lastname_var
- A string variable that contains the first name of the user if we get it from the authentication mechanism.
browser_var
- This variable holds the information on the browser that a viewer uses. For a list of support browsers please check the platform compatibility matrix. Following values will be populated in the browser_var when the viewer views an experience:
device_var
- Holds information about the viewer device type. Possible values: d
,m
,h
.
d
-> Desktop
m
-> Mobile
h
-> Headset
vrmode_var
- Contains TRUE
if the user enters VR Mode. Otherwise FALSE
. Changes real-time to reflect the current state.
Share the progress with a LMS.
Share arbitrary data with a LMS. Persists across sessions.
Used to share score with a LMS
Stores the total number of live viewers in the current room instance
Stores the total number of live viewers in all rooms
score
- This is a special number variable that's used to generate the leaderboard in the analytics section. Use this to store any overall score you may have in the experience.
lang
- The lang
variable can be used by enabling the Show Language Screen
option in the settings section. To add languages, go to the Languages
tab inside Splash Screen. This variable will hold the value of the language selected by the viewer.
Other actions like enabling Lead Generation form fields and adding Media Upload elements can also add auto-generated variables.
Here's an experience you can use to check the value of autogenerated variables in different settings: https://game.gmetri.com/autovariables
Laptop/PC
Safari
safari
Laptop/PC
Chrome
chrome
Laptop/PC
Edge
edge-chromium
iPhone
Chrome
crios
iPhone
Safari
ios
Android
Chrome
chrome
Oculus
Oculus browser
samsung