Dynamic Product Ads: Search Result Page Implementation

Time for Completion: 10 minutes

 _____________________________________________________________________________

Instructions

Place both the LiveConnect Tag and the Search Resul 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, no change needed

email: "[USER_EMAIL]

Email address of logged in or known site visitor

String

Highly Recommended

Can be passed as a MD5 hash instead (emailHash: "[Email_Hash]")

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

 

Example Output:

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

 

 

Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk