I need to link a GTM variable in a custom HTML tag, how does that work exactly?
<script>
var parsedUtm = JSON.parse({{utmCookie}} || '{}'); // works
var utm_source = parsedUtm['utmSource'] || {{utmSource}} || ''; // works
_cb.push(['setVisitorIdentifier', '{{utmSource}}']); // no idea how this works :)
</script>
New contributor
Mediamash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1