Sending data to GMetri Deployment
GMetri supports receiving data for any experience using variables.
You can use query params to send data to a GMetri Deployment using the following format:
https://xxx.gmetri.com/<deployment_slug>?var1=value1&var2=value2...
Eg:
https://xr.gmetri.com/my_metaverse?name=john&theme=blue&tries=7
When passing complex values like URLs or tokens, make sure you
encodeURIComponent
the value to ensure special characters get passed correctly.To use outside data in a GMetri experience using URLs, follow these steps
- 1.Add a custom variable to your experience in editor
- 2.Make use of that variable in your experience any way you want such as via text elements, rules etc./
- 3.Create a deployment and copy the deployment link. You will get the deployment link as
https://xxx.gmetri.com/yyy
- 4.Add the variable you created as a query param to the deployment link as
https://xxx.gmetri.com/yyy?textString=HelloMetaverse!
- 5.You'll be able to use the variable in any way in the experience.
Link for the following embed: https://dcsehw.gmetri.com/floating_rooms_of_tomorrow_blue_1?textString=HelloMetaverse! You can update the query param and see different results for yourself.
A GMetri experience receiving data using query params.
Last modified 3mo ago