Embedded Script Dynamic Parameters

You may choose to embed dynamic parameters in your script, if you have any custom keys per user. For example:
1
<script id="my-script" src="https://cdn.myap.com/pixel.js?id={{KeyName123}}" async='true'></script>

Using dynamic key parameters

Dynamic parameters must be:
  • Wrapped in double curly braces.
  • Within a quote (") in order to avoid code evaluation.
  • Set using the Embedded Scripts API.
Important:
If you add, remove, or change a dynamic key, users will need to update your app to receive the latest version of the embedded script. This means that any users that don't update your app will remain on older versions of the script.
Note:
You can also inject script into placeholders provided by Wix Stores.
Test your app on your site
Make sure everything is connected and working properly. If everything it working properly, you should see your script injected to the site with the appropriate parameter in place.