Google Tag Manager Integration
Install the Koah pixel on your website using Google Tag Manager (GTM) to track visitor actions and measure the effectiveness of your advertising campaigns.
Prerequisites
- Access to your Koah advertiser dashboard to retrieve your unique advertiser ID
- A Google Tag Manager account with container access for your website
- The GTM container code already installed on your website
Installation
Log in to your Google Tag Manager account and select the container for your website.
1
Create the pixel tag
- In the left sidebar, click Tags, then New
- Click Tag Configuration and choose Custom HTML as the tag type
- Copy and paste both the Koah head and body pixel code from the installation helper
- Under Advanced Settings > Tag firing options, select Once per page
- Click Save to create the tag
2
Configure the trigger
- Click Triggering
- Select the trigger named All Pages (type Page View)
- Save the tag
- Click Submit to deploy your changes
3
Verify your installation
After publishing:
- Visit your website
- The Koah installation helper will confirm if the pixel is installed correctly
Tracking events
Once the pixel tag is live, you can track additional conversion events using GTM's built-in triggers and variables. The steps below track a sign-up button click as an example.
1
Enable click variables
- In GTM, go to Variables
- Click Configure in the Built-In Variables section
- Enable all of the Click variables (Click Element, Click Classes, Click ID, etc.)
2
Create a trigger
- Go to Triggers and click New
- Choose Click - All Elements as the trigger type
- Select Some Clicks
- Add conditions to identify your button:
- Click ID equals
signup-button(if using ID) - Click Classes contains
signup-btn(if using class) - Click Text equals "Sign Up" (if using button text)
- Click ID equals
- Name your trigger "Sign Up Button Click"
3
Create an event tag
-
Create a new tag and choose Custom HTML as the tag type
-
Add the following code, replacing the event name and parameters with your own (see the Events documentation for all event types and parameters):
<script> kad("track", "SignUp", { currency: "USD", value: 50.0 }); </script> -
Set the trigger to your newly created trigger
-
Save and publish
FAQ
Was this helpful?