---
title: "Composition API"
slug: "composition-api"
updated: 2024-03-21T13:22:31Z
published: 2024-03-21T13:22:31Z
canonical: "docs.mapp.com/composition-api"
---
> ## 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.
# Composition API
You can use Smart Pixel in the composition API. For example, if you have a product component which fetches product data within the setup function, you can also do the tracking there.
In this example, we deactivate the auto tracking first, because we want to send the page request with product data. So after getting the data, we provide it to App.$webtrekk.product, and the track afterwards.
```xml