Connecting Google Tag Manager
Google Tag Manager (or GTM) is a free marketing instrument to manage tags on sites.
GTM is a tag management system. It provides you a code segment that you should add to all pages of your site. Once it's been added, you can manage all the tags in the Google Tag Manager interface instead of setting up and updating them manually. This is especially handy when you have multiple advertising campaigns.
Here's a step-by-step guide on how to connect and use GTM with your Flexbe site.
How to install Google Tag Manager on your site
Go to Google Tag Manager and click Create Account. If you don't have a Google account, you'll need to create one first.
Fill in the Account Setup info.
Read the Terms of Service Agreement and give your consent to the data processing terms.
After that you'll get code segments that will be automatically added to the head and body of each page of your Flexbe site.
Your GTM ID is already specified in the code segments but you can also copy it from the dashboard.
Go to the Settings of your Flexbe site → Analytics → Google Tag Manager.
Paste the copied GTM ID and complete the integration setup.
How to create tags in Google Tag Manager
Tags are snippets of JavaScript code. When you add them to your site, the code records the events on the page and sends them to your analytics system.
You set up the types of events that the snippet should record. For example, when users submit forms or click a certain button. Such events (i.e. users' actions) are called triggers.
1. Click Add a new tag. You should always create a new tag when adding a new service or counter.
2. Name your tag. Specific tag names let you easily find tag that you need.
— Tag Configuration is a tag type
— Triggering is an event that happens on the site
— Triggering is an event that happens on the site
3. Tag Configuration
Choose a tag type, for example, Google Analytics: Universal Analytics. You should have a connected counter to select this analytics system.
Select the Track Type:
- Page View: if you want to know what pages users visit
- Event: to track some users' actions (button clicks, form submission, etc.)
- Transaction: a report on made purchases (amount, average basket, time between choosing an item and its purchasing, etc)
- Social: to evaluate popularity of your content. If you have social media buttons on the site, you can track the amount of likes and reposts.
- Timing: if you need to know the amount of time before a certain event occurs on the site
- Decorate Link: to track downloading files from the site and following cross-domain links
- Decorate Form: to track actions with forms
Choose Select Settings Variable in the Google Analytics Settings.
Now you need to get a Tracking ID. Go to your Google Analytics account → Admin → Property Settings → Tracking Id.
If you leave Cookie Domain as auto, then Google Analytics will automatically select a domain.
Then click Save.
4. Choose All Pages in Triggering.
5. Click Submit.
Fill in the submission form and click Publish. A tag becomes active after the publication.