Dynamic Product Ads: Category Page Implementation

Time for Completion: 10 minutes

 _____________________________________________________________________________

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

Number

Optional

 

name: "[CATEGORY_NAME]"

The category name

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: "viewCategory",
          email: "captainamerica@liveintent.com",
          currentPage: 1,
          name: "Shields",
          itemIds: [
             "3983rjk2jr432r",
             "9384jhrnf3rf34",
             "3049309rifeif3" ]
      };
</script>

 

 

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