WebBasedContext
- campaignType: object · Campaign
The campaign that resulted in the interaction. Campaign dictionary contains standard UTM parameters:
name,source,medium,term,content. We use campaign information to infer users' interests and fine-tune the personalization and search results based on the current user's campaign information.- contentType: string · Content
Content of the campaign that identifies what specifically was clicked to bring the user to the site, such as a banner ad or a text link. It is often used for A/B testing and content-targeted ads. Identifies search terms. (see UTM parameters)
- mediumType: string · Medium
Medium of the campaign that identifies what type of link was used, such as cost per click or email. (see UTM parameters)
- nameType: string · Name
Name of the campaign. Identifies a specific product promotion or strategic campaign. (see UTM parameters)
- sourceType: string · Source
Source of the campaign. Identifies which site sent the traffic. (see UTM parameters)
- termType: string · Term
Term of the campaign that identifies search terms. (see UTM parameters)
- customType: object · Custom Context
_context Dictionary of custom context variables for the current browsing session. You can specify context variables specific to your websites or apps in a
{"KEY":VALUE}format, whereKEYmust be a string, andVALUEcan be:- a
bool - a
stringor anarray of string - a
numberor anarray of numbers - an
array of objects null
Miso will take these variables into account when generating recommendations.
- property
Name - Type: boolean
- a
- localeType: string · Locale
Locale string of the current session, for example en-US.
- pageType: object · Page
The current page in the browser. Page dictionary containing referrer, title and url. we will use page view as a pseudo interaction to infer users' interest.
- urlType: string · Urlrequired
Url of the page
- referrerType: string · Referrer
Url of the referrer page
- titleType: string · Title
Title of the page
- regionType: string · Region
The region/location of the site the user is visiting. This is for sites that serve different regions or markets. You can define your own region keywords, for example,
US East,Europe,LATM, etc. - truncatedType: string · Truncated IpFormat: ipv4
_ip User's truncated IP address. We use IP address to determine the country of the users.
- userType: string · User Agent
_agent User agent of the device making the request. We use this to determine if a user is browsing the site on mobile or desktop, and tailor the recommendations and search results accordingly.
Example:
{"user_agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0"}
