Tracking Internal Traffic



Similar documents
IMRG Peermap API Documentation V 5.0

Index. AdWords, 182 AJAX Cart, 129 Attribution, 174

LACKING TRACKING? STOP SLACKING. GOOGLE TAG MANAGER

White paper: Google Analytics 12 steps to advanced setup for developers

Getting A Google Account

Look in the top right of the screen and located the "Create an Account" button.

Demystifying Digital Introduction to Google Analytics. Mal Chia Digital Account Director

Getting Started Guide

Creating a New Search

Google Analytics Playbook. Version 0.92

Google Analytics Audit. Prepared For: Xxxxx

Google Analytics: Tracking Where a Visitor Goes on Your Web Site

Google Analytics tags migration to Google Tag Manager in a multi-site environment Monday, 28 September :55

Jenesis Software - Podcast Episode 2

Google Analytics Integration

Google Analytics Health Check Laying the foundations for successful analytics and optimisation

Is Your Google Analytics Data Accurate?

Getting Starting with Google Analytics. Summer Durrant IUPUI University Library Indiana Library Federation Conference November 14, 2012

TheComplete GoogleAnalytics PowerUserGuide

Module 8 Increase Conversions by 29% for EACH Branch through Technology! What You'll Learn in this Module...

Tracking Campaigns for Local Authorities. Lucian Glenny Web Analyst

Google Analytics for Robust Website Analytics. Deepika Verma, Depanwita Seal, Atul Pandey

Google Analytics Health Check

Google Analytics workbook

Moreketing. With great ease you can end up wasting a lot of time and money with online marketing. Causing

Getting started with Google Analytics and MailChimp is as simple as checking a box while you re building a campaign.

1 Which of the following questions can be answered using the goal flow report?

Example. Represent this as XML

Google Analytics: Connecting the Digital Marketing Dots. Becky Vardaman, Converge Consulting Jay Kelly, Converge Consulting

23 Ways to Sell More Using Social Media Marketing

Google AdWords customers can see their Analytics data from inside their AdWords account

Google Groups: What is Google Groups? About Google Groups and Google Contacts. Using, joining, creating, and sharing content with groups

ClickDimensions Quick Start Guide For Microsoft Dynamics CRM /1/2011 ClickDimensions

WEBINAR Implementation and Advanced Google Tag Manager

Google Analytics for Government Second Edition

Google AdWords TM Conversion Tracking Guide

What is PPC? PPC stands for Pay-Per-Click.

Deep analysis of a modern web site

Bome's Midi Translator

Here are our Pay per Click Advertising Packages:

Website analytics / statistics Monitoring and analysing the impact of web marketing

Lesson 7 - Website Administration

A send-a-friend application with ASP Smart Mailer

Local Search Results Success

Measure What Matters. don t Track What s Easy, track what s Important. kissmetrics.com

Step 1: Download and install the CudaSign for Salesforce app

6. Always pay something: Even if you can't pay all of your bills in full, always make the minimum payment by the due date.

Integrating KIMBIA form widget data with Google Analytics. What's Inside? KIMBIA. What s required...

YOU MISS 100% OF THE SHOTS YOU NEVER TAKE. GET THE MARKETING EDUCATION YOU NEED TO SUCCEED. Delhi School Of Internet Marketing

graphical Systems for Website Design

Google Analytics: Tracking Where a Visitor Goes on Your Web Site

Add Munchkin Tracking Code to Your Website

TTI Summer Forum London, Barbara Pezzi, Director Web Analytics & Search Optimization

1: 2: : 3.1: 3.2: 4: 5: & CAPTCHA

WEB ANALYTICS. Presented by Massimo Paolini MPThree Consulting Inc

Practical Web Analytics for User Experience

Installation & Configuration Guide User Provisioning Service 2.0

Generating Leads While You Sleep

How to use Google Analytics to track clicks from within s

Set internet safety parental controls with Windows

HOW DOES GOOGLE ANALYTICS HELP ME?

Setting Up Google Analytics Enhanced Ecommerce Using Google Tag Manager: A Step by Step Guide

Setup Guide

How to: Audit Your Google Analytics Installation

Lecture 9 Chrome Extensions

Selling Digital Goods Online

Ecommerce and PayPal Shopping Cart

Startup Guide. Version 2.3.9

Implementing Sub-domain & Cross-domain Tracking A Complete Guide

Web Analytics in China

How to move to your account with MAC Mail

Setting Up Your FTP Server

Paid Advertising on Search Engines: Tips on how to create and manage a successful pay-per-click marketing campaign

Web Analytics Understand your web visitors without web logs or page tags and keep all your data inside your firewall.

Future-proofed SEO for Magento stores

Optimizing WordPress Performance: Page Speed and Load Times. Doug Yuen

1. To start Installation: To install the reporting tool, copy the entire contents of the zip file to a directory of your choice. Run the exe.


Transcript - Episode 2: When Corporate Culture Threatens Data Security

How do I share a file with a friend or trusted associate?

Technical Brief: Google Analytics Integration

Software User Guide. WordPress Plugin Version 1.0

AR1100 Resistive Touch Screen Controller Guide

RCS Liferay Google Analytics Portlet Installation Guide

Web Analytics. Using emetrics to Guide Marketing Strategies on the Web

By Joe White. Contents. Part 1 The ground rules. Part 2 Choosing your keywords. Part 3 Getting your site listed. Part 4 Optimising your Site

Force.com Sites Implementation Guide

Transcription:

Tracking Internal Traffic with Google Tag Manager 88dvlp

Track Internal Traffic with Google Tag Manager Do you know GTM yet? Google Tag Manager is a powerful management tool to upgrade Google Analytics. Honestly, not many people care about it at all, judging from Google search volumes. The reason might be it seems superfluous to get into GTM when GA works just fine, and the learning curve...well, it can feel quite massive. For people in ecommerce though, or for anyone who derives a KPI from traffic or clicks, the hassle of starting with GTM is absolutely worth it. You get clearer data, less noise, less BS and less false judgement. However there is something that GTM can and GA cannot, which is relevant to most brick-and-mortar, recently digitized or fully digital distributed businesses. It is tracking of internal traffic in such a case where the internal traffic comes from multiple locations. Google Analytics Filters Yep, the more or less infamous GA filters. A classic setup of "All website data", all traffic unmodified, and "External traffic", with internal hits filtered out. While it is fairly easy to separate internal traffic by excluding any number of IPs, the same way is not going to work if you intend to have someone to look your people over their shoulder. That is, setting up a view that would filter in the internal traffic only is possible only if you are tracking a single IP or IP range. It's the way the Google Analytics filters work: The exclude filter will gradually loop through all the statements and will only include the current visitor into the view if it doesn't fall under any of the exclusion filters. The include filter, on the other hand, will only track the visitor if all of the include conditions are matched. Therefore it's impossible to have a single view to look at the traffic from your office in London and in Page 1 of 6

Singapore - you've got to get a separate view for each IP range. It probably goes without saying that your Google Analytics will turn into mayhem for more than two IP addresses. Solution? With Google Tag Manager you can retrieve user's IP and lead it into an if - else loop to see if it matches any of the IP addresses defined by you. If so, label the hit as internal. If not, label it external. Then send the information to GA and create view based on the label: one view for all hits labeled internal, one view for all hits labeled external. Easy. Let's see how you go about it. Tracking Internal Traffic with Tag Manager We'll do this with Google Tag Manager v2. We've got Variables (static expressions), Triggers (conditions as to where to fire labeling) and Tags (this is where most of the work happens). Variables The only static variable you need to set is a data layer variable called getip. We'll use this variable to retrieve the visitors IP address. Set the variable name to ipaddress and choose some random default value like none. Page 2 of 6

Events The only event you are setting up is gtm. Set it's name to gtm.js. This will mark the moment when GTM loads its stuff and we can proceed to measuring the precious data. Page 3 of 6

Tags First off, set up a basic all page view tracking tag. As the GTM snippet will replace the GA JavaScript used for all tracking, you need this general tag to measure the unfiltered traffic in "All website data". The type of tag is Universal Analytics, which is a new 2015 version of Google Analytics. Most definitely you'll have Universal Analytics by now - All GA accounts were autoupdated to the UA type this year. So, all you need is your tracking ID from Analytics. Set the tag to fire on all pages. Now for the tuff stuff. Create a Custom HTML tag with some cool name like IP Test. The custom HTML type comes with a big textarea into which copypaste the following code, exchanging the IP addresses for your internal IPs. Note that you need to have static IPs. There is a way to do that for IP ranges but as VPNs with a static address are widely used, I won't cover that here. Indeed, feel free to add or leave out the or-statements getip == "...", depending on how many IPs you need to check. I have tried it with some 14 IPs so you don't have to be shy. Page 4 of 6

The IP test should fire on GTM load. That means, set the trigger to gtm. <script> var getip = {{getip}}; // Retrieves the IP from the data layer if (getip == "11.222.333.444" getip == "11.221.331.441" getip == "11.220.330.440" ) { datalayer.push({"event": "internal"}); } else { datalayer.push({"event": "external"}); } </script> The task of that code snippet is to retrieve the IP address of your visitor and label it. For the labeling we use Events, already known from Google Analytics alone. Quite traditionally events are used to measure how many people clicked a link or displayed translated content. But thanks to GTM events can be used on load, too. What we need to do now is to have GA detect the occurrence of the event. For that you need to set up a Universal Analytics tag. Now, if you only want to track internal vs. all traffic, you only need one more tag. If you want a setup of All / Internal only / External only, you need two tags. The final analytics tag will link your GA account with the labeling on your website. Simply fill in your analytics ID, track the event categorized as internal or external, and let the tag fire on all pages. Page 5 of 6

The final step takes place in Google Analytics - setting up the views. Don't forget to keep one unmodified, unfiltered and completely natural view to have some baseline for comparison. For the rest of it, create a new view with a single custom filter. It should only include traffic with an event called internal (or external, whatever you are setting up). Written by J. for 88development / hq@88dvlp.com / Bitcoin is not evil. Page 6 of 6