This article will help you create a goal conversion tag for Kameleoon using Google Tag Manager (GTM). You will learn how to set up a custom HTML tag to monitor specific events and how to configure a tag that tracks revenue.Documentation Index
Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt
Use this file to discover all available pages before exploring further.
Create a tag
- Click New.
- Name your tag (for example, “Kameleoon - add to cart”, “Kameleoon - transaction”).
- Select Custom HTML in Tag Configuration, and insert this code:
- You must replace
123456with the Kameleoon goal ID.
- Select an existing trigger or create a new one (depending on the
dataLayerformat).
Create a tag with revenue
To create a tag with revenue:- Click New.
- Name your tag.
- Select Custom HTML in Tag Configuration, and insert this code:
123456 is the Kameleoon goal ID, and {{TransactionRevenue}} is a variable with revenue attached to the conversion.
- Select an existing trigger or create a new one (depending on the
dataLayerformat).
Create a tag with metadata
The example below adds a payment method and order ID as metadata to the goal conversion. To create a tag with metadata:- Click New.
- Name your tag.
- Select Custom HTML in Tag Configuration, and insert this code:
123456is the Kameleoon goal ID.{{ TransactionRevenue }}is a variable with revenue attached to the conversion.{{ paymentMethod}}is a variable with the payment method attached to the conversion, and0is the index of the custom data where the variable will be added.{{ orderID }}is a variable with the order ID attached to the conversion, and1is the index of the custom data where the variable will be added.
- Select an existing trigger or create a new one (depending on the
dataLayerformat).