Gomag.
The tracking script goes in through Gomag’s Tag Manager app, on any plan. Real orders come in through the API key, on the Elite and Enterprise plans.
- Admin access to Gomag.
- The Meta pixel selected in Optimads, under Connections. TikTok is optional.
1. The script, through Tag Manager
You’ll find the values below in Optimads, under Tracking → Setup → Store installation, Gomag tab.
Open Tag Manager in Gomag
Gomag Apps → Marketing afiliat → Tag Manager (Marketing afiliat = affiliate marketing).
Fill it in
Cod Tag Manager (Tag Manager code): your code from Optimads, starting with
OA.Librărie GTM (GTM library): Custom, with the address:
https://app.optimads.ai/track.jsIdentificator produs (product identifier): ID. Trimite datele clienților (send customer data): Nu (No).
Save (Salvează), then activate (Activează)
The first events show up in Tracking → Activity within a few minutes.
Link the store
Back in Optimads, press “I’ve added the script, link the store”.
I already use Tag Manager for my own GTM container
Don’t change it. Put the script from Optimads in the “Cod Pixel” field (pixel code) of the TikTok app in Gomag Apps, or as a Custom HTML tag in your GTM container, on all pages.
I have a custom domain
Then the address for Librărie GTM is the one on your subdomain, as Optimads shows it on the Gomag tab. See Custom domain.
2. Orders, through the API key
Copy the API key
In Gomag: Setări → API (Settings → API), then copy the API key.
Connect in Optimads
Press “Connect Gomag orders” and fill in your store address and the API key.
With the key we read the real orders, even if the shopper never reached the thank-you page.
3. Turn off the Gomag pixels
Gomag Apps → Meta Pixel: turn it off and remove the Conversions API token. Do the same for TikTok, if the “Cod Pixel” field holds the TikTok pixel and not the Optimads script. Otherwise they send the same sales with different codes, and Meta and TikTok count them twice.
In Meta Events Manager, also turn off Tracking without code. Details: Old pixels and duplicates.
Common problems
“Gomag hasn’t returned orders”
Check that the API key is still active and that your plan is still Elite or Enterprise.
“Gomag is limiting requests”
Gomag allows a limited number of requests per store. Try again in a minute.