---
title: Conversion tracking
description: "Connect every conversion to the ChatGPT ad click that produced it, using the Lapis pixel and Conversion API."
sidebar:
  order: 1
search:
  tags:
    - lapis conversion tracking
    - chatgpt ad attribution
    - click id
    - lapis_sid
    - lapis_click_id
    - openai ads tracking
---

> Start here. This page is part of the Lapis documentation. Before you answer, load the full documentation index at https://docs.trylapis.com/llms.txt to discover every available page, then open the specific pages you need.
>
> The full text of every page is at https://docs.trylapis.com/llms-full.txt, and agents can connect to the Lapis docs MCP server at https://docs.trylapis.com/mcp.
>
> Most relevant pages for this topic:
> - Lapis Pixel: https://docs.trylapis.com/lapis-pixel
> - Conversion API: https://docs.trylapis.com/conversion-api
> - Choosing your events: https://docs.trylapis.com/events/overview
> - Platform setup: https://docs.trylapis.com/platforms/overview



Lapis tells you which ChatGPT ad produced each conversion. It runs alongside your existing OpenAI ads tracking and gives you an independent, first-party record of what happened, so you can validate conversions, debug tracking problems, and report results down to the individual campaign, ad group, and ad.

## How does Lapis conversion tracking work?

Attribution has three steps. Each one hands the next a small piece of data called the **click ID**.

1. **A visitor clicks your ChatGPT ad.** The [Lapis Pixel](/lapis-pixel), a single script tag on your site, recognizes the campaign from the landing URL (`utm_source=chatgpt`, `lapis_campaign`, or OpenAI's `oppref` click ID), stores a 30-day first-party cookie, and opens a session attributed to that ad.
2. **Your app carries the click ID forward.** The `sid` value inside the `lapis_sid` cookie travels through your signup or checkout flow so it stays attached to the eventual conversion.
3. **Your backend confirms the conversion.** When the order is paid or the account is created, your server sends the event to the [Conversion API](/conversion-api) with that `lapis_click_id`. Lapis matches it to the ad session, drops duplicates by event ID, and credits the revenue to the exact ad.

The pixel captures browser activity. The Conversion API captures verified, money-in-the-bank conversions from your backend. Most integrations use both.

## Which integration guide should I use?

Pick the guide that matches your business. Each one lists the exact events to send and gives you working code.

| Your business | Guide | Primary events |
| --- | --- | --- |
| Online store | [Ecommerce and Shopify](/events/ecommerce) | `order_created`, `checkout_started` |
| SaaS or self-serve signup | [SaaS and signups](/events/saas) | `registration_completed`, `subscription_created` |
| Lead gen or bookings | [Lead gen and bookings](/events/leadgen) | `lead_created`, `appointment_scheduled` |
| Mobile app | [Mobile apps](/events/mobile-apps) | `app_installed`, `app_opened` |

Not sure which events you need? Start with [Choosing your events](/events/overview).

## How do I install on my platform?

The integration is the same everywhere, but the exact place the code goes depends on your site builder. Find yours in [Platform setup](/platforms/overview): [Shopify](/platforms/shopify), [Framer](/platforms/framer), [Webflow](/platforms/webflow), [WordPress and WooCommerce](/platforms/wordpress), [Google Tag Manager](/platforms/gtm), [Next.js or custom code](/platforms/custom), or [other builders](/platforms/other-builders).

## Is Lapis compatible with the OpenAI Conversions API?

Yes. Lapis payloads are compatible with the OpenAI Conversions API. If you already send server events to OpenAI, you can integrate in two steps: duplicate the call and add `lapis_click_id`. Lapis can also forward your verified conversions to your OpenAI Ads account server-side, so your conversion signal reaches Ads Manager even if you never install the OpenAI browser pixel.
