Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
/api/v1/scriptsapplication/jsonexternal_scripts โ remote script URLs.app_scripts_bundle โ inline snippets and reserved keys indicating where scripts are meant to be used.{
"external_scripts": [
{
"id": 101,
"src": null,
"url": "https://cdn.example.com/scripts/tracking-abc123.js",
"status": 2,
"app_id": 5001,
"version": 3
}
],
"app_scripts_bundle": {
"scripts": {
"head": [
"<script type=\"text/javascript\">\n(function () {\n var s = document.createElement('script');\n s.async = true;\n s.src = 'https://widgets.example.com/support.js';\n document.head.appendChild(s);\n})();\n</script>"
],
"global_head_script": [
"<script type=\"text/javascript\">\n(function (w,d,s,u) {\n var js = d.createElement(s);\n js.async = true;\n js.src = u;\n d.head.appendChild(js);\n})(window,document,'script','https://cdn.example-analytics.com/sdk.js');\n</script>"
]
},
"params": {
"snapchatPixelId": "...",
...
}
}
}external_scriptsurl โ absolute URL to the script file.id, status, app_id, version) support identification and versioning.app_scripts_bundlescripts.head<head>-like context (early load).global_head_scriptpurchase_eventproduct_details_eventadd_to_cart_eventremove_from_cart_eventstart_checkout_eventparams/api/v1/scripts from your native code.external_scripts URLs and inline snippets inside your WebView (e.g. via injected scripts or startup HTML).head / global_head_script placement semantics as guidance for when those scripts should run./api/v1/scripts during your app's initialization or configuration phase.external_scripts and app_scripts_bundle to see which scripts and reserved keys are available.