Adding the Google Analytics tracking code to Pardot assets

Enabling the Google Analytics connector for Pardot (as we covered in our first blog in this series), is the first step to integrating the two systems. In the following three blogs we will show you how to setup the connector to:

You can use custom redirects within Pardot to build UTM parameters into a trackable link.  However if you need to track user visits and conversions from Pardot forms and Pardot landing pages the Google Analytics tracking code and account number must be added to the Pardot layout templates. 

When adding the Google Analytics code to Pardot assets, you can use either the classic analytics or universal tracking code.  

Disclaimer: the following is a technical guide to adding a .JS code to your landing pages. You shouldn’t attempt to make any changes without first consulting with your technical team and Pardot administrator.

To add this to your Pardot layout templates go to Content > Layout Templates and click the Actions cog for the required layout template.

Add the Google Analytics tracking code within the head element of the landing page. If you are unsure of how to do this look out for the code and add the tracking code immediately above this. 

Add the Google Analytics script which will look similar to this:

Add the script to the layout template for every Pardot form and Pardot landing page you need to track in Google Analytics. 

This will work in conjunction with UTM parameters to enter values for Pardot prospects however at this point it will only view users interactions and will not track conversions in Google Analytics. 

To set up Google Analytics conversion tracking on Pardot forms and landing pages read the next blog in this series.

Recent Posts

Pardot Customers Need to Prepare for Changes to Pardot Only Logins

In June 2020 a message was sent to Pardot Users to that as of February 2021, the ability to use Pardot only logins to access Pardot will be retired.

Building a custom report for the Pardot Account Score in Salesforce

The final blog in this series covers building a custom report for your Pardot Account Score to understand your highest engaged accounts and their related contacts.

Making the Pardot Account Score fields visible in Salesforce

In our last blog, we’ve covered how to map your total and average Pardot Account Score to Salesforce. This blog explains how you can make the Scores visible to your Sales team.