Articles in this section
Category / Section

Install website tracking with Google Tag Manager Template

6 mins read

Watch a video walkthrough:

Prerequisites

Step 1: Install the Tracklution Template

  1. Open your Google Tag Manager (GTM) container.
  2. Go to the Templates section.
  3. Click Search Gallery under Tag Templates.
  4. Search for Tracklution.
  5. Select the official Tracklution tag template (look for the verified checkmark).
  6. Click Add to Workspace.

The template works like the standard script method, but with fewer manual errors and easier tag maintenance.

Step 2: Create a PageView Tag

  1. Go to the Tags section and click New.
  2. Choose the Tracklution tag type.
  3. In the Container ID field, paste your ID from the Tracklution installation instructions (Installation-tab) or from your container info (visible at the end of the dashboard):
    • Log in at tracklution.com
    • Go to Installation-tab
    • Copy the Container ID (looks like "LS-12345678-9")
    • Copy the Tracklution domain (looks like "tralut.myshop.com")
  4. Choose PageView as the event type.
  5. Additional Configuration:
    1. Select "Automatic (default)" if you are using only Tracklution Template (not custom HTML tags or installation with Shopify App or WooCommerce plugin).
    2. Select "I'm using custom html tag or another installation method for the Main Tag" if you are using our Shopify App or WooCommerce plugin, or you have the Main Script / Main Tag installed with a custom HTML tag.
  6. Add a trigger like All Pages or Initialization - All Pages.
  7. Name the tag clearly (e.g. Tracklution - PageView) and click Save.

templatepageview

The GTM template reads consent status automatically from the GTM data layer if you're using built-in Consent Mode. No extra configuration is needed. For manual consent integration, refer to the documentation on implementing Cookie Consent manually.

Step 3: Implement other events

  1. Create a new tag using the Tracklution tag type.
  2. Paste your Container ID and Tracklution Domain
  3. Select the event name (e.g. CompleteRegistration)
    templatecompleteregistration
  4. Optional: Add custom parameters. Custom parameters in your events let you send detailed, relevant data like user email, product ID, or plan type.
    • The key is the name of the parameter. It identifies what the data represents. For example: user_id, transaction_value, or product_name
    • The value is the data or variable that will be sent with the key. It can be:
      • A static value (e.g., 12345, "thank-you-page")
      • A GTM variable, such as {{Page URL}}, {{Click Text}}, or {{Custom JavaScript}}. It dynamically pulls the value at runtime when the tag fires.
    •   What if I don't have data layer variables? (Nothing relevant pops up when I start typing {{). Please contact your Google Tag Manager administrator / web developer. Here's Google's article on how to create custom variables in GTM. https://support.google.com/tagmanager/topic/9125128
  5. Additional Configuration:
    1. Select "Automatic (default)" if you are using only Tracklution Template (not custom HTML tags or installation with Shopify App or WooCommerce plugin).
    2. Select "I'm using custom html tag or another installation method for the Main Tag" if you are using our Shopify App or WooCommerce plugin, or you have the Main Script / Main Tag installed with a custom HTML tag.
  6. Add a suitable trigger (e.g., button click, form submission).
  7. Name the tag and Save.
Tag Sequencing: with the Template - Tag Sequencing is not needed (unlike with custom HTML tags).

Step 4: Set DNS for First Party Data Collection

Setting up the DNS CNAME allows Tracklution to load scripts under your own domain, enabling the use of First Party Cookies. This improves data accuracy, ensures more reliable tracking, and helps you get the most out of your tracking setup. See instructions from here: First-Party Mode (DNS).


Validate your setup

Once you have installed all events, you can validate your installation with these instructions: Tracklution Dashboard: Event Validation & Debugging

Note! If you use the Google Tag Manager's preview and debug mode, Tracklution will deduplicate the Purchase and Lead events you create automatically as it recognises these come from the same user. 
Comments (0)
Please  to leave a comment
Access denied
Access denied