Problem: You have media like an audio file, or a small video, that you want to put on your website, and you want to track whether people are listening or watching to it inside Google Analytics, or even make it a Goal.
Solution: Use jPlayer and the code below to track your jPlayer events into Google Analytics.
Wait a Tick: What’s with the Bob Ross photo?
“This thing all things devours:
Birds, beasts, trees, flowers;
Gnaws iron, bites steel;
Grinds hard stones to meal;
Slays king, ruins town,
And beats high mountain down.“
The answer to Gollum’s riddle was of course time. It devours all things. It doesn’t do it quickly, it does it drip by drip like water. Throw water at a rock and it splashes and makes the rock wet. Throw water at a rock every second of every day for a thousand years and the rock becomes sand. The slow steady drip of time wears away at everything.
Real-Time data is like watching a river in that respect. It’s watching the steady flow of time and visitors across your site. Ebbing and flowing, changing and reacting. If a standard report in Google Analytics is a table of data presented to you saying “This many cubic feet of water passed us in the past day, including 4 barges, 2 pleasure craft, and an otter.” then a Real-Time report is sitting on a rock watching the river, listening to the sounds. And when things change, you can react quickly. (more…)
“There are three things that matter in property: location, location, location.”
The saying “location, location, location” has been attributed to a few different people (primarily Lord Harold Samuel and William Dillard), with apparently no clear indication of who said it first, though the paper of record found the term “location, location, location” in a real estate ad in the Chicago Tribune listed before either man had exited puberty. Given the word “location” is a direct adoption from latin, it’s possible that thousands of years ago a Roman real estate magnate when asked why the Hippodrome was doing so well replied “location, location, location” verbatim. (more…)
Observational biases often infect analysis, and can convince businesses to make incorrect assessments of their website data. In 2010, David H. Freedman coined the term “Streetlight Effect” for an observational bias represented in an old humorous science anecdote. This Streetlight Effect can very easily affect the insight gained from Google Analytics, should you not be aware of it, and not take measures to properly shed light on your data.
What is the Streetlight Effect?
The “Streetlight Effect” is named after an old late night parable told by scientists gathered ’round the flickering bunsen burner’. It goes as such: Late one night, a rookie police officer came across a stumbling visibly drunk man in a parking lot, intently examining the ground. “What are you doing, drunk man,” asked the police officer. “I dropped my wallet,” the drunk man slurred back at the police officer, reeking of gin and stale cigarette smoke. (blog author note: I’m trying to give the story a little more character than it normally gets) The police officer looks around and seeing no wallet asks, “Are you sure you lost your wallet here?” The drunk looks at the officer and belches out ”No, actually I dropped it over in that dark alley.” The rookie officer is stunned. “If you dropped your wallet in the alley, why are you looking for it here in the parking lot?” he asked incredulously. “The light here’s better,” hiccuped the drunk. (more…)
Recently, over the holidays with family, I participated in a conversation where I mentioned that the data supported my position. I made the mistake of saying “Statistically….” which as you might imagine, in a holiday family setting, is bound to generate at least one comment about how you can prove anything with statistics, and a dismissal of a scientific study, without reading it, because it contains *GASP* data.
“Figures often beguile me, particularly when I have the arranging of them myself; in which case the remark attributed to Disraeli would often apply with justice and force: ‘There are three kinds of lies: lies, damned lies, and statistics.’” – Mark Twain
Interestingly, there is no record of Benjamin Disraeli saying that, so the attribution of that quote by Twain to Disraeli itself was a lie. (more…)
Even Vulcans can be afflicted with dreaded cognitive biases.
The goal of content testing different variations of web pages during a conversion optimization experiment is to get as accurate a result as possible, in order to say which variation is the best possible one.
Just because we’re testing, however, doesn’t mean we can’t be wary of cognitive biases which can filter into our experiments. Just because you put up two pages, release them to the public, and then gauge reaction, doesn’t mean that you’re not subjecting those tests to your own or others’ perceptual distortions. Watch out for these cognitive biases when forming content experiments. (more…)
Part 2 in my unofficial “You’re Probably Doing It Wrong” series. Read the first part about using Google Analytics to gain Insights.
The Cruel Tutelage of Sayf Sharif
You are wrong. This is the first rule. You think you know what the right thing to do on your website is? You are wrong. You think you know what to do to properly improve your digital presence? You are wrong. You think you know what your users want? You are wrong. Before you can truly begin to optimize your website and your online digital presence and marketing you must come to this realization. You must be unmade before you can build yourself back up. You must know that everything you think you know to be good, and right, is wrong.
I emphasize this with a beard swish.
Gaining Insights With Google Analytics
There are four steps to really taking advantage of your data. Measurement, Reporting, Analysis, and Implementation. It’s too easy to fall into the trap of implementing your data tracking, and then measuring and reporting on that data, but never really analyzing or acting on it. The entire point of your implementation of tracking, and measuring it, should be to use that data to improve your website’s performance. (more…)
What does this sweater have to do with universal analytics? Read on…
Last week I had the pleasure of attending the Google Analytics Summit for 2012 in Mountain View, California. It really was a great two days, and the Google Analytics folks did a superb job of hosting a bunch of nerds interested in their product. There were tons of announcements, particularly on the first day, and the main one involved the biggest change to Google Analytics since it transitioned from the old Urchin.
You can read all about it on various blogs covering the event, particularly Google Analytics own blog. So what are the key points?
Easy and Fast Measurement
Google Analytics had up to this point stored a whole bunch of it’s information within the user cookies, which constantly would get passed to GA on every pageview. Use premium with 10-20 custom variables on a visitor? That was getting passed with every page hit.
One of the biggest innovations with the new setup, is that there will be only 1 simple cookie with very basic information in it. This will speed up page times of the entire internet with the sheer drop in how much data gets passed on every page hit. All the data now kept in cookies will now reside on the Google Analytics servers, allowing a whole bunch of other things that we couldn’t do before, including customizing our sessions server side. Right now sessions are 30 minutes long and are in cookies. Get up and go chat with someone at the water cooler for 30 minutes and come back to your computer? New session. Now you can set your own session lengths and define them yourself up to 4 hours long. You can also put time limits on your campaigns of up to 2 years. In addition they’ll be opening up more code libraries and tracking api’s for better interactions.
User ID Control
The whole new Universal Analytics is based on users, not visits. It’s a key distinction. We’re interested in user behavior overall, not behavior of disconnected visits or sessions. We do this by having an override ID on every device interacting with GA. Sure there are issues like we still need to identify people via a login or some other means, but once we can do so, we can now see specific users across devices very easily.
Updated as of January 23rd, 2014 with version 6
Recently I was tasked with tracking YouTube videos on a website using Events in Google Analytics, and I was not particularly thrilled with the options. Either old blog posts from even our site, or posts that didn’t lay out any specifics on how to do it, or posts that listed basically how the YouTube player API instructs people to track videos. Most from a year or even two ago. Which was all well and good, until I realized that I was dealing with possibly hundreds of pages, with a variable amount of videos on them.
So I wrote it. (more…)