Created
February 15, 2024 21:29
-
-
Save elephantsneverforget/5c053131f984b210f12d8b4ae7100ecb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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