How to Track Conversion on Pardot Forms

If you're using Pardot Forms and embed them directly on your site, you will need to use the method described here in order to track named conversions with Oktopost.

First, you will need to set up the Thank You Content, without this you will not be able to embed the Oktopost Tracking Code. Once the Thank You Content is ready, copy the tracking code from your account and paste it into the text box.

Next, add the following code snippet right after the _oktrk('create') function call.

_oktrk('send', {
	tag: 'TAG_NAME',
	email: '%%email{js}%%',
	firstName: '%%first_name{js}%%',
	lastName: '%%last_name{js}%%'

This will send the named conversion data to Oktopost. Make sure to replace the TAG_NAME with the desired conversion type.

The final code snippet should look something like this:

(function(a, b, c, d, e, m) {
	a['OktopostTrackerObject'] = d;
	a[d] = a[d] || function() {
		(a[d].q = a[d].q || []).push(arguments);
	e = b.createElement('script');
	m = b.getElementsByTagName('script')[0];
	e.async = 1;
	e.src = ('https:' === document.location.protocol ? 'https://' : 'http://') + c;
	m.parentNode.insertBefore(e, m);
})(window, document, '', '_oktrk');

_oktrk('create', 'OKTOPOST_ACCOUNT_ID');
_oktrk('send', {
	tag: 'TAG_NAME',
	email: '%%email{js}%%',
	firstName: '%%first_name{js}%%',
	lastName: '%%last_name{js}%%'


  1. How to Set Up The Marketo Integration
  2. How to Set up Social Insights for Salesforce
  3. Salesforce Insights Data and Reports
  4. How to Set up Data Sync for Salesforce
  5. How to Set Up The Social Advocacy Package For Salesforce
  6. How to Set Up The Eloqua Integration
  7. How to Set Up the HubSpot Integration
  8. How to Set Up The Salesforce Integration
  9. How to Find the Security Token in Salesforce
  10. How to Set Up the Bitly Integration
  11. How to Set Up the Feedly Integration
  12. How to Set Up the Act-On Integration
  13. Feedly Custom Sharing with Oktopost
  14. Act-On Integration: Segmenting Lists Using Social Data
  15. Act-On Integration: Social Lead Scoring
  16. Marketo Integration: Social Lead Scoring
  17. Conversion Tracking With Marketo Forms 2.0
  18. Marketo Integration: Lead Segmentation
  19. Marketo Integration: Interesting Social Moments
  20. How to Set Up the Salesfusion Integration
  21. How to Set Up the Pardot Integration
  22. Setting up the Google Analytics integration
  23. How to Set Up the Facebook Retargeting Integration
  24. How to Create a Facebook Audience Based on Social Behavior
  25. Attributing Social to Leads in Marketo
  26. How to Set up the AdRoll Integration
  27. Webhooks
  28. How to Connect Oktopost to Zapier
  29. Oktopost Tracking with Google Tag Manager
  30. How to Create Salesforce Cases From Assignments
  31. Setting up Integration Assets
  32. Social Click URLs
  33. Salesforce Campaign Naming Parameters Guide
  34. How to Track Conversion on HubSpot Embedded Forms
  35. How to Track Conversion on Pardot Forms
  36. How to Track Conversions on Act-On Labs Forms
  37. How to Set Up Single Sign-on With AD FS
  38. How to Set Up Single Sign-on With Okta
  39. How to Set Up Single Sign-on With OneLogin
  40. How to Set Up The Facebook Lead Ads Integration

Feedback and Knowledge Base