MarketingContext

Describing the marketing channel & campaign from where the user came.

graph LR AbstractContext["AbstractContext<br /><span class='properties'>id: string<br />_type: string</span>"] --> AbstractGlobalContext; AbstractGlobalContext --> MarketingContext["MarketingContext<br /> <span class='properties'> source: string<br /> medium: string<br /> campaign: string<br /> term?: string<br /> content?: string<br /> source_platform?: string<br /> creative_format?: string<br /> marketing_tactic?: string </span>"]; class MarketingContext diagramActive; click AbstractGlobalContext "/docs/taxonomy/global-contexts" "See details" _self

Diagram: MarketingContext inheritance

Properties

typedescription
idstringUnique string to be combined with the Context Type (_type) for Context instance uniqueness.
_typestringString literal used during serialization. Should always match the Context interface name.
sourcestringThe advertiser, site, publication, etc.
mediumstringAdvertising or marketing medium: cpc, banner, email newsletter, etc.
campaignstringCampaign name, slogan, promo code, etc.
termstring[optional] Search keywords.
contentstring[optional] To differentiate similar content, or links within the same ad.
source_platformstring[optional] Identifies the platform where the marketing activity was undertaken.
creative_formatstring[optional] Identifies the creative used (e.g., skyscraper, banner, etc).
marketing_tacticstring[optional] Identifies the marketing tactic used (e.g., onboarding, retention, acquisition etc).
setting of the properties

The backend will automatically set all the properties based on the UTM parameters in the PathContext.