Sending data to GMetri Deployment
GMetri supports receiving data for any experience using variables.
Last updated
GMetri supports receiving data for any experience using variables.
Last updated
You can use query params to send data to a GMetri Deployment using the following format:
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
Add a custom variable to your experience in editor
Make use of that variable in your experience any way you want such as via text elements, rules etc./
Create a deployment and copy the deployment link. You will get the deployment link as https://xxx.gmetri.com/yyy
Add the variable you created as a query param to the deployment link as https://xxx.gmetri.com/yyy?textString=HelloMetaverse!
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.