Campaign Tracking events

ad_view

This event is associated with your ad being displayed, can be used to track the touch point "impressions" in Campaign Analytics module

ad_click

This event is associated with someone clicking your ad, can be used to track the touch point "clicks" in Campaign Analytics module

Parameters

NameTypeRequiredExample valueDescription

ad_cost_id

string

No

1254965

replace the tclid from MixCommander

user

Yes

{ id: '12345', email: 'toto@domain.fr',

consent_categories: [1,3]

}

consent_categories is the user's consents list. It is automatically filled from web sources if you use Commanders Act CMP.

You should also add all user's properties in this user object, especially reconciliation key (id, email).

ad_format

string

No

image

Ad type/format

campaign

string

No

my_campaign

campaign name

keyword

string

No

t-shirt

keywords of the campaign

medium

string

Yes

seo

medium of touch point

source

string

Yes

my_source

source of touch point

Example

cact('trigger','ad_click', { /*or ad_view*/
    "medium": "seo",
    "campaign": "my_campaign",
    "source": "my_source",
    "keyword": "t-shirt",
    "ad_format": "image"
}
  user: {
    id: '12356',
    email:'toto@domain.fr',
    consent_categories: [1,3]
  }
});

page_view and purchase

To create touch points 'sites' and 'orders' you can use the following events:

  • 'page_view' to create a touch point 'sites'

  • 'purchase' to create a touch point 'orders'

Last updated