> ## 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.

# Add JavaScript tracking code to Checkout pages

> Add Google Analytics and other tracking code to Checkout pages to monitor customer behavior.

**Tracking code** from services like Google Analytics, Meta Pixel, or other analytics platforms can help you understand how customers interact with Checkout pages. Add tracking code to monitor conversions, retarget visitors, and measure the effectiveness of marketing campaigns.

This code will be placed at the end of the `<body>` of each checkout page.

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

## Add, edit, or remove tracking code

Tracking code for Checkout pages is managed separately from the Header Page Script field used for other pages.

1. From the Dashboard, click **Settings.**
2. Under **Payment settings**, click **Checkout**.
3. In the **Checkout Tracking Code** section, click to add or edit **Header tracking code** or **Footer tracking code**:
   <img src="https://mintcdn.com/kajabi-support/6hTs5Qo9y1l7mIuC/images/Checkout-07-21-2026_05_52_PM.png?fit=max&auto=format&n=6hTs5Qo9y1l7mIuC&q=85&s=327afb2e0f0b0fa7970819a5c8661728" alt="Checkout 07 21 2026 05 52 PM" width="2028" height="1211" data-path="images/Checkout-07-21-2026_05_52_PM.png" />
4. Paste in new JavaScript code, update current code, or remove all code from each field.
5. Click **Save.**

## Disable tracking code on a specific Offer's Enhanced Checkout page

Tracking code added under Checkout Tracking Code applies to all Checkout pages across your site. To disable tracking on a specific Offer's Enhanced Checkout page:

1. From the Dashboard, click **Sales**, then **Pricing**.
2. Click an **Offer Title**.
3. Click **Edit checkout** at the top of the page.
4. Click the section title **Checkout**.
5. Toggle off **Include header tracking code** and/or **Include footer tracking code**.

## Google Analytics and Meta Pixel purchase events

If your Kajabi account is connected to Google Analytics or Meta Pixel, you do not need to add manual tracking code to capture purchases. Enhanced Checkout automatically triggers a purchase event for both integrations when a transaction is completed.

<Tip>
  **Tip:** Learn how to connect [Google Analytics](https://help.kajabi.com/articles/api-integrations/analytics-integrations/connect-google-analytics-with-kajabi) and [Meta Pixel](https://help.kajabi.com/articles/api-integrations/analytics-integrations/meta-pixel-with-kajabi) with Kajabi.
</Tip>
