Skip to main content
Only orders sent from your server reach OpenAI: the Lemrock Pixel alone isn’t enough. Get the click ID → send the order from your server → test with Lemrock.

1. Get the click ID

Visitors coming from a ChatGPT ad arrive with ?lrclid=lr_clk_... in the URL. Save this value with the order:
  • If the Lemrock Pixel is installed, it stores it in the lemrock_click cookie. Read this cookie when the order is placed.
  • Otherwise, read lrclid from the landing URL and keep it with the visitor’s session until the order.

2. Send the order from your server

When the order is paid, send an order_created event to the server API, with the saved lrclid. Your Lemrock contact gives you the API key.
  • event_id is the order ID. If the pixel also sends the order, use the same one so it only counts once.
  • contents[].id uses the IDs from your product feed. Otherwise OpenAI can’t link the sale to your products.
  • Send the order within 7 days. OpenAI rejects older orders.
  • Only send orders from visitors who gave consent, including for OpenAI (see Add OpenAI to your CMP).

3. Test with Lemrock

Send a first order with "validate_only": true: it’s checked without being recorded. Then tell your Lemrock contact, who confirms OpenAI received it.