google tag manager tutorial 2017
TRANSCRIPT
Google TAG Manager Tutorial
How Can we Track Digital Downloads
Tracking website resource downloads (i.e. tracking PDF downloads, white paper downloads, media downloads, statistical reports) allows the Google Analytic Administrator to track the frequency and capacity at which users are downloading documents/files off your site.
Google Tag Manager
Google Tag Manager (GTM) is a free solution, introduced in October 2012.GTM is for managing Google Analytic, advertising and other tracking tags across your website or multiple websites.
Tag manager
Since we’re using Google Analytics as the tracking platform, we’ll need the following ingredients to make this setup work:
Auto-Event Variable for click URL path – to capture the URL path of the clicked link
Event Tag – which fires when a downloadable file link is clicked, and sends the Event to Google Analytics
Event Trigger – which uses the Link Click trigger type and checks if URL path contains any of the extensions you want to track
To start Auto-Event Variable, and follow these steps:
Create new Variable of type Auto-Event VariableName it Click URL PathChoose Element URL as the Variable typeChoose Path as the Component Type
Auto event tracking “Triggers”
• clicks• link clicks• form submission• history• error
Google Tag manager Account Creation
Google Tag manager Dashboard
Steps to create Event tag:
Steps to create Event tag:
Steps To intergrade GTM with Website
To intergrade Tag manager with websiteCopy the code generated while creating Account on tag manager.Paste those codes on website as high in those two <Head> and <Body> tags.Cross check is that code placed in website.
Another way to intergrade Tag Manager with Website
The Google Tag Manager plugin adds a field to the existing General Settings page for the ID and outputs.This plugin makes it even easier to use Google Tag Manager, adding all the code itself all you need to do is provide the Account ID
How to install
Upload google-tag-manager.php to the /wp-content/plugins/ directoryActivate the plugin through the 'Plugins' menu in WordPressGo to Settings > General and set the ID from your Google Tag Manager account.
Steps to create Event Trigger
• Create a new Trigger, and choose Click as the Event Type• Name it Event – Link Click on downloadable• Choose Link Click as the Trigger Type• Select Wait for Tags and Check Validation if you wish• If you selected either Wait for Tags or Check Validation, choose Page URL
matches RegEx .* as a filter in the “Enable When” step of the Link Click Trigger creation
• For “Fire On”, add the following condition: Click URL Path matches RegEx\.(ext1|ext2|ext3)$
It should look like this:
• For example, if I want to track all PDF, XLSX, PNG, and DOCX downloads on my site, the regular expression would look like this:
• \.(pdf|xlsx|png|docx)$
• This would match any Click URL Path which ends in .pdf, .xlsx, .png, or .docx.
• If your site has file extensions in capital letters (PNG, XLSX), you’ll need to change the operator from matches RegEx to matches RegEx (ignore case).
Important Notes:
Google analytics Event tracking