Dear all,
we want to push a script (custom html tag) via tag manager, but only a part of it is pushed.
This is what was added as a tag that should be triggered every page view.
And this is what is pushed
Any ideas?
Thank you!
Dear all,
we want to push a script (custom html tag) via tag manager, but only a part of it is pushed.
This is what was added as a tag that should be triggered every page view.
Any ideas?
Thank you!
Hi @alenka . I believe that’s a security feature. It strips out any attributes aside from src
. You could try working around it using something like the following in your CustomHTML tag:
<script>
(function () {
const script = document.createElement('script');
script.src = 'https://my-domain.com/test.js';
script.setAttribute('data-jrny', 'abc123');
script.setAttribute('data-frm-dtct', 'true');
script.setAttribute('data-multi-dmn', 'true');
script.async = true;
document.head.appendChild(script);
})();
</script>