Dynamic Product Ads: Content View Implementation

Dynamic Product Ads: Content View Implementation

Instructions

Place both the LiveConnect Tag and the Content View 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. The LiveConnect Tag below is an example (e.g. a-0045). The LiveConnect Tag below (above the Content View page script) is an example.

The below Content View page script includes placeholders (denoted in green) that represent where your specific website dynamic values should be placed. Please use the below Content View page script for implementation. Please note: All fields are case sensitive. 

<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: “viewContent”,
          email: “[USER_EMAIL]”,
          contentType: “[CONTENT_TYPE]”,
          name: “[CONTENT_NAME]”,
          contentId: “[CONTENT_ID]”
       });
</script>

 

Parameter: Value

Requested Value Output

Value Format

Status

Notes

event: “viewContent”

viewContent

“viewContent

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: [email protected]

MD5: f5d74b7a968427433fc5957bf3d06486

contentType: “[CONTENT_TYPE]

Page content type

String, Valid Values: “Product”, “LandingPage”, “Article”, “Hotel”, “Flight”, “Destination”

Highly Recommended

 

name: “[CONTENT_NAME]

Content name

String

Optional

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

contentId: “[CONTENT_ID]

Product ID

String

Required

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


Example Output:

<script>
   window.liQ = window.liQ || [];
   window.liQ.push
      { event: “viewContent”,
          email: “[email protected]”,
          contentType: “Product”,
          name: “ArcReactors”,
          contentId: “34878dfdfd”
      };
</script>

 

 

Back to top