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

Implementation Example

import { WebtrekkSmartPixelReact } from "@webtrekk-smart-pixel/react";
import { WebtrekkSmartPixelReact } from "@webtrekk-smart-pixel/next";

WebtrekkSmartPixelReact

If you do not have automatic page tracking enabled, invoke the track method after adding all relevant tracking information.

WebtrekkSmartPixelReact.call((wtSmart) => {
    // do any tracking stuff here
});