Multiple instances
In some cases, you may need to run two different EdgeTag instances on the same shop. This requires initializing each EdgeTag with a unique EdgeTag URL. Below are some examples of how to manage this situation. We recommend including the destination in all your calls from the start if you anticipate this scenario.
<script>
window.edgetag=window.edgetag||function(){(edgetag.stubs=edgetag.stubs||[]).push(arguments)};
edgetag('init', {
edgeURL: 'https://a.mysite.com',
disableConsentCheck: true
})
</script>
<script async type="text/javascript" src="https://a.mysite.com/load"></script><script>
window.edgetag=window.edgetag||function(){(edgetag.stubs=edgetag.stubs||[]).push(arguments)};
edgetag('init', {
edgeURL: 'https://b.mysite.com',
disableConsentCheck: true
})
</script>
<script async type="text/javascript" src="https://b.mysite.com/load"></script>edgetag('tag', 'PageView')Last updated
Was this helpful?

