> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get started

> Implement product tracking methods in Kameleoon to enable social proofing and advanced product-based targeting for your campaigns.

Kameleoon’s **Product API** powers both [**social proofing messages**](./social-proofing) and [**advanced targeting conditions**](./product-targeting).

To fully leverage Kameleoon’s **social proofing** and **targeting** features, ensure you correctly implement the tracking methods described below. Once implemented, you can retrieve **product and transaction data** through the [`obtainProductInteractions()`](../../developer-docs/apis/activation-api-js/api-reference/api-reference#obtainproductinteractions) and [`obtainProductData()`](../../developer-docs/apis/activation-api-js/api-reference/api-reference#obtainproductdata) endpoints.

Counters are now available directly through [the Widget Studio](../assets/widgets/create-a-widget-with-the-widget-studio/create-a-widget) as [custom variables](../assets/widgets/create-a-widget-with-the-widget-studio/edit-your-widgets#insert-a-custom-data-into-an-element). Checkout [this documentation](./tracking-counters-in-widget-studio) to know more.

## trackProductView()

Use the `trackProductView()` method on **product pages** to track when a visitor views a product. Read more about the method [here](../../developer-docs/apis/activation-api-js/api-reference/api-reference#trackproductview).

<Note>
  Ensure you provide all necessary data for your social proofing setup. Only the data sent via the `trackProductView()` method can be retrieved later through the [`obtainProductData()`](../../developer-docs/apis/activation-api-js/api-reference/api-reference#obtainproductdata) endpoint.
</Note>

***

## trackCategoryView()

Use the `trackCategoryView()` method on **category pages** to track when a visitor views a product category. Read more about the method [here](../../developer-docs/apis/activation-api-js/api-reference/api-reference#trackcategoryview).

Ensure the **category ID** used here matches the one sent with the `trackProductView()` method. Read more about the Category object [here](../../developer-docs/apis/activation-api-js/api-reference/api-reference#properties-of-the-category-object).

***

## trackAddToCart()

Use the `trackAddToCart()` method on **any page where a visitor can add a product to their cart**—for example, the home page, product page, category page, or cart page.

Read more about the `trackAddToCart()` method [here](../../developer-docs/apis/activation-api-js/api-reference/api-reference#trackaddtocart).

***

## trackTransaction()

Use the `trackTransaction()` method on any page displayed after a visitor completes a **purchase or transaction**. Read more about the method [here](../../developer-docs/apis/activation-api-js/api-reference/api-reference#tracktransaction).
