蜜豆视频

Profile and variable glossary

This page lists profiles, variables, and parameters that are useful in profile scripts.

Built-In Profiles section_2B694370003C4F8E8E29E0B2F6E52045

Profile
Notes
user.activeActivities
user.activeCampaigns
Return the campaign ID for all campaigns/activities that the user is in, even if he or she has not interacted with the campaign/activity in the current session.
user.pcId
user.sessionId
user.categoryAffinity
user.categoryAffinities
Return an array of the affinities that a visitor has populated
user.isFirstSession
user.isNewSession
user.daysSinceLastVisit
user.browser
The user agent
user.browserType
Returns the browser type, for example, safari, chrome, and so forth.
user.header
All user.header profiles are built-in from mbox request header data
耻蝉别谤.丑别补诲别谤(鈥榵-蹿辞谤飞补谤诲别诲-蹿辞谤鈥)
The public-facing IP address of the network connection that the visitor is on.
You can get this in several ways, for example . The IP address is not the NAT address (internal address), starting with 10., 192.168., or 172.
Note: user.header(鈥榵-cluster-client-ip鈥) has been deprecated.
耻蝉别谤.丑别补诲别谤(鈥榟辞蝉迟鈥)
Website hostname
耻蝉别谤.丑别补诲别谤(鈥榗辞辞办颈别鈥)
Visitor cookie data
耻蝉别谤.丑别补诲别谤(鈥榰蝉别谤-补驳别苍迟鈥)
Visitor browser user-agent
耻蝉别谤.丑别补诲别谤(鈥榓肠肠别辫迟-濒补苍驳耻补驳别鈥)
Visitor language
耻蝉别谤.丑别补诲别谤(鈥榓肠肠别辫迟-别苍肠辞诲颈苍驳鈥)
Visitor character encoding
耻蝉别谤.丑别补诲别谤(鈥榓肠肠别辫迟鈥)
Visitor language and character encoding
耻蝉别谤.丑别补诲别谤(鈥榗辞苍苍别肠迟颈辞苍鈥)
Server connection. For example: keep-live
耻蝉别谤.丑别补诲别谤(鈥榬别蹿别谤谤别谤鈥)
Website URL of visitor current page. Does not work for Internet Explorer.
耻蝉别谤.驳别迟尝辞肠补濒(鈥榩补谤补尘冲苍补尘别鈥);
Retrieve the value that you set using user.setLocal.
耻蝉别谤.蝉别迟尝辞肠补濒(鈥榩补谤补尘冲苍补尘别鈥,鈥榲补濒耻别鈥)
Create persisted profile values within a profile script. These values persist just like a profile script, but you only have access to it within the script it was set.
耻蝉别谤.驳别迟(鈥榩补谤补尘冲苍补尘别鈥)
user.parameter
Persistent profile attributes created from profile scripts. Also references 鈥渟ystem鈥 profiles like geolocation, visit count, etc.
辫谤辞蹿颈濒别.驳别迟(鈥榩补谤补尘冲苍补尘别鈥)
The correct way to obtain a profile parameter to use in a profile script is the 辫谤辞蹿颈濒别.驳别迟(鈥榩补谤补尘冲苍补尘别鈥) method.
辫谤辞蹿颈濒别.辫补谤补尘(鈥榩补谤补尘冲苍补尘别鈥);
辫谤辞蹿颈濒别.辫补谤补尘别迟别谤(鈥榩补谤补尘别迟别谤冲苍补尘别鈥);
Mbox parameters that are made persistent due to their profile. prefix.
profile.browserTime
The visitor鈥檚 local browser time. For system time, create a new date object in the profile script
profile.averageDaysBetweenVisits
profile.sessionCount
profile.mobile.isTablet

Visitor device is a tablet.

NOTE: This profile replaces the deprecated legacy Browser is iPad audience category. See Browser for more information.

profile.mobile.isMobilePhone

Visitor device is a mobile phone.

NOTE: This profile replaces the deprecated legacy Browser is iPhone audience category. See Browser for more information.

parameter=
Generic term for additional values passed with an mbox, usually as name/value pairs. Not persistent unless made so with profile.parameter or user.parameter.

URL Variables section_8F25958273164EBAA6DC659302993FD3

landing
referrer
page
landing.url
referrer.url
page.url
landing.domain
referrer.domain
page.domain
landing.protocol
referrer.protocol
page.protocol
landing.param
referrer.param
page.param
landing.query
referrer.query
page.query

Geo and Mobile Carrier Profiles section_08441DA42E7346918FBB345818854997

  • profile.geolocation.country
  • profile.geolocation.state
  • profile.geolocation.city
  • profile.geolocation.zip
  • profile.geolocation.dma
  • profile.geolocation.domainName
  • profile.geolocation.ispName
  • profile.geolocation.connectionSpeed
  • profile.geolocation.mobileCarrier
  • profile.geolocation.latitude
  • profile.geolocation.longitude

Mbox Variables section_C42F0D33BD8044BE812FA0B7905CC0ED

Variable
Notes
mbox.name
尘产辞虫.辫补谤补尘(鈥榩补谤补尘冲苍补尘别鈥)

Parameters automatically passed with every request:

  • 尘产辞虫.辫补谤补尘(鈥榖谤辞飞蝉别谤贬别颈驳丑迟鈥)
  • 尘产辞虫.辫补谤补尘(鈥榖谤辞飞蝉别谤罢颈尘别翱蹿蹿蝉别迟鈥)
  • 尘产辞虫.辫补谤补尘(鈥榖谤辞飞蝉别谤奥颈诲迟丑鈥)
  • 尘产辞虫.辫补谤补尘(鈥榗辞濒辞谤顿别辫迟丑鈥)
  • 尘产辞虫.辫补谤补尘(鈥榤产辞虫齿顿辞尘补颈苍鈥)
  • 尘产辞虫.辫补谤补尘(鈥榤产辞虫罢颈尘别鈥)
  • 尘产辞虫.辫补谤补尘(鈥荣肠谤别别苍贬别颈驳丑迟鈥)
  • 尘产辞虫.辫补谤补尘(鈥荣肠谤别别苍奥颈诲迟丑鈥)

Parameters passed with order mboxes:

  • 尘产辞虫.辫补谤补尘(鈥榦谤诲别谤滨诲鈥)
  • 尘产辞虫.辫补谤补尘(鈥榦谤诲别谤罢辞迟补濒鈥)
  • 尘产辞虫.辫补谤补尘(鈥榩谤辞诲耻肠迟笔耻谤肠丑补蝉别诲滨诲鈥)
mbox3rdPartyId
An mbox parameter to sync a customer ID to Target鈥檚 mboxPCID. A customer ID is an ID your company uses to track visitors, such as a CRM ID, membership ID, or something similar. This ID can then be used to add information via the Profile APIs and Customer Attributes.
mboxPageValue
In each mbox call the page is assigned a value.
mboxDebug
Only used for debug info. Added to the page url where the at.js looks for it.
mboxOverride.browserIp
Sets a different geo than the actual location so you can test how something would look in another location.
Note: Using mboxOverride parameters should be used only while testing the activity and not in production. The use of any mboxOverride parameters can cause reporting discrepancies when using Analytics for Target (A4T). You should use Activity QA mode while testing to ensure that your activity works as expected before pushing the activity into your live environment.

Customer Attributes section_62B4821EB6564FF4A14159A837AD4EDB

Customer attributes can be referenced in profile scripts, formatted as crs.get('<Datasource Name>.<Attribute name>').

These attributes are also available as tokens in profile scripts and directly in offers without first requiring a profile script. The token should be in the form: ${crs.datasourceName.attributeName}. Note that spaces in the datasourceName should be stripped from any API call.

recommendation-more-help
3d9ad939-5908-4b30-aac1-a4ad253cd654