--- title: "trackPage" slug: "react-next-trackpage" updated: 2024-04-01T06:42:31Z published: 2024-04-01T06:42:31Z canonical: "docs.mapp.com/react-next-trackpage" --- > ## 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. # trackPage The **trackPage** 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. ## Overview | Value | Description | Data type | Default value | Required | | --- | --- | --- | --- | --- | | keepData | After sending the tracking data, the 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` | - | ## Implementation Example ```javascript import { WebtrekkSmartPixelReact } from "@webtrekk-smart-pixel/react"; ``` ```javascript import { WebtrekkSmartPixelReact } from "@webtrekk-smart-pixel/next"; ``` **WebtrekkSmartPixelReact** ```javascript WebtrekkSmartPixelReact.trackPage(false); ```