This guide will walk you through the steps to create a goal conversion tag in Google Tag Manager (GTM) for Kameleoon. You’ll learn how to configure a custom HTML tag to track specific events, such as adding to cart or completing a transaction. Additionally, you’ll find instructions for setting up a tag with revenue tracking.
Create a tag
- Click on New
- Name your tag. Examples: “Kameleoon – add to cart”, “Kameleoon – transaction”
- In Tag configuration, select “Custom HTML” and insert this code:
kameleoonGoal = 123456; window.kameleoonQueue = window.kameleoonQueue || []; kameleoonQueue.push(['Goals.processConversion', kameleoonGoal]);
You need to replace 123456
with the Kameleoon goal ID.

- Add a trigger: select an existing trigger in the list or create a new one (depending on the dataLayer format).

Create a tag with revenue
To create a tag with revenue, in step 3 of creating the tag, enter this code:
kameleoonGoal = 123456; window.kameleoonQueue = window.kameleoonQueue || []; kameleoonQueue.push(['Goals.processConversion', kameleoonGoal, {{TransactionRevenue}}]);
123456
is the Kameleoon goal ID and {{TransactionRevenue}}
is a variable with the revenue attached to the conversion.