Overview
Google Tag Manager (GTM) is a powerful tag management system that allows you to quickly and easily update measurement codes and related code fragments, collectively known as tags, on your website. By integrating GTM with Kanalio, you can deploy analytics, advertising pixels (like Meta Pixel or TikTok Pixel), and other scripts without modifying your site's code directly.
This integration allows you to:
- Centralized Management: Control all your tracking scripts from the GTM interface.
- Rich DataLayer Support: Kanalio automatically pushes booking and interaction data to the
dataLayer, making it easy to trigger custom tags. - Faster Implementation: Launch new marketing campaigns and tracking pixels in minutes instead of days.
How to Integrate Google Tag Manager
Setting up GTM with Kanalio only requires your GTM Container ID.
- Access the Dashboard: Log in to your Kanalio account and navigate to Settings > Integrations.
- Select Google Tag Manager: Click on the GTM card and select Connect.
- Enter Container ID: Paste your GTM Container ID (starts with
GTM-) into the configuration field. - Environment (Optional): If you are using GTM environments (e.g., Staging vs Production), enter your environment parameters.
- Save and Publish: Click Save. Ensure your GTM container is published to start tracking.
How to Get Your Container ID
Your GTM Container ID is the unique identifier for your specific tag container.
- Sign in to Google Tag Manager.
- Look at your list of accounts and containers.
- The Container ID (e.g.,
GTM-N1ABC12) is displayed in the "Container ID" column. - Alternatively, once you open a container, the ID is visible at the top of the workspace next to the "Preview" and "Submit" buttons.
Frequently Asked Questions
1. What is GTM used for?
GTM is used to manage and deploy marketing and analytics tags (snippets of code or tracking pixels) on your website or mobile app without having to modify the code.
2. Should I use GTM or the direct GA4 integration?
If you only need basic Google Analytics tracking, the direct integration is simpler. If you need to manage multiple pixels (Meta, LinkedIn, Hotjar) and custom events, GTM is much more powerful and organized.
3. How does Kanalio send data to GTM?
Kanalio pushes events to the dataLayer object. For example, when a user confirms a booking, Kanalio pushes a purchase event with all relevant transaction details.
4. How can I test my GTM tags?
Use the Preview mode in Google Tag Manager. This allows you to browse your site and see exactly which tags are firing in real-time before you publish changes.
5. Does Kanalio support GTM server-side tracking?
Yes. You can configure your GTM container to use a server-side tagging server to improve site performance and data privacy.
6. Can I use GTM to track user interactions with the booking engine?
Absolutely. Kanalio pushes several events (e.g., view_item, add_to_cart, begin_checkout) that you can use as triggers in GTM.
7. What happens if I have two GTM containers on my site?
We recommend using only one GTM container per site to avoid performance issues and tracking conflicts. If you must use two, ensure their dataLayer names do not conflict.
8. Does GTM slow down my website?
GTM loads asynchronously, meaning it won't block the rendering of your page. However, the number and size of individual tags you deploy through GTM can affect performance, so keep your container clean.