You are here

pardot-js.tpl.php in Pardot Integration 6

File

pardot-js.tpl.php
View source
piAId = "<?php

print $pardot_a_id;
?>";
piCId = "<?php

print $pardot_c_id;
?>";
<?php

if ($score) {
  ?>
piPoints = "<?php

  print $score;
  ?>";
<?php

}
?>

(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); }
})();