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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://help.kajabi.com/feedback

```json
{
  "path": "/articles/sales/checkout/how-to-add-a-javascript-tracking-code-to-your-checkout-pages",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Add a JavaScript tracking code to checkout pages

> Add tracking codes like Google Analytics to checkout pages to monitor customer behavior.

## Overview

Tracking codes from services like Google Analytics, Facebook Pixel, or other analytics platforms help you understand how customers interact with your checkout pages. You can add these codes to monitor conversions, retarget visitors, and measure the effectiveness of your marketing campaigns.

<Warning>
  **Warning:** Custom JavaScript code runs on your checkout pages and has access to page content. Only add tracking codes from trusted sources. Malicious code could compromise your checkout security or customer data.
</Warning>

## Add a tracking code

<div className="w-full aspect-video">
  <iframe src="https://fast.wistia.net/embed/iframe/qrs1b0ekdl" allow="autoplay; fullscreen" allowFullScreen className="w-full h-full" />
</div>

## Edit or remove a tracking code

<div className="w-full aspect-video">
  <iframe src="https://fast.wistia.net/embed/iframe/91eo3zqd56" allow="autoplay; fullscreen" allowFullScreen className="w-full h-full" />
</div>
