• Nina B Lil
  • NEWBIE
  • 0 Points
  • Member since 2021
  • Mr.
  • Buy weed online UK

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi Everyone,

I'm trying to gain visibility, in Pardot, into external clicks made on a B2B Commerce storefront site. The B2B Commerce features more than 10,000 products and we need to track various clicks (Document Downloads, Request for Quote, etc.) making it unrealistic to create individual custom redirect links for each product.

I'm using Google Tag Manager to target these clicks by their HTML classes and have been able to successfully fire Pardot Campaign Tracking Code on these events. However, these clicks simply appear as another redundant pageview in Pardot since the window's URL doesn't change. 

I found this article explaining exactly what I want to do (https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAA/Help/EloquaAsynchronousTrackingScripts/Tasks/TrackingCustomURLs.htm), but it is specific to Oracle.

Can anyone help me understand how to do this in Pardot tracking code? I would specific a custom URL name (ex. mywebsite.com/request-for-quote) that would distinguish the click as being unique from the parent pageview.

This is example tracking code for reference:

<script type="text/javascript">
piAId = '191792';
piCId = '20357';
piHostname = 'pi.pardot.com';

(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>


Any help would be greatly appreciated!