Set up Transaction Tag with Google Tag Manager
Prerequisites
A Google Tag Manager account (free) with your configured variables
AB Tasty platform access
Published AB Tasty campaign (optional, for validation)
Log in to your GTM account.
Go to Tags > New
Enter your Tag name
Click Tag Configuration
Select Custom HTML tag type
Add <script></script>
tags
Paste the AB Tasty transaction tag script between the <script> tags
Replace all placeholder values based on your data layer variables configuration.
Make sure you have applied the appropriate format to your values, as described in the developer's documentation.
If you want to collect data at Item level
Add the dedicated template from the developers' documentation
Match the variables according to the data layer
Once the script is done, select your triggering:
Click on the Triggering area
In the opening menu, select the purchase event as a trigger: event equals purchase
Optionnal: add a Blocker if the consent is not granted for AB TAsty cookies.
Click Save.
To QA
Click Preview.
Go to your website’s order confirmation (thank you) page.
Open your browser’s Developer Tools (usually F12).
Go to the Network tab.
Place a test order (or simulate one if possible).
Look for a request to
ariane.abtasty.com
—this is the endpoint where transaction data is sent.Check the request payload for transaction details (transaction ID, amount, items, etc.)
Last updated
Was this helpful?