Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

Google Tag Manager (GTM) is a tool that allows marketers to manage and deploy marketing tags on a website without modifying the code. Ingenious Technologies offers multiple GTM tag templates , that can be used to add Ingenious tracking to your pages using the Google Tag Manager. They simplify the tracking implementation process, making it . These templates are more user-friendly than traditional coding methods . Besides ease of use, these Google Tag Manager Community Templates and come with advanced features like defaults and fallbacks for enhanced accuracy. Read on to implement and use the Ingenious Google Tag Manager Community Templates:

What are GTM Community Templates?

Community templates are pre-made configurations in GTM that can be easily imported and used, saving time and ensuring best practices are followed. They are especially beneficial for those who might not have deep technical knowledge.

Table of Contents
minLevel1
maxLevel3
outlinefalse
typelist
printablefalse

Getting Started

1. Before

...

You Start

First, you should be aware of what determine which events you would 'd like to track with conversion tracking. Usually it is , such as leads or sales. Just make sure, the set up of Ensure your advertiser setup is complete (e.g. your , including setting up conversion targets and other configurations are done).

Information needed in the processTwo important pieces of information are needed later in the process later on:

  • advertiser Advertiser id

  • tracking Tracking domain

You can find both either These can be found in your advertiser’s configuration settings or under Trail > Tracking Tags.

Example:

...

2. Basics: Good to

...

Know

A typical tracking implementation usually means implementing involves two tags:

the onpage tag

...

  • Onpage Tag: Should be on every

...

  • public

...

  • page

...

  • and registers incoming clicks

...

the conversion tag

...

  • .

  • Conversion Tag: Should be on the thank-you page (or after a conversion event)

...

  • and registers

...

  • conversions.

Ingenious Technologies offers GTM tags that can replace the Onpage Tag and the eCommerce Conversion Tag. These can be implemented on the client side as well as on the server side.

...

both these tags, suitable for client-side and server-side implementations.

3. Downloading the Template

While our GTM community templates are still in the under review process and not yet in the Google Template Gallery, you they can easily access and download them be accessed and downloaded from our public Github repository. Once downloaded, you can seamlessly install them into your Google Tag Manager account.

Download the templatesInstructions:Do a right click with your mouse

  • Right-click and save the template files on your computer.

  • All files are

...

For sGTM:

4. Importing the

...

Template into GTM

Now import your template.tpl file to GTM.

...

  • Go to “Templates” in GTM and click “New”.

    Image Modified

...

  • Navigate to the

...

  • Menu and select “Import”

...

  • . Choose your template.tpl file to

...

  • import.

    Image Modified

  • Once imported, configure your tags as you would with any other GTM template.

Configuration &

...

Setup

Once you've imported the templates, configuring your tags is similar to any other GTM template. All Here's a breakdown of how the tags process data from different sources to create the tracking calls.
The sources from which the tag data is used are:

Data Sources for Tag Configuration:

  • Variables: These are directly from the tag configuration.

  • First party cookiesParty Cookies: Cookies stored on the user's browser related to your website.

  • DataLayer/Event data

Furthermore, default values for some variables are stored in the tag.

Setting up a variable is pretty straightforward. Here's how it works:

  • If you've already given Data: Information passed to GTM through the DataLayer or specific events triggered on the site.

Additionally, some variables have default values stored within the tag, ensuring there's always a value to fall back on.

Configuring your tags is similar to any other GTM template. Basically, just use your available placeholders.

Setting Up Variables

Configuring a variable in GTM is a seamless process:

  1. Pre-defined Value: If you've specified a value in the tag settings, that

...

  1. value is prioritized.

  2. DataLayer Check: In the absence of a pre-defined value, the tag checks the DataLayer for

...

  1. relevant information.

  2. Default Value: If no value is found in the above steps, the tag reverts to its default value.

This system allows for more intricate setups and makes testing specific features a breezeflexible system ensures accurate tracking, even in complex setups, and facilitates easier testing of specific features.

Onpage Tracking Tag

This tag replaces the Onpage tag. If it is a It stores click-in data with a clickId parameter , this is stored in a cookie. In additionAdditionally, tsc and tsv cookies are written and used in tracking requests.

...

Fields

Description

Default

Tracking Domain

The tracking domain can be a Third-Party Ingenious Tracking Domain, a First-Party Ingenious Tracking Domain or a GTM Serverside Domain. You can find it on the platform under "Partnerships -> Advertiser -> Settings".

proxy.ingenious.cloud

Advertiser Id

You can find the advertiser ID on the platform under "Partnerships -> Advertiser -> Settings". Do not use the internal ID (mid).

Conversion Id

Unique conversion identifier from your system

gtmss_{currentTimestampMillis}

Conversion Target

Defines an event and its type, for example Sale, Appinstall, Newslettersignup.

sale

Tracking Currency

Determines the currency for all amounts.

Unique Id

The unique ID is used to identify conversions during the validation process.

Discount Value

This is the total net discount value. '0.00' is allowed.

Discount Code

This is the applied discount code.

Basket

The contents of the shopping cart consist of items containing the following values in JSON format

Session Id

A session Id. The data type is string.

Click Ids

A comma-separated list of click IDs.

uses _iclid Cookie

Gdpr

Activates the general data protection regulation according to TCFv2.0

Gdpr Consent

The actual tcfv2.0 string

Site Id

A short description of the conversion page.

Timestamp

Usage for cache invalidation.

Current Timestamp in Millis

HTTP Location

The complete Browser-URL on which the tag was fired.

Customer Id

This specifies the internal customer ID from your system.

Customer New

This specifies a new or existing customer. Use value 'true' for new customer or 'false' for existing customer.

Pay Method

Customer payment method, for example 'credit card' or 'paypal'.

User Value 1

These fields are for free additional information. All formats are accepted.

User Value 2

These fields are for free additional information. All formats are accepted.

Example for server side implementation (sGTM)

...

The picture shows an exemplary implementation of the Ingenious Tags. The

In the provided illustration, we demonstrate a typical setup using Ingenious Tags:

  • Client-Side Installation: Both the Onpage Tag and the ECommerce Conversion Tag are

...

  • set up on the client side.

  • Tracking Requests: These

...

  • tags are tailored to direct their tracking requests to a server-side GTM container

...

  • . This container is reachable through a first-party subdomain.

...

  • Server-Side Processing: Upon receiving these tracking requests, the server-side Ingenious client

...

  • interprets them and transforms the requests into specific events.

  • Third-

...

  • Party Integration: These Ingenious events can then activate third-party tags, allowing for a more integrated tracking system.

  • Server-Side Firing: Notably, while the Ecommerce Conversion Tag

...

  • initiates from the server

...

  • side

...

  • , the Onpage Tag

...

  • also triggers server-side

...

  • , channeling the requests

...

  • further into the Ingenious infrastructure.