A Collection of Incredibly Useful Pardot Snippets

In:

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.

Content

Place this snippet where you would like the form, site search results, or landing page general content to appear within your design.

Content Regions

A Link

Use this snippet to make a link in your landing page template editable.

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.

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

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.

Emails

View in Browser

To add a view in browser link to your email add the following snippet.

Unsubscribe

To add a unsubscribe link to your email add the following snippet.

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.

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.

Related Posts

  • 11/06/2019
    How to Turn Any Email Template into a Pardot Email Template

    Do you know you can turn any email template into a Pardot email template? With a couple of modifications to the HTML, you can have a fully functional Pardot email template which allows you to remove, edit and duplicate sections. In this tutorial, I will show you how to take any free, responsive email template and turn it into a Pardot email template.

  • 28/02/2019
    Creative Ways to Spice Up Your Pardot Forms: Part 1

    Looking for some creative ways to spice up your Pardot forms? In this post, I will show you how to implement the popular floating label technique in three easy steps. I will also show you how to turn your long drop down menus into user-friendly, searchable dropdowns.

  • 06/12/2018
    Creating Pardot Email Templates: Common Questions & Answers

    Can my Pardot email be responsive? Why doesn’t my background image appear in Outlook? Can Pardot emails be drag & drop? I get asked these questions a lot from Pardot users and see them posted frequently in the Trailblazer Community. Let’s dive into these questions as well as other common Pardot email template questions.

12 comment(s)
  • Al

    13/03/2018 at 8:24 am
    Reply

    Does Pardot allow repeatable regions in Layout Templates?

    • Jenna Molby
      to Al

      13/03/2018 at 9:21 am
      Reply

      No, they are only available for email templates.

  • Anne

    15/02/2018 at 12:39 pm
    Reply

    Hi Jenna, I have a background image in a that has text overlaying on top. I want to be able to make the image link replaceable without the user having to go into the HTML. Is there a way I can do this? For example, in Marketo I am able to change the image URL to a variable string: and then this can be changed per email in the editor. Can something like this be done in Pardot? is there a way I can use a tag of some sort to change out the image easily without making the template user go into the code?

    • Phil
      to Anne

      08/01/2019 at 5:00 pm
      Reply

      Yep, the lack of Marketo-style token values is something really missing from Pardot; it really hinders easy personalisation for things like autoresponder emails.

    • Deffrin
      to Anne

      14/01/2019 at 6:30 am
      Reply

      Place a tag with display none property(for hiding the image) somewhere near to the element containing the background image. The image tag must need pradot-region and pardot-region-type attributes. Copy the Image element's src attribute to the background-image property of the element for which we need to change background image using Javascript(i used jquery). A placeholder like image link must be present for the image element by default.

  • Nikunj Butani

    13/09/2017 at 11:55 pm
    Reply

    Hi Valon, If you are checking in the preview of the template then it'll work sure. %%view_online%% tag is only Use for that place. If you need any more help for pardot emails i'll sure help you.

  • Valon Badivuku

    03/08/2017 at 4:36 pm
    Reply

    Hey Jenna, Im trying to make an email part where it says "To view this email as a web page, please click here" and im using %%view_online%% For some reason that link that is being created is this one: http://www.pardot.com/faqs/emails/testing-view-online-tag Do you have any advice what should i do instead of %%view_online%% Thank you,

    • Jenna Molby
      to Valon Badivuku

      04/08/2017 at 10:39 am
      Reply

      Hi Valon, %%view_online%% is the tag you're supposed to use. Are you clicking on the link from a test email? If so, try sending yourself a REAL send and it should work. The view online will not work in a test send. Good luck!

  • Michael

    10/11/2016 at 6:04 am
    Reply

    Excellent

Leave A Comment

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

About Me

Welcome to my blog, where I share, tips, tricks, thoughts and solutions that I learn in my daily life as a sales and marketing professional.

LEARN MORE

Categories
Most Commented
Popular Posts