---
title: Add To Cart
slug: apis/add-to-cart
docTags: 
createdAt: 2024-07-25T19:55:55.598Z
---

Call-to-action (CTA) buttons within the search result display, such as "Add To Cart," are essential for analytics tracking. These interactions play a crucial role in enabling machine learning algorithms to accurately rank items.

When a shopper clicks a CTA button, the resulting analytics call to Klevu should be recorded as a product click, equivalent to proceeding to the product detail page.

See the corresponding sections for the appropriate details:

- Quicksearch and Search Result product CTA  = [productTracking](https://docs.klevu.com/apis/search-events#-2qMT)
- Category page product CTA  = [categoryProductClickTracking](https://docs.klevu.com/apis/category-events#p_x2E)
- Smart Recommendations CTA  = [analytics/collect](https://docs.klevu.com/apis/recommendations-events#Ayp7W)

