Campaign detected

Learn how to track when a campaign is detected.

This event tracks the digital marketing campaign that drove the user to the website based on UTM parameters, widely used in digital marketing for tracking and analytics purposes.

Croct's mascot amazed
Automatically tracked

The SDK automatically tracks this event when a user enters the website through a campaign.

Input properties

This event has no input properties.

Processed properties

These properties are automatically tracked:

campaign
object

The available information about the campaign.

name(optional)
string

A unique identifier for the campaign. It is usually a short string, such as "summer-sale" or "new-product-launch".

source(optional)
string

The advertiser, site, or publication generating the traffic. For example, "google", "facebook", or "newsletter".

medium(optional)
string

The advertising or marketing channel used to reach the user. For example, "email", "video", or "social".

content(optional)
string

An identification of the specific ad or content the user interacted with. For example, "main-banner" or "newsletter-cta".

term(optional)
string

The keyword or term that triggered the ad. For example, "running shoes" or "tennis racket".

Payload examples

Below is a payload example for this event:

12345678910
{  "type": "campaignDetected",  "campaign": {    "name": "winter-sale",    "source": "google",    "medium": "search",    "content": "shoes",    "term": "black shoes"  }}