I need to add custom scripts to my AMP GTM container.
We have one for a facebook event. For custom image URL we are using https://www.facebook.com/tr?id=[MY_ID]=PageView&noscript=1
I need to do something similar for Pardot.
<script type="text/javascript">
piAId = '123456';
piCId = '123';
piHostname = 'pi.pardot.com';
(function() {
function async_load(){
var s = document.createElement('script'); s.type = 'text/javascript';
s.src = 'https://pi.pardot.com/pd.js';
var c = document.getElementsByTagName('script')[0]; c.parentNode.insertBefore(s, c);
}
if(window.attachEvent) { window.attachEvent('onload', async_load); }
else { window.addEventListener('load', async_load, false); }
})();
</script>
We have other types of tracking that I'd like to have a custom image for so we can do everything in our GTM container.
Is this possible to do the same way I did facebook? Is there a standard way of doing this? Adding query args?
Any help / guidance is appreciated