Concept

Pardot can crawl your site map, serve up relevant search results for your visitors, and provide reporting on their queries. Nothing shows a prospect’s intent like his searches on your website. If someone clicks around and finds their way to your pricing information, that is valuable to know, but if the prospect types in “pricing” as his exact search term, that is a much better buying signal. You can create a site search hosted by Pardot, or choose to integrate a third-party search.

Creating a Pardot Site Search

To create a Pardot Site Search, follow the steps listed below:

  1. Navigate to Marketing > Site Search.
  2. Press + Add Site Search to launch the wizard.
  3. Select Pardot Site Search from the Site Search Type dropdown menu.

Name

  1. Create a name for your site search that will be used internally (e.g., “Knowledge Base Site Search” or “Main Website Site Search”).
  2. Press Next.

Sitemap

  1. Enter the Sitemap URL for your Google XML or HTML site map. Pardot will crawl all pages listed on your sitemap. If there are pages that you would not like to index, you should remove them from the sitemap. PDFs will not be indexed.
  2. Select a Max Index Size for the site search. Professional Edition and Enterprise Edition have a different limit for the amount of indexable pages across all site searches. As of February 1, 2014 all Standard, Pro, and Ultimate Edition accounts have an unlimited number of indexable pages. If you only plan to have one site search set up, you can select your account’s maximum.
  3. Select the Index Interval that best meets your business needs.
  4. Press Next.

Layout

  1. Designate an optional Title for your search results page that Pardot will host for you.
  2. Select the Layout Template that will control the styling for your hosted site search results page.
  3. Using the “Remove Title Content” field, optionally remove any words or phrases that you do not want to appear in the search results. For example, many organizations have their company names in the title of every page of their site (e.g.., “Pardot — Contact Us”). You may not want your company name showing up in each search result.
  4. Add any styling or HTML that you will display if there are No Results Found.
  5. Press Next.

Confirmation

  1. Review your selections on the confirmation page.
  2. Press Next.
  3. Note: Your changes are not saved yet! Please Confirm & Save your Site Search in the HTML Code step of the Wizard.

HTML Code

Use the HTML code generated by Pardot to integrate the Site Search on your web page’s search setup. You can view the Form Code or the HTML/IFrame Code. If you do not currently have a search box on your site, you will want to place the Form Code on your site where you would like the search box to appear.

  1. Use only the Form Code if you would like the search results to be hosted on a Pardot landing page that uses your vanity CName in the URL.
  2. If you would like the search results to reside in an iframe on a page on your website, you can add the Form Code to your site, changing the action URL (action=””) to the URL for the page on your site where you’d like the results to display. Then add the HTML Code iframe to the page where you’d like the results to display.
  3. Press Confirm & Save.

Creating an Integrated Third-Party Site Search

To create a Third-party Site Search, follow the steps listed below:

  1. Navigate to Marketing > Site Search.
  2. Press + Add Site Search to launch the wizard.

Name

  1. Select Third-party Site Search from the Site Search Type dropdown menu.
  2. Create a name for your site search that will be used internally (e.g., “Knowledge Base Site Search” or “Main Website Site Search”).
  3. Press Next.

Redirect URL: for URLs in the format http://www.site.com?q=search_term

  1. Enter the Redirect URL for your third-party search application. You can find this URL by searching for the ‘form action=’ in the page source.
  2. Select a Submit Method, either POST or GET, depending on your application. This will generally match the ‘method=’ in the page source.
  3. From the company’s website, complete a search for any word in their search bar.
  4. Insert the Search Query Variable. This is the query parameter from your third-party application, found in the browser URL address bar. It will be between the ‘?’ and the first ‘=’ in the URL.
  5. Press Next.

Redirect URL: for URLs in the format http://www.site.com/example/example/search_term/word/%3834&$/word

  1. Enter the Redirect URL for your third-party search application. You can find this URL by searching for the ‘form action=’ in the page source.
  2. Select a Submit Method, either POST or GET, depending on your application. This will generally match the ‘method=’ in the page source.
  3. Insert the Search Query Variable. This is the query parameter from your third-party application. It can be found in your Form as the value for the Name attribute.
  4. Press Next.

Redirect URL: for URLs in the format http://www.site.com/example/words/search_term

  1. Enter the Redirect URL for your third-party search application. You can find this URL by searching for the ‘form action=’ in the page source. You will need to append {query} to the end of this URL like this: http://www.site.com/example/words/{query}
  2. Select a Submit Method, either POST or GET, depending on your application. This will generally match the ‘method=’ in the page source.
  3. Insert the Search Query Variable. This is the query parameter from your third-party application. It can be found in your Form as the value for the Name attribute.
  4. Press Next.

Note: Site search content from the page source may vary; these are general guidelines.

Confirmation

  1. Review your selections on the confirmation page.
  2. Press Next.

HTML Code

  1. Edit your company web page’s HTML so the site search form’s action URL (action=”URL”) is now the Pardot Post URL. When a user clicks the submit button, the search query is first passed to Pardot, where we record the search term, and then the request is forwarded back to the redirect URL specified in the wizard so that the user sees the search results page.
  2. Press Confirm & Save in the Pardot Site Search Wizard
  3. To test, after you have updated the form’s action URL (action=”URL”) to be the Pardot Post URL, submit a search request on your website. Then refresh the Pardot site search page and you can see the search term generated in the right column.

Advanced Topic — Posting data to hidden iframes

If updating your site search form’s action URL (action=”URL”) is not possible or the preferred method, an alternative advanced option is posting the search term data to a hidden iframe on the results page. For more details on posting data to hidden iframes click here.

Google Site Search Integration

To integrate with a Google Site Search you will want to follow the step-by-step instructions outlined above under “Creating an Integrated Third-Party Site Search“, but use the following details on “Step 1a. Redirect Url”:

Notes

  • When editing an existing site search, use the upper navigation to skip to the step you want to edit and click finish at any time to save changes. It is not necessary to scroll through all steps to edit existing site search.
  • When using a Pardot Site Search, we index your site map nightly. After you create your Pardot Site Search, wait one day and return to the site search section the next day to see the index.
  • For Pardot Site Searches, there are several metrics that have weighted values and guide the prioritizing of the search results. These metrics include title, description, summary, meta keyword, and body content of the page. Of all of these, title and meta are the most important and heavily weighted.