--- title: "track" slug: "send-tracking-data-track" updated: 2024-03-29T13:39:16Z published: 2024-03-29T13:39:16Z canonical: "docs.mapp.com/send-tracking-data-track" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # track The **track** method sends the collected data to our track servers. After sending, the pixel automatically deletes all data from the cache and cannot access it anymore. | Value | Description | Data Type | Default Value | Required | | --- | --- | --- | --- | --- | | keepData | After sending the tracking data, the Smart Pixel automatically removes all defined data. If you want to keep the data, set `true` as the first argument, then you can delete the data manually. | `Boolean` | `false` | - | ```javascript import { Component } from '@angular/core'; import { WebtrekkSmartPixelAngular } from '@webtrekk-smart-pixel/angular'; @Component({    template: `
[ ... ]
` }) export class ExampleComponent {    constructor(private pixel: WebtrekkSmartPixelAngular) {        this.pixel.track(false);    } } ``` If you want to track all current added information, add the directive `wt-track` to your template. > [!NOTE] > Please add `WebtrekkSmartPixelModule` to your root NgModule and configure the options before using directives. ```javascript import { Component } from '@angular/core'; @Component({    template: `
` }) export class ExampleComponent {    webtrekkData = {        name: 'name',        search: 'search',        numberSearchResults: 7    } } ```