Dynamic Product Ads: Search Result Page Implementation

 

Instructions

Place both the LiveConnect Tag and the Search Result page script in the header section of your webpage for the specific section.

Use the LiveConnect Tag provided by your account team, as it will contain a unique App_ID variable (e.g. a-0045). The LiveConnect Tag below (above the Search Result page script) is an example.

The below Search Result page script includes placeholders (denoted in green) that represent where your specific website dynamic values should be placed. Please use the below Search Result page script for implementation.

<script type="text/javascript" src="//b-code.liadm.com/a-xxxx.min.js" async="true"></script>

<script>
   window.liQ = window.liQ || [];
   window.liQ.push
     { event: "viewSearchResult",
          email: "[USER_EMAIL]",
          currentPage: [PAGE_NUMBER],
          searchTerm: "[SEARCH_TERM]",
          itemIds: [
             "[PRODUCT_IDS]",
              "[PRODUCT_IDS]"
                       ]
      };
</script>

 

Parameter: Value

Requested Value Output

Value Format

Status

Notes

event: "viewSearchResult"

"viewSearchResult"

"viewSearchResult"

Required

Pre-hardcoded, please implement exactly as shown. 

email: "[USER_EMAIL]

Email address of logged in or known site visitor

String

Required (if not passing MD5 Hash)

 

emailHash: "[USER_MD5HASH]"

MD5 Hash

 String

 Required (if not passing email)

 Hashing Protocol: lower case email address

Example

email: nickfury@theavengers.com

MD5: f5d74b7a968427433fc5957bf3d06486

currentPage: [PAGE_NUMBER]

The page number of the search result

Number

Optional

 

searchTerm: "[SEARCH_TERM]"

The search term

String

Optional

 

itemIds: "[PRODUCT_IDS]"

Product IDs that are shown on the page

Array of Strings

Optional

 

Needs to have a consistent case (upper or lower case). 

Example Output:

<script>
   window.liQ = window.liQ || [];
   window.liQ.push
      { event: "viewSearchResult",
          email: "thor@liveintent.com",
          currentPage: 2,
          searchTerm: "Hammers",
          itemIds: [
             "9384jhrnf3rf34",
             "3049309rifeif3"
                       ]
      };
</script>

 

 

Have more questions? Submit a request