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_clickcookie. Read this cookie when the order is placed. - Otherwise, read
lrclidfrom 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 anorder_created event to the server API, with the saved lrclid. Your Lemrock contact gives you the API key.
event_idis the order ID. If the pixel also sends the order, use the same one so it only counts once.contents[].iduses 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.
