-
Couldn't load subscription status.
- Fork 229
Closed
Labels
category:contextA new context entity, or changing an existing one, is required.A new context entity, or changing an existing one, is required.
Milestone
Description
Custom unstructured context is related to custom unstructured events.
Any existing event including unstructured events can have custom contexts attached to it by way of an additional argument to the function. The additional argument is a JSON of the form:
{
"context1": { },
"context2": { },
"context3": { },
...
}You can add as many custom contexts as you want. Each must have a unique name.
Essentially custom unstructured contexts allow you to extend an existing event type with custom properties, without having to create a new custom unstructured event type.
Example:
_snaq.push(['trackPageView', 'Product: The Last of Us', {
product_page: {
type: 'game',
platform: 'ps3',
sku: 'ps3-2312-13x'
},
common: { session_id: '123' },
user: { salesforce_source_id: '456' }
}
]);Metadata
Metadata
Assignees
Labels
category:contextA new context entity, or changing an existing one, is required.A new context entity, or changing an existing one, is required.