Google Analytics: virtual stalking with custom variables reports

We are using the "New" Analytics interface.

If you are using the Google Analytics plugin for Joomla, or some custom built system to track individual users behavior in Google Analytics, you may want to take your “virtual stalking” to a whole new level of creepiness. All you have to do is create advanced segments based on Custom Variable values found in your Custom Variable reports — Don’t worry, they’re pretty easy and I’ll walk you through it. While I think it is more valuable to measure a segmented group, I can imagine plenty of scenarios where you may want to dig in and see precisely what a specific individual is doing. Lets get started!

Creating a custom variable advanced segment

  1.  In Google Analytics, click Visitors > Custom Variables
  2. If you are using the Google Analytics plugin for Joomla click on the “Registered Users” variable under “Custom Variables (Key 1)”
  3. From there you will see a list of user names that are being tracked in Google Analytics. Find the user you want to track and copy down there user name.
  4. Near the top of the page, you’ll see “advanced segments”. Click it and then the “+ add New Custom Segment”
  5. From the custom segment widget choose, “Include” > “Custom Variable (Value 01)” > “Exactly matching” > “{USER NAME}” (Make sure you replace {USER NAME} with the actual user name you found in step 3.)
  6. Give your report a good name. Something you will help you remember what the segment reports on like, “Virtual stalking Mr. Buttons”. Click the “apply” button and your done!

Now you can see which pages "Mr. buttons" has been visiting

Now the only data showing in Google Analytics is from this one user. From here you can find out all kinds of detailed information about the users behavior on your site. For example, you can click “Content > Pages” and see a list of all of the page they’ve visited. The number of times they’ve viewed those pages, the time spent looking at each page, etc.

This kind of analysis allows you to do very specific visitor behavior monitoring but be careful — You can quickly get into privacy issues. Make sure your sites privacy policies are up to date and that they allow for individual tracking.

If you find the above method helpful, I’d love to here how and why your using it.

Do you have privacy concerns with this level of monitoring? I’d love to here your reasons too!

Joomla!1.5 Google Analytics Plugin w/ registered user tracking

I needed a Google Analytics plugin for Joomla!1.5 that would use the latest asynchronous code, play well with other plugins, and give me the ability to track the behavior of individuals who are logged into the site. Instead of trying to up my last FCGA plugin, I’ve decided to completely rewrite the FreshClicks’ Google Analytics plugin from scratch.

FreshClicks’ Google Analytics plugin features:

  • New Asynchronous tracking code: Enhances the speed in which the tracking code is loaded. With this version of the tracking code, you can also place the Analytics snippet higher in the page without delaying subsequent content from rendering.
  • New GATC code placement: Your GATC code will appear in the new preferred location in the <head> of the document rather than near the closing </body> tag.
  • Track registered individuals: This optional feature gives you the ability to easily see the individual behavior of all of your registered users in Google Analytics using their new Custom Variables function.
  • Native Joomla! 1.5 code: the plugin was written in Joomla’s new, more object-orientated format and should play very nicely with other Joomla plugins.

Why track registered individuals?

There are lots of situations where tracking individual behavior on your website could be beneficial. If, for example you run a training website, and you expect your students to read a particular page, or spend 20 minutes a day on the site, you can easily see which of your students are participating.

How the tracking works

If you have activated the “Track registered users” option in the plugin’s administrator interface, and the plugin detects that a registered user is logged in, it will set a custom Variable in Google analytics. Initially I was going to create a user defined value, but Google Analytics recently depreciated their _setVar() function in favor of the more powerful Custom Variables, _setCustomVar() function. This new function gives you much more flexibility than the basic user defined options available in _setVar().

In FreshClicks’ Google Analytics 2.0 I set the Custom Variable as follows:

  • Index: 1 – This is the slot in the custom variable report where the data will be stored. Currently they give you 1-5 slots. If you are already using slot 1, you may need to modify this plugin.
  • Name: RegisteredUsers – This is a string that identifies the custom variable and appears in the top-level Custom Variables report of the Analytics reports.
  • Value: {UserName} – This variable loads in the users name and it is paired with the name, “RegisteredUsers”
  • opt_scope: 1 – This custom variable is set at the visitor level and is associated with a visitor.

Viewing your registered Users in Google Analytics:

You can see the behavior of your users by logging into your Google Analytics report and going to Visitors>Custom Variables

From there you will see the column “Custom Variable” with the value “RegisteredUsers”. Clicking on the “RegisteredUsers” link will bring up the report on individual users. You can drill down further and discover all kinds of interesting bits of information about your users.

Free to use and distribute

You are free to use and distribute this application as you wish. I just ask that you leave the attributions in place.

Also, it would be great to hear what you think of the Plugin, how your organization is making use of it, and suggestions for future iterations.

Download:

Google Analytics Asynchronous Tracking for Joomla 1.5

I’ve release a new and improved version of this app! So stop reading this old article and check out it out, Google Analytics Joomla plugin v.2.0

Joomla Google Analytics Asynchronous TrackingIt has long been rumored that Google was going to start ranking pages based on page load time. Think about it, if your page takes longer to load then visitors won’t get to see as many pages. Less pages mean that Google doesn’t get to serve as many advertisements to those visitors and they end up making less revenue.

Google asynchronous tracking optimizes how browsers load the Google Analytics JavaScript, so its impact on the user experience is minimized. It also allows you to put your Analytics snippet higher in the page without delaying subsequent content from rendering. Visitors get to see your pages faster, and Google gets to serve more adds – everybody wins!

I put together a new Joomla 1.5 plugin so that you can easily add the new tracking code to your Joomla powered site. Continue reading

Did you just break your Google Analytics Installation?

How to verify that Google Analytics is capturing data properly

noCutWireWith 90+ standard reports, advanced segmentation, custom reporting, and plenty of other amazing enterprise features, I’m not breaking any new ground here by saying that Google Analytics is a great web analytics solution. It has always bothered me though, that without live tracking it can be difficult to troubleshoot, diagnose problems, confirm that you properly set up your eCommerce conversion tracking or some other custom JavaScript implementation. Waiting 8-12 hours to see if data is still being collected, or if your “test transaction” is being reflected in your reports is no way to work in an enterprise environment.

Continue reading

Barack Obama uses Google Analytics

obama analyticsAs someone who is intrinsically interested in pulling back the curtain and seeing what’s going on behind the scene, I was somewhat surprised by what I found while looking through the source code of the president elect’s web site www.barackobama.com. It seems that his campaign is making great use of Google Analytics and Google Web Optimizer.

You can see areas where they have changed code and stopped web site functions in order to improve website retension:

/* Commenting out to try to fix exit and bounce rates in Google Analytics */

What I find most encouraging is that our new president seems to have surrounded himself with smart people.¬† Including people who know how to leverage technology like Google’s Website Optimizer and Analytics¬†to¬†improve their campaign, while at the same time keeping down their overhead.

Mix n' Match Analytics Campaign Tracking

Google Analytics alternative campaign trackingHow to use both Google Analytics’ built in campaign tracking and your own custom campaign tracking variables.

If your campaign links already contains tracking variables you can map these variables to Google Analytics by modifying the Google tracking code. This works great unless some of your campaigns contain Google Analytics tracking variables and other campaigns contain your own custom variables. If you find yourself trying to track standard Google Analytics campaign links and your own modified campaign variables this is a simple solution using custom JavaScript. Continue reading

Website Performance by Language

helloHow well does your website perform based on the visitor’s language preferences? Is there a large portion of your traffic that is not being well served because of a language barrier? Do you have multiple language support on your website and want to know if it is effective?

Web analytics can answer all of those questions, and it can show you how effective your marketing efforts are by visitor language.

I will be using Google Analytics, but you can use most analytics tools to easily look at visits and purchases by the language setting of the visitor’s browsers. Continue reading

Initial Referrer: The missing metric in Google analytics

Google\'s missing metricWhen it comes to tracking your marketing efforts it is important to consider the number of ways prospects will come into contact with your marketing collateral. The idea (sometimes known as multi-touch marketing) is that most of your prospects will not convert the first time they come into contact with your products/service, but are likely to be exposed to multiple messages via the corporate website, a banner ad, word of mouth et cetera.

Tracking multiple touches in Google Analytics is easy and they offer many ways at refining the data to get a clear picture of the different mediums prospects are using to visit your site, with one exception, the conversion. Google has decided that the last touch, the source that turns a prospect into a customer (or achieves a goal) is the touch that should get credit for the conversion. Which works out pretty good in most cases except it doesn’t factor in human behavior and the use of Search Engines.

The problem: Continue reading

Tracking Corporate Activity with Google Analytics

Many companies find it difficult to measure the interest level of a prospect, create an opportunity orGoogle Analytics Network Location determine their marketing effectiveness. A corporate website is a great resource for gathering this information but only if you can convenience a visitor to self-identify by having them fill out a form or calling a sales number.

Using Google Analytics you can track most company’s visits to your website. Continue reading