call

Prev Next

The call method gives you direct access to the original Smart Pixel. This allows you to use functions, features, and extensions that this library does not support by default.

More info under Smart Pixel.

Overview

Value

Description

Data type

Required

callback

Callback method to interact with the origin Smart Pixel.

function(wtSmart: wtSmart)

Yes

WebtrekkSmartPixelAngular

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.call((wtSmart) => {
            // do any tracking stuff here
        });
    }
}