With teaser tracking, you can analyze your onsite teasers' views, clicks, and engagement. Learn more about it here.

Overview

ValueDescriptionData typeDefault valueRequiredWhere to analyzeRequest Parameter
nameSpecifies the teaser name. E.g., "16554_winter-sale"String
YesNavigation > Teaser - Performance > Teaser Nameck521
selectorSpecifies the element to be measured. You can pass the CSS selector of the element.Stringcurrent element-
-
shadowRootIf your content to be measured is inside a shadow DOM element, specify the CSS selector of the shadow DOM element. If you have defined a CSS selector as the "selector", it will refer to the "shadowRoot" selector you have defined.String
-
-
rankSpecifies the teaser placement. E.g., "Position_6"String
-Navigation > Teaser - Performance > Teaser Performanceck520
contentSpecifies the teaser content. E.g., "News"String
-Navigation > Teaser - Performance > Teaser Performanceck526
variantSpecifies the teaser variant and is often used for testing. E.g., "A".String
-Navigation > Teaser - Performance > Teaser Performanceck522
seenWhen set to true , teasers whose visibility is controlled via a zIndex, a rotation of different teaser elements, or using another dynamic method must also be flagged if they are displayed. View tracking will be deactivated for this teaser. Click-, engagement- and conversion tracking will still be activated.Booleanfalse-
ck523
type

Specifies the teaser conversion type.

  • view: The teaser should be connected to the conversion when it has been viewed.
  • click: The teaser should be connected to the conversion when it has been clicked.
  • product: The teaser should be connected to the conversion when it has been clicked and you have product teasers  (teaser name uses product name).
Stringproduct-
ck527
goal

Specifies the teaser conversion goal.

  • order: The teaser should only be connected to the conversion.
  • goal: The teaser should only be connected to the website goal.
  • both: The teaser should be connected to conversion or website goal.
Stringboth-
-
value

Specifies the teaser conversion value that will be assigned to the teaser in case of an order.

  • conversion value: uses the product cost parameter. Only works, if the teaser name is identical to the product name.
  • percentage of order value: uses a percentage of order value parameter (i.e., 5%).
  • fixed value: Fixed value (i.e., 15).
Stringconversion value-
-


Implementation Examples

Please add WebtrekkSmartPixelModule to your root NgModule and configure the options before using directives.

import { Component } from "@angular/core";

@Component({
    template: `<div id="my-products" [wt-teaser]="webtrekkData"></div>`,
    styles: [
        'div { height: 500px; width: 100%; border: solid 1px black; }'
    ]
})
export class ExampleComponent {
    webtrekkData = {
        selector: '#my-products',
        name: 'My products',
        rank: 'header',
        content: 'My products overview',
        variant: 'products',
        type: 'click',
        goal: 'order',
        value: '10%'
    }
}
JS