call
    • 1 Minute to read
    • Dark
      Light

    call

    • Dark
      Light

    Article summary

    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

    Lifecycle Hook

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

    <template>
      <div>
        <p>The trackId that Mapp Intelligence uses is: {{ trackId }}</p>
      </div>
    </template>
     
    <script>
    export default {
      name: "example",
      data: () => {
        return {
          trackId: ""
        };
      },
      mounted() {
        this.$webtrekk.call(wtSmart => {
          this.trackId = wtSmart.init.get().trackId;
        });
      }
    };
    </script>


    Was this article helpful?

    What's Next