campaign
- 3 Minutes to read
- Print
- DarkLight
campaign
- 3 Minutes to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
All sources used to access a website can be analyzed via campaign analyses. You can send a campaign for the data source "URL parameter" in a request. Campaign tracking is configured under Configuration > Marketing Configuration in Mapp Q3. Find more information on the training documents on campaign configuration and campaign analyses.
Overview
Value | Description | Data type | Default value | Required | Where to analyze | Request Parameter |
---|---|---|---|---|---|---|
id | Comprises a media code name and value. E.g., "wt_mc%3Dnewsletter.2023.42.v1"Don't forget to use URL encoding! For example, "=" is URL encoded "%3D". | String | - | Yes | Marketing > Campaigns > Advertising Media | mc |
mediaCode | If you use media codes as a data source for your campaign tracking, entering the name of the media code parameter can increase tracking accuracy. This will prevent blocking the media code from firewalls. E.g., "wt_mc". | String[] | ["mc", "wt_mc"] | - | - | - |
oncePerSession | When set to true each campaign is only tracked once within a particular session. The Pixel will then overwrite the campaign with "ignore" for all subsequent page requests. | Boolean | false | - | - | - |
parameter | Use campaign parameters to add additional information to a campaign. Find more details below. | Object | - | - | Marketing > Campaigns > Campaign Parameters | cc[ID] |
Further information
parameter
Parameters must be set up under Mapp Q3 > Configuration> Custom Parameters > CampaignParameter before use. The ID and data type are defined for each parameter during setup. Find more info here. Campaign parameters can be entered directly in the page configuration or added to the target URL.Example for page configuration (parameter with ID "1"): {1:"position-1"}Example for sending the parameter via URL (parameter with ID "1"):http://www.website.com?wt_mc=newsletter.2023.42.v1&wt_cc1=position-1
If the same parameters are used for the URL and the page configuration, the latter takes precedence and overwrites the URL parameter.
Implementation Examples
If you do not have automatic page tracking enabled, invoke the track method after adding all relevant tracking information.
import { Component } from '@angular/core';
import { WebtrekkSmartPixelAngular } from '@webtrekk-smart-pixel/angular';
@Component({
template: `<div>[ ... ]</div>`
})
export class ExampleComponent {
constructor(private pixel: WebtrekkSmartPixelAngular) {
this.pixel.campaign({
id: "wt_mc%3Den.internal.newsletter.2017.05",
mediaCode: ["mc", "wt_mc"],
oncePerSession: false,
parameter: {1: "Newsletter 123"}
});
}
}
Please add
WebtrekkSmartPixelModule
to your root NgModule and configure the options before using directives.
If you do not have automatic page tracking enabled, invoke the track method after adding all relevant tracking information.
import { Component } from '@angular/core';
@Component({
template: `<div [wt-campaign-data]="webtrekkData"></div>`
})
export class ExampleComponent {
webtrekkData = {
id: 'wt_mc%3Dfoo.bar',
mediaCode: ['wt_mc', 'mc'],
oncePerSession: true,
parameter: {1: 'foo', 2: 'bar'}
}
}
Was this article helpful?