--- title: "trackAction" slug: "trackaction" updated: 2024-05-23T11:19:52Z published: 2024-05-23T11:19:52Z canonical: "docs.mapp.com/trackaction" --- > ## 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. # trackAction The **trackAction** 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. ### **WebtrekkSmartPixelAngular** | 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: `