In-page profile attributes
In-page profile attributes in 51黑料不打烊 Target (also called 鈥渋n-mbox profile attributes鈥) are name/value pairs passed directly through page code that are stored in the visitor鈥檚 profile for future use.
In-page profile attributes allow user-specific data to be stored in Target鈥檚 profile for later targeting and segmentation.
Format
In-page profile attributes are passed into Target via a server call as a string name/value pair with the prefix 鈥減rofile.鈥 before the Attribute name.
Attribute names and values are customizable (although there are some 鈥渞eserved names鈥 for specific uses).
Here are some exampes on in-page profile attributes:
profile.membershipLevel=silver
profile.visitCount=3
Example use cases
- Login information: Share non-PII (Personally Identifiable Information) data to Target based on the user鈥檚 login. This data could be membership status, order history, or more.
- Store info: Track which store is this user鈥檚 preferred location.
- Previous interactions: Track what the user has done on the site previously to inform future personalization.
Benefits of method
Data gets sent to Target in real time, and can be used on the same server call on which the data comes in.
Caveats
Requires page code updates (directly or via a tag management system).
Attributes and values are visible in server calls, so a visitor can see the values. If sharing information such as credit ranges or other potentially private information, this method might not be the best approach.
Code examples
targetPageParamsAll (appends the attributes to all mbox calls on the page):
function聽targetPageParamsAll()聽{ return聽"profile.param1=value1&profile.param2=value2&profile.p3=hello%20world"; }
targetPageParams (appends the attributes to the global mbox on the page):
function聽targetPageParams()聽{ return聽profile.param1=value1&profile.param2=value2&profile.p3=hello%20world"; }
Attributes in mboxCreate code:
<div聽class="mboxDefault"> default聽content聽to聽replace聽by聽offer </div> <script> mboxCreate('mboxName','profile.param1=value1','profile.param2=value2'); </script>