Skip to content

Instantly share code, notes, and snippets.

@PardotGists
Created September 25, 2015 18:27
Show Gist options
  • Save PardotGists/f8b3547311abaa56c68f to your computer and use it in GitHub Desktop.
Save PardotGists/f8b3547311abaa56c68f to your computer and use it in GitHub Desktop.
Implementing Tracking Code sample
<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>
@jhenaoz
Copy link

jhenaoz commented Apr 18, 2016

how to know when pardot is fully loaded?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment