I manage all of my tracking pixels with GTM because it’s too hard to get the web team to put each pixel everywhere it needs to go. Basically, I can’t use your web tracking until it works via GTM.
Dmytro Sorokin
@Ted Malone Not sure if you still need it, but I was able to do it via GTM buy using javascript approach
Log in to comment and vote
Comments4
Ted Malone
Oh great, thank you!
Ted Malone
I manage all of my tracking pixels with GTM because it’s too hard to get the web team to put each pixel everywhere it needs to go. Basically, I can’t use your web tracking until it works via GTM.
Dmytro Sorokin
@Ted Malone Not sure if you still need it, but I was able to do it via GTM buy using javascript approach
<script>
// Create the script element
var script = document.createElement('script');
script.id = 'Your ID';
script.async = true;
script.src = 'https://r2.leadsy.ai/tag.js';
script.setAttribute('data-pid', 'Your Code');
script.setAttribute('data-version', 'Your Version'); // Append the script to the head of the document document.head.appendChild(script);
</script>
Vicken Jabourian
You can use the GHL code for the custom HTML in GTM and it works:
<script id="vtag-ai-js" async src="https://r2.leadsy.ai/tag.js?pid=YOUR_PID&version=062024"></script>It basically just uses parameters in the URL for the PID and version rather than data attributes.