Enhancing your marketing efforts to ensure success and bigger ROI is only possible if you have data about the prospect. In fact, the more you know about your prospects the better you can target, engage, and close more deals.
As marketers, it is part of our job to be creative and find new ways to capture more information about our prospects. As such, in this short article, I will tell you how you can capture the conversion page link using Pardot (the B2B marketing automation tool by Salesforce) forms. Let’s do it step by step, shall we?
Step 1 – Create a hidden field
Let’s start by creating a hidden field. This field will be used to capture the conversion page link URL. And fortunately, you can create it in both Pardot Classic and Pardot Lightning.
In Pardot Classic, just navigate to: Admin -> Configure Fields -> Prospect Fields -> Add Custom Field.
In Pardot Lightning, go to Pardot Settings -> Object Field and Configuration -> Prospect Fields -> Add Custom Field.
Now, pay attention to the following. You need to create this field as a Hidden field so that you can add it to your forms without allowing your prospects to see or edit it. When it comes to sync behavior, you can choose whatever option fits better. I usually recommend the behavior to “Use the most recently updated record”, but it depends on the objectives and sync options you have setup with Salesforce. Alternatively, you can also check the option for the field to save multiple values instead of replacing the existing value with the most recent one. Again, it depends on your strategy and objectives.
2. Add the hidden field to your forms
The second step of this process is for you to add the hidden field to all the forms in which you would like to capture the URL of the page where the conversion occurred. You should start by “informing” the field that it is meant to capture a URL as input.
3. Add the javascript code to your form
We’re almost done! The final step, here we go! In Look and Feel, navigate to Below form, click on Source button and paste the following code:
Bonus Step (just for the winners)
SUBSCRIBE KNOWLEDGE CENTER
Subscribe for free to Knowledge Center's monthly digest to receive the hottest news and newest posts directly on your Inbox.
Thank you so much, but when I use your Jave Script, The Pardot just result is link Tracker Domain,
Could you fix it ?
Hey Peter. You can change the script to capture the part that needs the URL. In the Script of this tutorial the capture is total, to capture parts of the link you can use: “window.location.hostname” returns the domain name of the web host, “window.location.pathname” returns the path and filename of the current page, “window.location.protocol” returns the web protocol used (http: or https:) and “window.location.assign()” loads a new document.
Hope this helps. 🙂
Hi, I tried implementing this fix on a form that lives in the footer instead of the main page and it doesn’t seem to work. Any solution ideas that might?
Hello Katherine.Try adding the URL capture script mentioned in the post in the form template (Layout tab), in the footer of the HTML, before closing the tag.
Hi, is there a way to dynamically capture a specific value from a URL slug? We want to use one iframe across multiple product pages to dynamically pull the product number from the URL into the hidden pardot field (on the enquiry form). Would love to know how….
Hi. See if this post can help you with this: https://stellaxius.com/knowledgecenter/pardot/pardot-iframe-script/
The script suggested is not working, when I test the form. Am I doing anything wrong?
My goal to Capture the Form URL, into one field, so that I can use that field and add in my Custom Form Report that gives me the list of Forms.
Hi Charmy G. Try using the script suggested in this other post we made, which rebuilds Pardot’s default iFrame and teaches you how to capture some data from the page where it is inserted.
https://stellaxius.com/knowledgecenter/marketing/account-engagement-pardot/pardot-iframe-script/