All modulesMagento 2 module

ChatGPT ads tracking

The OpenAI measurement pixel and the server-side Conversions API, so you see which orders came from ads in ChatGPT.

Free · free licence, installation optional

www.degriz.eu
Setting up the ChatGPT ads tracking pixel in a few steps in the store admin
About the module

What it does.

"We advertise in ChatGPT but do not know which orders came from there." Without measuring, you do not know whether the ad brings purchases, and you cannot optimise.

What it looks like in practice

In Ads Manager you copy the pixel ID and enter it in the store settings. A visitor clicks an ad in ChatGPT, looks at a product, adds it to the cart and buys. Each of these steps is sent to OpenAI as an event, and the purchase is sent once more from the server so an ad blocker does not lose it. OpenAI merges the two into one purchase and you see the conversions in Ads Manager.

What changes

  • The OpenAI pixel. The pixel loads with your ID, and each standard event (page view, product view, add to cart, checkout started, purchase, registration, newsletter sign-up, search) is switched on separately.
  • Server-side Conversions API. The events you choose are also sent from the server with the same event ID, and OpenAI merges the two. A test mode that only validates events can be turned on.
  • Advanced matching. E-mail, phone and name are hashed (SHA-256) on your server before sending; the raw values never leave the store. Address details can be switched off.
  • Cookie consent. The OpenAI script loads only once the consent cookie is set; events before that are queued.
  • Cache safe. Visitor data comes from an uncached request, so a cached page never carries another visitor's identity.

Who it is for

For shops that already advertise (or will advertise) in ChatGPT through OpenAI Ads and need conversion measurement. The module measures; you run the advertising itself in Ads Manager.

How you set it up

Settings are in the admin under Stores › Configuration › Degriz › OpenAI Ads (ChatGPT) Pixel. You need the pixel ID from Ads Manager (Conversions › Pixels) and, for server-side sending, an API key (Conversions › Manage conversion keys).

Good to know

  • The module is switched off by default; turn it on and enter the pixel ID. The server-side API is separately off.
  • You need an OpenAI Ads account; the module does not create ads.
  • Test the setup with debug mode and "validate only" before you start counting conversions.
  • Sending from the server never blocks an order: failures are logged.
  • The module is free and open source; the disclaimer of the licence applies.

Want it in your store?

Install it yourself or choose installation and configuration when you order. Building a new store? Add it to your project in the Konfigurator.

Screens

Take a look at every step.

www.degriz.eu
Switch the pixel on and enter the pixel ID from Ads Manager
www.degriz.eu
Each standard event (product view, cart, order) can be switched on or off per store view
www.degriz.eu
Advanced matching: email and phone are hashed on the server, raw data never leaves the store
www.degriz.eu
Conversions API: the same events are also sent from the server, so ad blockers cannot swallow them
Installation

How to install it.

We install the module from our repository with Composer. We send you the user name and access key for the repository after purchase. If you prefer, we install it for you.

In the root of the Magento 2 store run the commands (replace UPORABNIK and DOSTOPNI_KLJUC with the user name and access key you received):

composer config repositories.degriz composer https://www.degriz.net/konfigurator/composer/packages/composer config --auth http-basic.www.degriz.net UPORABNIK DOSTOPNI_KLJUCcomposer require degriz/module-openai-adsphp bin/magento module:enable Degriz_OpenAiAdsphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy -fphp bin/magento cache:flush

Setup

In the admin open Stores › Configuration › Degriz › OpenAI Ads (ChatGPT) Pixel.

  1. In the General group switch the pixel on and enter the pixel ID from Ads Manager (Conversions › Pixels). Turn on debug mode while testing.
  2. In the Events group choose the events the store sends.
  3. If you use a cookie banner, in the Cookie Consent group turn on the consent requirement and enter the cookie your banner sets (for Magento's cookie restriction this is user_allowed_save_cookie).
  4. Walk the funnel product, cart, checkout, purchase and check each event in the browser console.
  5. For server-side sending, in the Conversions API group enter the API key, choose the events (for example purchase, checkout started, add to cart) and first turn on "Validate Only"; turn it off once verified.

Where do I get the user name and the access key?

After the payment we e-mail you a link to create the access key. Keep the key safe: for security it is shown only once and we do not keep it in readable form. The user name (your project code) and all the commands, ready to copy, are in your account under My account > Module licences.

Lost the key? Create a new one in your account under Module licences; the old one stops working.

Technical details

Compatibility.

Just the facts.

Code
degriz_openaiads
Platform
Magento 2
Licence
One-off
After purchase

You are not left alone.

We develop and maintain the module ourselves, so you write to the people who know it line by line.

Installation

Installation and configuration are optional: choose them when you order and the price is added to the order (+ VAT). If more time is needed, we bill the rest separately.

Support

A bug that repeats on a clean Magento with the Luma theme we fix free of charge. Settings, customisations and other themes by time spent.

Updates

The licence includes 12 months of free updates for the Magento versions on the supported list.

We agree on a date after reviewing the request. User guides in the guide centre

ChatGPT ads tracking

Free

Free licence for one store, no subscription. Installation and configuration are optional.

Write to us

Install it yourself by following the guide, or choose installation and configuration above. If more time is needed, we bill the rest separately. We agree on a date after reviewing the request.

Anže Voh, Degriz

Questions about this module?

Write to us and we will answer personally.

[email protected] · +386 40 807 231

ChatGPT ads trackingFreeAdd to cart

Online store configurator

Redesigning your store or building a new one?

Put your own quote together in the configurator and see the price straight away. A few minutes, no obligation, no meeting needed.

  • Price straight away
  • No obligation
  • Straight to the developer
Open the configurator

Free and with no obligation

We use cookies for the proper functioning of the site, visit analytics and showing ads tailored to your interests. Read more in our privacy policy. By clicking "Accept all" you agree to the use of all cookies.