Salesforce and Pardot Tracking Code tag

Each Salesforce and Pardot campaign has a unique tracking code that can tracks visitor’s activity when you add the code to your website. In Tag Manager, you can set this up in a hassle-free way.

Before you set up the tag, you need to find two IDs. To find them, follow these steps:

  1. Go to Salesforce and Pardot > Marketing.
  2. Navigate to Campaigns.
  3. Select Website tracking campaign.
  4. Click View tracking code.
  5. Copy the piAid and piCid.

To set up a Salesforce and Pardot Tracking Code tag, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Tags.
  3. Click + Create new tag.
  4. Name the tag and select the Salesforce and Pardot Tracking Code tag.
  5. Paste the IDs.
  6. Paste Salesforce and Pardot IDs in tag setup.
  7. In Advanced tag settings, set the tag type. By default, it’s set to be displayed to visitors who consent to Marketing Automation, but you can change it to a different type.
  8. By default, the Respect visitor privacy is turned on. Leave it as is, if you want to respect visitors who set a do-not-track option in their browser.
  9. In Flight dates, set time during which you want to run the tag.
  10. In Tag triggers, click + New trigger or + Existing trigger to set up a trigger for your tag.
  11. Adjust trigger conditions.
  12. When you’re done, click Save for the trigger and click Save for the tag.
  13. Test your tag in debug mode.
  14. When you’re happy how the tag works, click Publish.
Was this article helpful?

Technical Support

If you have any questions, drop us a line at

We’re happy to help!