Add your Meta, TikTok or Google pixel to a checkout page and it will count every sale, with the order total, as it happens. Everything lives in the checkout page's own Tracking tool.
Add a Meta, TikTok or Google pixel
- Open the checkout page, and under Setup in the tool rail select Tracking.
- Find the box for your platform: Meta Pixel, TikTok Pixel, Google Analytics or Google Ads.
- Paste the ID exactly as the platform shows it: the Pixel ID for Meta or TikTok, the Measurement ID (it starts with G-) for Google Analytics, or the Conversion ID (it starts with AW-) and Conversion label for Google Ads.
- Select Save under that box. It appears once you've typed something.
- 1 Select Tracking under Setup.
- 2 Paste your pixel's ID, here the Pixel ID for Meta.
Each pixel records a visit to the page, and a purchase with its value and currency once the buyer has paid.
Meta and TikTok also take an Access token (optional), and Google Analytics an API secret (optional). With one saved, Teachery also sends each purchase to that platform itself. A saved token is never shown again: it reads Saved, with Replace and Remove beside it.
Send the order total to another tool
For any other tool, such as an affiliate tracker, paste its snippet into Conversion code under Conversion. It runs once for each order, on the first page the buyer sees after paying. Teachery fills these in for you:
{{ order_total }}: What the buyer paid on this order.{{ currency }}: The order's currency code.{{ order_id }}: This order's own ID.{{ product_name }}: The name of what the buyer bought, with several separated by commas.{{ product_id }}: Its Teachery ID, with several separated by commas in the same order.{{ product_type }}: What kind of item it is, as your library names it.{{ price_name }}: The name of the price the buyer picked.{{ price_id }}: That price's Teachery ID.{{ payment_type }}: One-time, Recurring, Pay what you want or Free.{{ subtotal }}: The order before any discount and tax.{{ discount }}: What a discount took off, or zero.{{ tax }}: The tax charged, or zero.{{ coupon }}: The promo code the buyer used, or nothing.{{ email }}: The buyer's email address.{{ first_name }}: The buyer's first name, where Teachery has it.{{ last_name }}: The buyer's last name, where Teachery has it.{{ items }}: Every item as a list in Google's ecommerce shape, ready to paste into a script.
Select a placeholder's copy button to copy it, then paste it into your snippet where the tool asks for that value.
Add Google Tag Manager, a chat widget or other code
Under Your Code, Head code runs in the page's head, before anything on it has drawn, and Body code runs at the end of the page.
Test your tracking
Select Open test page under a box. It runs your code and pixels once with a sample order, which counts in none of the page's views, purchases or conversion, and Google Analytics marks it as a test.
Once a Meta or TikTok access token is saved, that box offers Test event code instead. Copy the code from the platform's Test Events screen, paste it in and select Send test event. The code goes with that one event and is never saved.
Why won't my pixel ID save?
Teachery checks each ID's shape before saving it. A Meta Pixel ID is digits only, a TikTok one is letters and digits, a Measurement ID starts with G- and a Conversion ID starts with AW-. Google Ads needs the Conversion ID and the Conversion label together. Copy the ID straight from the platform, with no spaces or extra words.