Created
September 25, 2015 18:27
-
-
Save PardotGists/f8b3547311abaa56c68f to your computer and use it in GitHub Desktop.
Implementing Tracking Code sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript">// <![CDATA[ | |
piAId = '#####'; | |
piCId = '####'; | |
(function() { | |
function async_load(){ | |
var s = document.createElement('script'); s.type = 'text/javascript'; | |
s.src = ('https:' == document.location.protocol ? 'https://pi' : 'http://cdn') + '.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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to know when pardot is fully loaded?