Dynamic Product Ads: Category Page Implementation

 

Instructions

Place both the LiveConnect Tag and Category 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 Category page script) is an example.

The below category page script includes placeholders (denoted in green) that represent where your specific website dynamic values should be placed. Please use the below category 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: "viewCategory",
          email: "[USER_EMAIL]",
          currentPage: [PAGE_NUMBER],
          name: "[CATEGORY_NAME]",
          itemIds: [ 
             "[PRODUCT_IDS]",
             "[PRODUCT_IDS]" ] 
      });
</script>

Parameter: Value

Requested Value Output

Value Format

Status

Notes

event: "viewCategory"

"viewCategory"

"viewCategory"

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 category page viewed

Number

Optional

 

name: "[CATEGORY_NAME]"

The category name

String

Optional

 Typically used to pass product name. Needs to have a consistent case (upper or lower).  

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). 

Please Note: The following values are case sensitive: product id, name, event type

Example Output:

<script>
   window.liQ = window.liQ || [];
   window.liQ.push
      { event: "viewCategory",
          email: "captainamerica@liveintent.com",
          currentPage: 1,
          name: "Shields",
          itemIds: [
             "3983rjk2jr432r",
             "9384jhrnf3rf34",
             "3049309rifeif3" ]
      };
</script>

 

 

Have more questions? Submit a request