Make your life easier by using these Pardot code snippets to kickstart your next Pardot landing page, email template or form project.
Catalogue
Landing Pages & Landing Page Templates
Landing Page Variable Tags
Title
Use this snippet to populate the name of the Pardot landing page.
%%title%%
Content
Place this snippet where you would like the form, site search results, or landing page general content to appear within your design.
%%content%%
Content Regions
A Link
Use this snippet to make a link in your landing page template editable.
My Link
An Image
Use this snippet to make an image in your landing page template editable.
HTML
Use this snippet to display HTML code on you landing page.
< your code here>
Simple
Use this snippet to make HTML elements editable. You can use it on the following tags: address, b, big, blockquote, caption, cite, del, dfn, em, h1, h2, h3, h4, h5, h6, i, ins, kbd, p q, s, samp, span, small, strike, strong, sub, sup, u var
Your text here
WYSIWYG Editor
Use this snippet to make HTML elements editable. You can use it on the following tags: article, aside, div, dt, dd, figure, figcaption, li, footer, header, main, section, td.
My Header
Emails
View in Browser
To add a view in browser link to your email add the following snippet.
%%view_online%%
Unsubscribe
To add a unsubscribe link to your email add the following snippet.
%%unsubscribe%%
Email Templates
Email Content Regions
Pardot will automatically make every table cell or paragraph editable, however, if you want to “lock down” your template so only some areas are editable, you can use these snippets.
Editable Content
Add this snippet to a table cell to make it editable.
Repeatable Content
Pardot allows you to specify repeatable content blocks within an email template. This is great for scenarios where you need 3 content sections for 1 email but only 2 for another email.
Title
A paragraph of text
Read More
Forms
Change a form submit button to an image
Place this snippet in the Look and Feel step in the form wizard to change it to a image. Remember to remove all the text in the Submit Button field.
Trigger a download after successful form submission
Use this snippet to automatically start an asset (like a whitepaper) to download upon successful form submission. Place this code under the Thank You Code tab in the form wizard.
What are your favourite Pardot snippets?
Email me, send me a tweet @jennamolby, or leave a comment so I can add them to the list.
17 Comments
Hi Jenna.
I came across an error message when trying to save a layout: “Regions cannot contain other regions. ‘text2’ contains another region!”.
Here is my code:
ADDITTIONAL TEXT HERE
VIEW WEB VERSION
Anything out of order that I am missing?
Many thanks for all you do for us.
Happy Easter!
G
You are doing great work here, this is so much better than the official Pardot documentation!