Stellaxius Knowledge Center
  • Home
  • About Us
    • Our Team
    • Our Responsibility
      • Equality
    • Certifications
  • Services
    • Salesforce Consulting and Implementation
    • Salesforce Assessment
    • Software Development and Systems Integration
    • Process and Business Analysis
    • Program and Project Management
    • MuleSoft Integration
    • Data & Analytics
  • Success Stories
  • Careers
  • Blog
Contact us
Blog Home
Blog Categories:
  • Salesforce
    • CPQ
    • Net Zero Cloud
    • Release Notes
    • Sales Cloud
    • Salesforce Certifications
    • Service Cloud
  • Analytics &
    AI
    • Data Analysis
    • Einstein
  • Business Analysis &
    Implementation
  • Integration &
    Mulesoft
  • Marketing
    • Account Engagement
      (Pardot)
    • Marketing Automation
  • People &
    Culture
    • Human resources
    • Social Responsibility
  • Development
No Result
View All Result
Blog Home
Blog Categories:
  • Salesforce
    • CPQ
    • Net Zero Cloud
    • Release Notes
    • Sales Cloud
    • Salesforce Certifications
    • Service Cloud
  • Analytics &
    AI
    • Data Analysis
    • Einstein
  • Business Analysis &
    Implementation
  • Integration &
    Mulesoft
  • Marketing
    • Account Engagement
      (Pardot)
    • Marketing Automation
  • People &
    Culture
    • Human resources
    • Social Responsibility
  • Development
No Result
View All Result
Stellaxius Knowledge Center
Home Marketing Account Engagement (Pardot)

How to capture the conversion page URL with Pardot?

These days, collecting valuable data on your prospects is key to any business. In this short post, I'll tell you how to capture a precious, yet often forgotten information about your prospects' activity: the conversion page link! How? Just by using Pardot forms!

Flavio LopesbyFlavio Lopes
17th October 2019 - Updated on 13th March 2023
in Account Engagement (Pardot)
1
A A
8
How to capture the conversion page link in Pardot?
22
SHARES
2.2k
VIEWS
Share on LinkedInShare on XShare on FacebookShare on Whatsapp

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.

For that, just edit the hidden form field, go to the advanced tab and paste “get-url” in the CSS Class.


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:

<script>
document.querySelector(“.get-url input”).value = window.location.href;
</script>

Bonus Step (just for the winners)

If you followed all the above steps, you are now able to capture the Last Conversion Page URL in which the prospect converts. But what if you could differentiate and understand what was the First Conversion Page URL and the Last Conversion Page URL? That would be pretty useful, wouldn’t it?
If you would like to go down this route you should add another hidden field to your form. This way, you’ll be left with two fields: one to capture the first conversion URL and the other to capture the last one. Now, we already have the field to capture the last conversion URL. So, let’s create the other one!
Let’s put you to the test! Do you already know how to do create a hidden by yourself? If not, just practice a bit more the above three steps. Here, we have just one tiny detail we must pay attention to. So here it goes: on step 2, when you add the form field to your forms, check the option “Maintain the initial value upon subsequent form submissions” to ensure the field captures and remains with the value of the first conversion URL. Bear in mind, this will only work for new prospects and not for the ones that were already converted before you added this field.
I hope this short and rather hands-on-approach article has been useful for you! At Stellaxius we are always eager to help other Pardot users reaching their full potential! So, feel free to drop us a comment on your thoughts on this and other articles by our Knowledge Center. Subscribe for our Knowledge Center to keep receive directly in your email inbox more of our posts! 🙂

SUBSCRIBE KNOWLEDGE CENTER

Subscribe for free to our Knowledge Center to get the latest articles straight to your inbox!

Share2Tweet6Share9Send
Previous Post

Unleash the Power of Salesforce Mobile with React-Native

Next Post

Salesforce: A Force beyond Sales

Flavio Lopes

Flavio Lopes

Agile, Team player and Creative! As a Marketing Automation Specialist and Pardot Consultant, I will share with you some of my experience and knowledge, giving you insights about the tool. Do you Pardot?

Related Articles

Tailoring Campaigns for Success with Marketing Cloud Account Engagement (Pardot)
Account Engagement (Pardot)

Tailoring Campaigns for Success with Marketing Cloud Account Engagement (Pardot)

6th June 2024
49
Salesforce Marketing Cloud Account Engagement vs. HubSpot Marketing Hub
Account Engagement (Pardot)

Salesforce Marketing Cloud Account Engagement vs. HubSpot Marketing Hub (2024)

9th April 2024
127
Salesforce Certifications

How to Succeed in the Pardot Specialist Certification Exam

30th November 2022 - Updated on 19th February 2025
5.5k
Next Post
Salesforce

Salesforce: A Force beyond Sales

How to bulkify your code

Why and How to Bulkify your Code

Comments 8

  1. Avatar PeterNhan says:
    4 years ago

    Thank you so much, but when I use your Jave Script, The Pardot just result is link Tracker Domain,
    Could you fix it ?

    Reply
    • Alexandre Duarte Alexandre Duarte says:
      4 years ago

      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. 🙂

      Reply
  2. Avatar Katherine says:
    3 years ago

    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?

    Reply
    • Alexandre Duarte Alexandre Duarte says:
      3 years ago

      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.

      Reply
  3. Avatar Hayley says:
    3 years ago

    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….

    Reply
    • Alexandre Duarte Alexandre Duarte says:
      2 years ago

      Hi. See if this post can help you with this: https://stellaxius.com/knowledgecenter/pardot/pardot-iframe-script/

      Reply
  4. Avatar Charmy G says:
    1 year ago

    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.

    Reply
    • Alexandre Duarte Alexandre Duarte says:
      1 year ago

      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/

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stellaxius

At Stellaxius, we are focused on turning our customers into superheroes by offering you simple-to-use consulting services and implementing sustainable solutions that transform people through technology and knowledge. We believe success comes with strong human relations to help transform businesses, improve people’s lives and have an impact on our community.

Categories

  • Analytics & AI
  • Business Analysis & Implementation
  • Integration & MuleSoft
  • Marketing
  • People & Culture
  • Salesforce
  • Development

Subscribe to our Blog

  • Careers
  • Privacy Policy
  • Contact Us

© 2025 Stellaxius Knowledge Center. All rights reserved.

No Result
View All Result
  • Login
  • Sign Up
  • Salesforce
    • CPQ
    • Net Zero Cloud
    • Release Notes
    • Sales Cloud
    • Salesforce Certifications
    • Service Cloud
  • Analytics &
    AI
    • Data Analysis
    • Einstein
  • Business Analysis &
    Implementation
  • Integration &
    Mulesoft
  • Marketing
    • Account Engagement
      (Pardot)
    • Marketing Automation
  • People &
    Culture
    • Human resources
    • Social Responsibility
  • Development

© 2025 Stellaxius Knowledge Center. All rights reserved.

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

*By registering into our website, you agree to the Terms & Conditions and Privacy Policy.
All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Skip to content
Open toolbar Accessibility Tools

Accessibility Tools

  • Increase TextIncrease Text
  • Decrease TextDecrease Text
  • GrayscaleGrayscale
  • High ContrastHigh Contrast
  • Negative ContrastNegative Contrast
  • Light BackgroundLight Background
  • Links UnderlineLinks Underline
  • Readable FontReadable Font
  • Reset Reset
  • SitemapSitemap
  • FeedbackFeedback