Skip to content

Instantly share code, notes, and snippets.

@elephantsneverforget
Created February 15, 2024 21:29
Show Gist options
  • Save elephantsneverforget/5c053131f984b210f12d8b4ae7100ecb to your computer and use it in GitHub Desktop.
Save elephantsneverforget/5c053131f984b210f12d8b4ae7100ecb to your computer and use it in GitHub Desktop.
<script type="module">
try {
const settings = {};
const config = (await import("https://shopify-gtm-suite.getelevar.com/configs/41192d94c4af24912cec0b65eb5e29a0b3ba6634/config.js")).default;
const scriptUrl = settings.proxyPath
? `${settings.proxyPath}${config.script_src_custom_pages_proxied}`
: config.script_src_custom_pages;
if (scriptUrl) {
const { handler } = await import(scriptUrl);
await handler(config, settings);
}
} catch (error) {
console.error("Elevar Error:", error);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment