<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">

<channel>
	<title>Back of the Napkyn</title>
	
	<link>http://www.napkyn.com</link>
	<description>Napkyn's web analytics blog covers strategy for measuring and managing website performance and success. Back of the Napkyn is written by a team of analysts who manage web and business analysis for small, medium and large businesses.</description>
	<lastBuildDate>Mon, 05 Dec 2011 14:29:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/backofthenapkyn" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="backofthenapkyn" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">backofthenapkyn</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>‘Dashboard’ is not a dirty word: Napkyn’s defense of an overused term</title>
		<link>http://www.napkyn.com/blog/2011/12/05/dashboard/</link>
		<comments>http://www.napkyn.com/blog/2011/12/05/dashboard/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 14:29:02 +0000</pubDate>
		<dc:creator>Jim Cain</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Napkyn Analyst Program]]></category>
		<category><![CDATA[Web Analytics]]></category>
		<category><![CDATA[dashboards]]></category>
		<category><![CDATA[reporting]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=665</guid>
		<description><![CDATA[There are a lot of terms that get badly abused – to the point where they are annoying to hear. A few personal examples would be the words ‘cloud’, ‘big data’, ‘guru’ and using the label “2.0” for anything other than a software release. The word “social” is border-line with me right now as well. [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of terms that get badly abused – to the point where they are annoying to hear. A few personal examples would be the words ‘cloud’, ‘big data’, ‘guru’ and using the label “2.0” for anything other than a software release. The word “social” is border-line with me right now as well.</p>
<p>The word “dashboard” is not on my hate list, but it seems to be on a lot of other people&#8217;s. Everything has a dashboard now, from software products, to consulting deliverables (we do them weekly for our clients), even video games and LinkedIn have dashboards in them.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-668" src="http://www.napkyn.com/n/wp-content/uploads/2011/12/dashboard.jpg" alt="" width="540" height="228" /></p>
<p>So, I get why the thought of another dashboard would make many people want to barf, but it doesn’t make me think they are any less vital to being successful with data.</p>
<p>A few points below that you should consider before you give up on dashboards (I had a great Karate Kid reference I was going to make, but I have been informed that I need to dial back on the 80s film references…).</p>
<p>The obvious point:</p>
<p><strong>A dashboard you don’t love wasn’t built properly</strong>: A good dashboard is supposed to provide ‘at a glance’ understanding of something you care about, giving you the ability to have increased understanding you wouldn’t have achieved any other way. If you are indifferent to a dashboard, it sucks. Get rid of it and have one crafted to your exact needs.</p>
<p>Less obvious but critical points:</p>
<p>1) <strong>Dashboards create commonality of language and goals</strong>: Ever notice that sales and marketing people use different words to describe the same thing? Ever notice that they don’t tend to get along? A well crafted (and agreed on) dashboard has the ability to create significant alignment in an organization, not just between different departments, but between different levels of the org chart. In helping a senior stakeholder build an exciting and relevant performance dashboard, we are very educated on where to focus our analysis on their behalf.</p>
<p>2) <strong>Dashboards decrease “weaponized” analysis</strong>: In organizations without proper executive dashboarding (so most of them…), the lack of common language, goals and structure creates “analysis anarchy”. This means that execs often ask the analysis to provide reports and data to support an idea or initiative. We call these reports ‘weaponized’ because they are only being created to provide data support to help win an argument, i.e., “Build me a report that shows how marketing has been wasting money on leads for the last 6 months”. Competing on analytics is supposed to be an external activity, not an internal one. It’s very hard to weaponize your reports when the whole team ultimately works again an agreed on performance framework.</p>
<p>3) <strong>Good Dashboards maximize analyst value and contribution</strong>: the lack of structure around data consumption is the Petri dish that dumb questions grow in (would that mean ‘bad culture’?). Many of the <em>ad-hoc</em> questions that web analysts get are based on a lack of overall understanding about digital. We find that instituting an appropriate and valuable weekly performance dashboard cuts down on <em>ad-hoc</em> requests significantly, and increases the quality of the questions being asked. Good questions tend to be harder to answer; your analyst will still be 100% utilized, but purely on creating insights of high business value.</p>
<p>If you are making plans for 2012, and someone comes out against using a dashboard, realize that they are tired of the abuse of the term, not the value proposition.</p>
<p>Just call it something cooler, like a ‘executive performance visualization’. At the end of the day, a well executed dashboard can have both corporate and competitive effects that are far reaching.</p>
<p>Cheers,</p>
<p>Jim</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/12/05/dashboard/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pop Goes Business Analysis, Part IV: Sam Malone, the Feel-Good Diplomat</title>
		<link>http://www.napkyn.com/blog/2011/10/14/pop-analytics-sam-malone/</link>
		<comments>http://www.napkyn.com/blog/2011/10/14/pop-analytics-sam-malone/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 14:35:39 +0000</pubDate>
		<dc:creator>Jim Cain</dc:creator>
				<category><![CDATA[Napkyn Analyst Program]]></category>
		<category><![CDATA[Web Analytics]]></category>
		<category><![CDATA[Cheers]]></category>
		<category><![CDATA[emetrics]]></category>
		<category><![CDATA[pop goes business analysis]]></category>
		<category><![CDATA[Sam Malone]]></category>
		<category><![CDATA[stakeholder needs]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=645</guid>
		<description><![CDATA[As we get closer to eMetrics NYC, and my presentation on Turning Executives into Analysis Believers, it&#8217;s time to add one of the final pop culture touchstones we talk about at Napkyn Global Headquarters. A quick recap on past write-ups: Batman: The boss, not the analyst.  A great executive-facing analyst knows who the hero of [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-647" style="float: right; margin: 0 0 1em 1em;" title="Sam Malone" src="http://www.napkyn.com/n/wp-content/uploads/2011/10/Sam-Malone.jpg" alt="" width="200" height="301" />As we get closer to <a href="http://www.emetrics.org/newyork/">eMetrics NYC</a>, and my presentation on Turning Executives into Analysis Believers, it&#8217;s time to add one of the final pop culture touchstones we talk about at Napkyn Global Headquarters.</p>
<p>A quick recap on past write-ups:</p>
<ul>
<li><a href="http://www.napkyn.com/blog/2011/03/29/alfred-robin-analysts/">Batman</a>: The boss, not the analyst.  A great executive-facing analyst knows who the hero of the story is, and works to empower them, not overshadow them.</li>
<li><a href="http://www.napkyn.com/blog/2011/07/12/pop-goes-business-analysis-part-ii-doc-brown/">Doc Brown</a>:  Great analysts will hack together what they need from what they have, not just stay inside a given tool.  They will also focus on the temporal nature of measurement, using the past and the present to predict the future.</li>
<li><a href="http://www.napkyn.com/blog/2011/08/17/columbo-business-analyst/">Columbo</a>:  Relevant analysis can&#8217;t exist in a vacuum.  Constant interviewing of your internal stakeholders will help you learn their language and motivations, and ensure that your analysis is timely and relevant.</li>
</ul>
<p>This week we are focusing on one of the least analytical and perhaps one of the most important of our pop culture references: Sam Malone from <em>Cheers</em>.</p>
<p><span id="more-645"></span>For those of you unfamiliar with <em>Cheers</em> (it was on TV for over a decade&#8230;), it was a sitcom about a group of regulars at a bar in Boston.  Sam was the central character of the show. He was the owner of Cheers and the mainstay behind the bar.</p>
<p>Sam showcased all the qualities inherent in the &#8216;perfect bartender&#8217; stereotype.  He was a charmer and an amazing listener; strangers would often open up and tell him their problems (which he would then try and fix).  He had a great memory for drink orders, bringing people what they wanted before they asked for it.  This pathos and attention to detail is the glue that holds the motley group of regulars together, and creates a community within the bar.</p>
<p>I am guessing that Sam Malone would be a crappy analyst, at least from a data modeling perspective.  I also guarantee that he would be very effective at knowing what his internal stakeholders needed, and create the kinds of relationships internally that would allow his findings to be both appreciated and used to best effect.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-649" title="Sam-Malone-Cheers" src="http://www.napkyn.com/n/wp-content/uploads/2011/10/Sam-Malone-Cheers.jpg" alt="" width="500" height="275" /></p>
<p>As a real world parallel, Napkyn has become the analyst several times in organizations where there is interdepartmental conflict &#8211; sales hates marketing; eCommerce doesn&#8217;t agree with Merchandising.  Initially, we are often asked to ‘weaponize&#8217; our reports, to frame the data in such a way where one group looks good and the other looks bad.<br />
<a href="http://www.emetrics.org/newyork/"><img class="alignnone size-full wp-image-636" style="float: right; margin: 0 0 1em 1em;" title="Hear us Speak at eMetrics New York" src="http://www.napkyn.com/n/wp-content/uploads/2011/08/emetrics-ny-2011.jpg" alt="" width="125" height="125" /></a><br />
These situations are where the Sam Malone reference comes out.  By being positive and proactive with all stakeholders, we try to do analysis that creates positive impact through alignment.  The analyst has the ability to become the common person bringing together that motley group of personalities, which doesn&#8217;t just have the most impact on the business, it also positions the analyst in a much more important light than just someone who builds reports.</p>
<p>Getting an executive to care about analysis can sometimes have a whole lot more to do with customer service than Microsoft Excel.</p>
<p>Cheers,</p>
<p>Jim</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/10/14/pop-analytics-sam-malone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pop Goes Business Analysis, Part III: Columbo, The Ingenuous Inquisitioner</title>
		<link>http://www.napkyn.com/blog/2011/08/17/columbo-business-analyst/</link>
		<comments>http://www.napkyn.com/blog/2011/08/17/columbo-business-analyst/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 18:32:28 +0000</pubDate>
		<dc:creator>Jim Cain</dc:creator>
				<category><![CDATA[Napkyn Analyst Program]]></category>
		<category><![CDATA[Web Analytics]]></category>
		<category><![CDATA[analysis stakeholders]]></category>
		<category><![CDATA[columbo]]></category>
		<category><![CDATA[emetrics]]></category>
		<category><![CDATA[pop goes business analytics]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=635</guid>
		<description><![CDATA[The good feedback continues on our series of pop culture references, so much so that I will be touching on this theme in a presentation I am giving at eMetrics NYC (click the logo at the end of this post to sign up, it’s an amazing event). I’m awfully pleased that this series seems to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-637" style="float: right; margin: 0 0 1em 1em;" title="Columbo" src="http://www.napkyn.com/n/wp-content/uploads/2011/08/columbo.jpg" alt="" width="184" height="245" />The good feedback continues on our series of pop culture references, so much so that I will be touching on this theme in a presentation I am giving at <a href="http://www.emetrics.org/newyork/">eMetrics NYC</a> (click the logo at the end of this post to sign up, it’s an amazing event).</p>
<p>I’m awfully pleased that this series seems to resonate in the measurement community, because I know a lot more about TV shows from the 80s than I do about how eVars and event scripts work.  And for those of you just tuning in, that’s the point here.</p>
<p>A good story, listened to by the right person, will trump a spreadsheet every time.</p>
<p>Now having the story be accurate, and earning the right to have the appropriate person listen, are hard to do.  This week’s pop culture reference is a personal favorite of mine, and once again is a reference that I make continually at the office, especially when training new analysts on how to engage their new executive stakeholders through the <a href="http://www.napkyn.com/analyst-program/">Analyst Program</a>.</p>
<p>Unfortunately, I also tend to have to lend them the first season of the show, because anyone under the age of 30 has never heard of <em>Columbo</em>.</p>
<p><span id="more-635"></span><img class="alignnone size-full wp-image-638" style="float: left; margin: 0 1em 1em 0;" title="Columbo" src="http://www.napkyn.com/n/wp-content/uploads/2011/08/columbo-2.jpg" alt="" width="160" height="213" />For those of you who haven’t seen this show, it’s a murder mystery TV series that was on from the late &#8217;60s to the mid &#8217;90s, and stars the amazing Peter Falk as Columbo, a quirky homicide detective.</p>
<p>Unlike most detective shows (think Law and Order), Columbo was not a menacing, tough talking inquisitioner.  He played a disheveled, confused looking, gunless detective who would often ask obvious questions. Every single episode, he would find the murderer by piecing together often tiny details put together over the course of his seemingly innocuous interviews.</p>
<p>Columbo would have made one heck of a good business analyst, and he is my go to reference when discussing how relevant our work is to a particular executive.  Here are the key points about Columbo that make him such a valuable example.</p>
<p><strong>Constant Interviewing Saves the Day</strong>:  Columbo is the opposite of the team at CSI, where they use math and science to catch the killer.  He patiently talks to every single person involved with a crime to understand motivations and alibis.  If he was to take a job as a business analyst, he would interview every key stakeholder about what they do and what they care about, before ever opening a reporting tool.  We try to have a conversation as part of every dashboard build or ad hoc report request.  This always makes the work more relevant, and often helps us find even better ways to proactively show insights on the business.</p>
<p><strong>Ask ‘stupid’ questions</strong>:  A lot of times the answer to a question is much more important than the question itself.  I try and ask ‘stupid’ questions, or a question where both I and the executive know the answer, all the time.  You would be amazed at the details you learn when getting a smart answer to a stupid question.  In already knowing the answer, the analyst is able to devote 100% of their effort to listening to the language and the specifics of what the executive is saying.  Also, throwing softball questions that an executive is able to answer allows them to feel like their analyst is supportive and listening.  These kinds of questions are going to go a long way in both getting executives to  give you the time of day, and in helping you to write and speak in ways that they will appreciate.</p>
<p><strong>&#8220;Just one more thing&#8221;</strong>: If you haven’t seen an episode of Columbo you won’t get this reference, but it’s a good one.  In almost every episode, Columbo will be interviewing the killer and throwing lots of softball questions.  Right when it looks like he’s leaving, he stops, turns around, and asks a question that starts with &#8220;Just one more thing&#8230;&#8221;.  This question is always a well thought out, hard hitting one, which helps solve the crime.  Many analysts (and I am guilty of this one too), try and lead discussions with executive stakeholders with the hard questions.  Not only does this sometimes mean that we are leading with the wrong questions for the business, it also means that we are starting off a discussion in a confrontational manner.  Save your tough questions for later in a discussion or interview, and allow them to be &#8220;Just one more thing&#8221;, it will help you ask much better questions, and will create more solid relationships with the people whose decisions you support.</p>
<p><a href="http://www.emetrics.org/newyork/"><img class="alignnone size-full wp-image-636" style="float: right; margin: 0 0 1em 1em;" title="Hear us Speak at eMetrics New York" src="http://www.napkyn.com/n/wp-content/uploads/2011/08/emetrics-ny-2011.jpg" alt="" width="125" height="125" /></a>Even if you have never seen an episode of <em>Columbo</em> (which is a shame), there is a heck of a lot of value you can take from his approach to problem solving.  Having continual conversations with the people you work with and support allows you to increase your visibility and your value.  Asking the right kinds of questions in the right ways lets you do better work (and frankly have more fun doing it).</p>
<p>Cheers,</p>
<p>Jim</p>
<p>P.S., (aka, &#8220;Just one more thing&#8230;&#8221;): This is not a permanent series, there are only two references left to go.  I promise you won’t be reading posts from us in two years where we try to explain how<em> The Breakfast Club</em> is actually about multi-channel attribution.</p>
<p>Check out the other posts in this series:<br />
Part I: <strong><a href="http://www.napkyn.com/blog/2011/03/29/alfred-robin-analysts/">Alfred and Robin</a></strong><br />
Part II:<strong> <a href="http://www.napkyn.com/blog/2011/07/12/pop-goes-business-analysis-part-ii-doc-brown/">Doc Brown</a></strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/08/17/columbo-business-analyst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vandalism with Google Analytics exploits</title>
		<link>http://www.napkyn.com/blog/2011/08/05/google-analytics-vandalism/</link>
		<comments>http://www.napkyn.com/blog/2011/08/05/google-analytics-vandalism/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 14:20:18 +0000</pubDate>
		<dc:creator>Colin Temple</dc:creator>
				<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[Web Analytics]]></category>
		<category><![CDATA[Web Tracking]]></category>
		<category><![CDATA[campaign tracking]]></category>
		<category><![CDATA[data injection]]></category>
		<category><![CDATA[data integrity]]></category>
		<category><![CDATA[data security]]></category>
		<category><![CDATA[exploits]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[hostnames]]></category>
		<category><![CDATA[segmentation]]></category>
		<category><![CDATA[vandalism]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=612</guid>
		<description><![CDATA[Google Analytics has a design approach to web analytics software that differs from many of its competitors. Whereas some tools require you to pre-define anything you want to track  (such as events, page names and campaign data), Google Analytics allows you to define these in the code or URL of a page, and simply accepts [...]]]></description>
			<content:encoded><![CDATA[<p>Google Analytics has a design approach to web analytics software that differs from many of its competitors. Whereas some tools require you to pre-define anything you want to track  (such as events, page names and campaign data), Google Analytics allows you to define these in the code or URL of a page, and simply accepts whatever data is thrown at it. This greatly cuts down on the cost, in both time and money, of implementing and maintaining a Google Analytics account. The ease of implementation has been a huge win for Google Analytics.</p>
<div style="width: 250px; font-size: 0.9em; float: right; margin: 0 0 1em 1em;"><img class="alignnone size-full wp-image-613" title="Keep your Trash out of my Google Analytics" src="http://www.napkyn.com/n/wp-content/uploads/2011/08/trash-into-ga.png" alt="" width="250" height="209" /></div>
<p>However, this philosophy comes at a price. Because it indiscriminately accepts any data it&#8217;s given, <em>it accepts any data it&#8217;s given</em>. The result is that, if someone with the right skills is feeling particularly malicious, they can vandalize and seriously distort your business&#8217; data. There are two ways this can be done.</p>
<p>We&#8217;ve been aware of these potential issues for some time now, but we wrestled a bit with the decision of whether or not to post this. On one hand, we like to share our knowledge and, since this is a very real fact about Google Analytics, it&#8217;s good for GA users to be aware of it. On the other hand, we&#8217;re potentially teaching people <em>how </em>to mess with someone&#8217;s GA deployment. Ultimately we decided on transparency and honesty &#8212; after all, we&#8217;re also going to tell you what you can do to protect yourself from these. But we must begin with a caveat: we do not endorse doing anything like this. We offer this information so you can be aware of potential security risks with your own data, and take the necessary steps to protect your data integrity.  We are strong supporters of the <a href="http://www.webanalyticsassociation.org/?page=codeofethics">Web Analyst&#8217;s Code of Ethics</a>, and though that code doesn&#8217;t say much about messing with others&#8217; data, the idea is generally to be open and honest with data.</p>
<p><strong>(Update: </strong>I should also point out that Google Analytics is not alone in being vulnerable to some of this. The approach to campaigns and ease of copying other data makes it easier than with some tools, I think, but those stem from Google&#8217;s strengths rather than weakness. I offer Google Analytics up because they don&#8217;t have a service level agreement for everyone, and hence it&#8217;s up to you to protect some of your data. Despite any vulnerability, I do want to be clear that Google Analytics is a fine tool and this alone is not cause for alarm, just something to be aware of when implementing this tool, and by extension, others like it.)</p>
<p>With that out of the way, here are the potential exploits we&#8217;ve seen:</p>
<p><span id="more-612"></span></p>
<h2><strong>Campaign Vandalism<br />
</strong></h2>
<p>Google Analytics makes campaigns tracking easy. Unlike tools like Adobe SiteCatalyst which store campaign tracking codes and convert them into useful data, Google Analytics sets campaign names directly in the URL query parameters, accepting any campaign name that it receives. This saves you time managing all your campaigns and channels, and makes setting up Google Analytics significantly faster. But with GA merely accepting any campaign names it gets, what&#8217;s to stop me from visiting your site using a bogus campaign name?</p>
<p><strong>What&#8217;s the problem?</strong></p>
<p>Campaigns in Google Analytics work by adding the names of campaigns, media and sources to URLs. For instance, if you want to track a summer email campaign that links to www.example.com, you may enter a URL like this:</p>
<div style="padding: 1em; border: 1px dotted #444444; background: none repeat scroll 0% 0% #ffffff;"><code>http://www.example.com/?utm_source=<span style="color: #008000;"><strong>newsletter</strong></span>&amp;utm_medium=<span style="color: #008000;"><strong>email</strong></span>&amp;utm_campaign=<span style="color: #008000;"><strong>SummerBlast</strong></span></code></div>
<p>In this example, you&#8217;re pushing though three pieces of information: the source of your list (newsletter), the medium over which you&#8217;re marketing (email) and the name of the individual campaign (SummerBlast). This data will be recorded in Google Analytics, no questions asked. You don&#8217;t even have to tell Google about the campaign ahead of time.</p>
<p>But what&#8217;s to stop me from visiting your site on this URL?</p>
<div style="padding: 1em; border: 1px dotted #444444; background: none repeat scroll 0% 0% #ffffff;"><code>http://www.example.com/?utm_source=<span style="color: #008000;"><strong>magic</strong></span>&amp;utm_medium=<strong><span style="color: #008000;">spaceship</span></strong>&amp;utm_campaign=<span style="color: #008000;"><strong>Stupidhead</strong></span></code></div>
<p>The answer is nothing. If I were to visit a GA-tracked website with those query parameters attached, their Google Analytics implementation would show that someone came to their site magically, by means of a spaceship, through a campaign called Stupidhead. I did this to one of my own sites, and here&#8217;s what I got.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-619" style="border: 1px solid #444;" title="Campaign Vandalism in Google Analytics" src="http://www.napkyn.com/n/wp-content/uploads/2011/08/magic-spaceship-campaign.png" alt="" width="570" height="84" /></p>
<p><strong>How dangerous is it?</strong></p>
<p>The most someone can do is create a bunch of meaningless data. The effect of a single vandal acting alone would be minimal, though an extremely determined vandal could set up a sort of vandalism bot &#8212; an automated software that repeatedly visits your website using falsified campaign data.</p>
<p>If you&#8217;re smart about your reporting, you&#8217;re probably more concerned about your <em>converting</em> campaigns. In order for vandals to mess with those reports, they&#8217;d have to become converting visitors. They may not have a problem with filling out a lead generation form, but if you are running an ecommerce site, these reports have a built-in protection: vandals will have to <em>pay</em> for the opportunity to seriously mess up your reports. (However, you&#8217;ll still need to account for the second scenario below.)</p>
<p><strong>How do you fix it?</strong></p>
<p>The first step is to identify vandalism. Chances are, it will be obvious &#8212; if someone has decided to vandalize your site, it&#8217;s probably because they want you to see it. So a bogus campaign name that shows up in your reports will be clear. If you&#8217;ve been smart about maintaining a convention for your campaign naming, you should have an easier time detecting falsified campaign information, though a determined vandal could spoof your own conventions.</p>
<p>Getting rid of the campaign data isn&#8217;t as easy. In fact, it&#8217;s impossible. What you can do instead is segment it out, so that you see only data from non-vandals. To do this, you need to create an advanced segment. Creating a new custom segment (using the &#8216;Advanced Segments&#8217; area at the top of a report in the new Google Analytics interface), you can choose to exclude campaigns, media or sources that contain the offending terms.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-620" style="border: 1px solid #444;" title="Exclude vandalized campaigns" src="http://www.napkyn.com/n/wp-content/uploads/2011/08/exclude-stupidhead.png" alt="" width="570" height="101" /></p>
<p>The problem here is that if you&#8217;re the victim of serious vandalism, such as from the bot scenario given above, you have to use this segment every time you look at a report in Google Analytics. That&#8217;s a pain.</p>
<p>If you&#8217;re a large organization and you&#8217;re afraid of receiving an attack to your Google Analytics account, you may consider running more than one analytics solution, or copying the relevant data to your own datamart. The larger you are financially, the more likely such an attack is, but the more resources you&#8217;ll have to back-up your data.</p>
<p><strong>What should Google do?</strong></p>
<p><strong></strong>Probably nothing. I think that the fact that you don&#8217;t have to do campaign management within Google Analytics is a plus. It cuts down the overhead &#8212; every organization should have some method to the madness of creating campaigns and campaign names, but the extra work of punching data into your web analytics tool isn&#8217;t always worth the benefit, especially for smaller organizations.</p>
<p>Given the fact that traffic has to convert, and actually spend money if you&#8217;re an ecommerce site, in order to mess with valuable reports. If someone really wanted to hit your site hard with this, the most they could do is become a nuisance. It won&#8217;t destroy your reporting, but it will make it harder to pull clean data.</p>
<p>However, since Google is gradually approaching the enterprise market with its Analytics product,  its product team may consider providing two options for campaign management: both the current consume-everything version, and an internally-managed campaign list in the style of SiteCatalyst. The benefit would be for large customers, who have the resources to properly manage their campaigns, to be able to do so risk-free.</p>
<h2><strong>Fake Data Injection<br />
</strong></h2>
<p><strong></strong>Ok, so, if I want to, I can mess up the campaign data a bit. And if I want to mess up your revenue sources, then at least I have to pay you for the opportunity to do so, and it may not be so bad.  But what if I want to mess up the rest of your data? Surely, I wouldn&#8217;t be able to do that, right?</p>
<p>Wrong. Unless you&#8217;ve set up filters to prevent this, Google Analytics will accept data for your Google Analytics tracking account from any server, as long as it sends the web property ID for your website.</p>
<p><strong>What&#8217;s the problem?</strong></p>
<p>Because Google Analytics accepts this data from anywhere, anyone can create a web page using your Google Analytics tracking code, view it, and have traffic, events or ecommerce data show up in your Google Analytics report.</p>
<p>For example, what happens to your reports if I create a fake transaction, using your Google Analytics tracking code, with a transaction of -$90 million? Here&#8217;s what happens:</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-622" style="border: 1px solid #444;" title="Huge Negative Transaction" src="http://www.napkyn.com/n/wp-content/uploads/2011/08/huge-negative-transaction.png" alt="" width="385" height="155" /></p>
<p style="text-align: left;">The other days in that report aren&#8217;t at zero dollars. They range from $50,000 &#8211; $100,000, but you can&#8217;t see the trends because the fake transaction has skewed everything.</p>
<p><strong>How dangerous is it?</strong></p>
<p>The damage here is greater, in that it will severely distort any reports. Someone could take an obvious step, like the above examples, of pushing huge transactions into your Google Analytics account. However, the vandalism could be more subtle: one could push several smaller transactions with false source data to try and misguide you, or push events that you can&#8217;t reconcile with your order management system.</p>
<p>The effect of this and the campaign vandalism method I mentioned above can be compounded. Recall that you&#8217;d have to buy something to mess with revenue source data with the method above? It turns out that, if you fake realistic-looking transactions <em>while using</em> spoofed campaigns, you can make an even bigger mess of things.</p>
<p>One limiting factor here is that the visits have to be run from a server that&#8217;s connected to the Internet and can host web pages. As a result, you can use the Hostnames report in Google Analytics to identify where the fake data came from. This does mean that if someone wishes to vandalize your data in this way, they will have to do so carefully, otherwise they may be identifiable. Potential vandals would have to go to greater lengths to ensure their anonymity.</p>
<p><strong>How do you fix it?</strong></p>
<p>Finding the fake data could be tricky. In the case of revenue and transaction data, you probably have an order management system with which you can compare the data. However, when you&#8217;re strictly looking at Google Analytics, the fake data may not be obvious if the vandal has chosen to be sneaky about it. The first step is to check your Hostnames report. Hostnames are the domain names or IP addresses from which your website is viewed. In the new Google Analytics, you can find the list of hostnames that have been used to view your site from the <strong>Visitors &gt; Technology &gt; Network</strong> report.</p>
<p>If Google Analytics code executes on hostnames that you don&#8217;t own, you&#8217;ll want to investigate the problem. In some cases, those hostnames will simply be search engine caches or translation services that are copying your analytics code. However, if you notice transactions or strange events and campaign data from suspicious hostnames, then you may want to look into the matter.</p>
<p>There are a couple of ways to actually fix the problem. The first is an <em>ad hoc </em>approach &#8212; if someone drops a fake transaction into your system, <a href="http://www.google.com/support/analytics/bin/answer.py?hl=en-US&amp;answer=72290">simply remove it</a> by executing some JavaScript. This requires you to write a custom JavaScript that basically makes an inverted version of the transaction, with negated quantity, revenue, shipping and tax values. This is annoying, but quick enough to get rid of a single transaction.  You can also handle it the way I suggested handling vandalized campaigns above, using custom segmentation.</p>
<p>However, if you want to prevent yourself from these attacks entirely, then you&#8217;ll need to add some filters to your Google Analytics profiles (or create new filtered versions of your main profiles). The goal here would be to create a list of hostnames &#8212; the domain names and subdomains that you use for your website &#8212; and ONLY accept data from those hosts. Now, you&#8217;ll probably want to set up your filters on a <em>new profile</em>, which is a filtered version of your original. That way, you have 100% of the data collected by your site, but also a clean/safe copy to work with.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-621" style="border: 1px solid #444;" title="Include Only Domain" src="http://www.napkyn.com/n/wp-content/uploads/2011/08/include-only-domain.png" alt="" width="522" height="305" /></p>
<p>The example filter I&#8217;ve given here will only count traffic, events and transactions from the domain name &#8216;example.com&#8217;. A better way might be to only include traffic from specific IP addresses, if you know the IP addresses of your website(s)&#8211;this could prevent attempts to spoof your hostname and push vandalism that appears to be legitimate. In either case, <strong>be sure to keep this up-to-date!</strong> If you change your domains, subdomains or IP addresses, it may affect your filtered profile and cut out some legitimate, valuable data.</p>
<p>One quick note: Sometimes you&#8217;ll see additional domains in your list that are from hostnames that have a legitimate purpose. For instance, Google will serve up your site when it shows either a cached version or a translated version &#8212; in both cases, the hostname includes &#8216;googleusercontent.com&#8217;. Bing also shows page caching on cc.bingj.com. You may want to exclude data from caches or translated versions of your pages, but if you&#8217;d prefer to see all of it, include data from those domains as well.</p>
<p><strong>What should Google do?</strong></p>
<p>Google should provide these filters as standard options. You should be able, when creating a profile in Google Analytics, to specifiy what host names and/or IP addresses you&#8217;re willing to accept data from, and be able to provide an on/off switch for accepting data from other sources. Making this option more prominent may help businesses be aware of the issue and protect themselves from day one.</p>
<p>The are more technically complex, and secure, methods of limiting these kinds of problem that Google could consider. One option is to make use of server-side code in conjunction with the JavaScript to authenticate an API key before data is accepted.</p>
<p>At any rate, rumblings of a paid, enterprise-focused Google Analytics can be heard from the horizon. If a service level agreement becomes available to some Google Analytics customers, data integrity and security will be chief concerns.</p>
<p>Until next time,</p>
<p>Colin</p>
<p><strong>UPDATE: </strong>Just a quick note of clarification. Although I focused this post on Google Analytics, I should clarify that GA is not the only tool vulnerable to this &#8212; especially the second method of vandalism. The first method is the easiest thing, and that&#8217;s more specific to GA. This post came out of an internal discussion about the campaign vandalism. To be clear, this kind of thing isn&#8217;t particularly common, and as Emer mentions in a comment below, it tends to be a result of negligence when people copy code or designs, rather than a malicious attempt. So, there&#8217;s no need for immediate concern for most people, but I think it&#8217;s worth being aware of what you can do to protect yourself from this inherent vulnerability in most analytics tools.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/08/05/google-analytics-vandalism/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Track LinkedIn Share Buttons in Google Analytics</title>
		<link>http://www.napkyn.com/blog/2011/08/02/linkedin-share-buttons-google-analytics/</link>
		<comments>http://www.napkyn.com/blog/2011/08/02/linkedin-share-buttons-google-analytics/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 15:03:53 +0000</pubDate>
		<dc:creator>Colin Temple</dc:creator>
				<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Web Analytics]]></category>
		<category><![CDATA[Web Tracking]]></category>
		<category><![CDATA[event tracking]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[sharing]]></category>
		<category><![CDATA[social interaction]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[visitor engagement]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=593</guid>
		<description><![CDATA[I&#8217;ve been building up a technical post series on tracking social media hook-ups in Google Analytics. I wrote about tracking Google +1 Votes before Google automated it. After they unveiled new Social reports in GA, I followed up with an update on tracking Facebook Like buttons. Next on the docket: LinkedIn Sharing  &#8230; because as [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-595" style="float: right; margin: 0 0 1em 1em;" title="LinkedIn tracking in Google Analytics" src="http://www.napkyn.com/n/wp-content/uploads/2011/07/linkedin-share-GA.png" alt="" width="148" height="155" />I&#8217;ve been building up a technical post series on tracking social media hook-ups in Google Analytics. I wrote about <a href="http://www.napkyn.com/blog/2011/06/02/track-google-plus-one-buttons-google-analytics/">tracking Google +1 Votes</a> before Google automated it. After they unveiled new Social reports in GA, I followed up with an update on <a href="http://www.napkyn.com/blog/2011/07/06/track-facebook-like-google-analytics/">tracking Facebook Like buttons</a>. Next on the docket: LinkedIn Sharing  &#8230; because as analysts, to be ready to answer the tough questions, you really should be <a href="http://www.napkyn.com/blog/2011/06/23/events-track-everything/">tracking everything</a>.</p>
<p>The method of tracking for LinkedIn buttons differs a little bit from the others I&#8217;ve posted so far. Currently, LinkedIn does not provide a callback function that executes when an action is completed &#8212; there&#8217;s no flag in the code that says &#8220;visitor shared something, now what?&#8221;. Instead, we have to build our own JavaScript function that we can bind to an action. In order to do so, this example uses <a href="http://jquery.com/">jQuery</a>, a popular JavaScript library.<span id="more-593"></span></p>
<p>The first step is to get your button code snippet from LinkedIn. LinkedIn calls this service <a href="http://www.linkedin.com/publishers">LinkedIn for Publishers</a>. When you generate the code, it will look something like this:</p>
<div style="padding: 1em; border: 1px dotted #444444; background: none repeat scroll 0% 0% #ffffff;"><code><span style="color: #0000ff;">&lt;script</span> <span style="color: #800000;">type</span>=<span style="color: #008000;">"text/javascript"</span> <span style="color: #800000;">src</span>=<span style="color: #008000;">"http://platform.linkedin.com/in.js"</span><span style="color: #0000ff;">&gt;&lt;/script&gt;&lt;script</span> <span style="color: #800000;">type</span>=<span style="color: #008000;">"in/share"</span> <span style="color: #800000;">data-url</span>=<span style="color: #008000;">"http://example.com/article/"</span> <span style="color: #800000;">data-counter</span>=<span style="color: #008000;">"top"</span><span style="color: #0000ff;">&gt;&lt;/script&gt;</span></code></div>
<p>This script from LinkedIn above generates new HTML which is inserted into the page in order to create the &#8216;Share&#8217; button and its functionality. The code generated includes a new <code><span style="color: #0000ff;">&lt;div&gt;</span></code> element, which has the class name <code>IN-widget</code>.</p>
<p>This gives us the chance to reference the generated button with a little code of our own. Using the jQuery <code><span style="color: #0000ff;">.ready</span></code> event handler &#8212; to ensure that the code does not execute until LinkedIn is finished building the button &#8212; we construct a new function that binds to the &#8220;click&#8221; event for all objects with the class name &#8216;<code>IN-widget</code>&#8216;. In this function, we include the Google Analytics social tracking code, to create a new social event.</p>
<div style="padding: 1em; border: 1px dotted #444444; background: none repeat scroll 0% 0% #ffffff;"><code><span style="color: #0000ff;">$</span>(<span style="color: #800000;">window</span>).<span style="color: #0000ff;">ready</span>(<span style="color: #0000ff;">function</span>() <span style="color: #800000;">{</span><br />
<span style="color: #0000ff;">$</span>(<span style="color: #008000;">'.IN-widget'</span>).<span style="color: #0000ff;">click</span>(<span style="color: #0000ff;">function</span>() {<br />
<span style="color: #0000ff;">_gaq</span>.<span style="color: #0000ff;">push</span>(<span style="color: #800000;">[</span><span style="color: #008000;">'_trackSocial'</span>, <span style="color: #008000;">'LinkedIn'</span>, <span style="color: #008000;">'Share'</span>, <span style="color: #800000;">window.location.href</span><span style="color: #800000;">]</span>);<br />
<span style="color: #800000;">}</span>);<br />
<span style="color: #800000;">}</span>);</code></div>
<p>This new code can be added pretty much anywhere on your page &#8212; you may want to include it right after the code LinkedIn gives you to keep them together, or put it in your header if that&#8217;s how you prefer to organize your site.</p>
<p>Note that in this example, the last parameter, <span style="color: #800000;"><code>window.location.href</code></span>, will send the current URL along as the resource shared. In different systems, you may prefer to output the URL directly, rather than through JavaScript. For instance, in <a href="http://wordpress.org/">WordPress</a>, you may replace the last parameter with the permalink for a post:</p>
<div style="padding: 1em; border: 1px dotted #444444; background: none repeat scroll 0% 0% #ffffff;"><code><span style="color: #0000ff;">_gaq</span>.<span style="color: #0000ff;">push</span>(<span style="color: #800000;">[</span><span style="color: #008000;">'_trackSocial'</span>, <span style="color: #008000;">'LinkedIn'</span>, <span style="color: #008000;">'Share'</span>, <span style="color: #008000;">'<span style="color: #000080;">&lt;?php the_permalink<span style="color: #000000;">();</span> ?&gt;</span>'</span><span style="color: #800000;">]</span>);</code></div>
<p>Now, there is one issue which must be kept in mind. In the case of the Facebook and Google +1 buttons I&#8217;ve previously shared, the social event code only fires after something has been shared. That&#8217;s the benefit of the callback function provided by those services. In the case of LinkedIn, however, what we&#8217;re really tracking are clicks to the share button &#8212; it&#8217;s possible for someone to cancel sharing after clicking the button, so you may get an inflated total.</p>
<p>With that caveat in mind, you&#8217;re all set! Once you&#8217;ve added this JavaScript, your LinkedIn shares will appear in the new social reports in Google Analytics. You can find these reports under &#8220;<strong>Visitors &gt; Social&#8221; </strong>in the new version of GA. With this, your web analyst can help you determine what impact these buttons have on your site and your business. For instance, whether frequently-shared articles get much more <em>converting </em>traffic from LinkedIn, and whether the people who share things are also the people who convert themselves.</p>
<p>Until next time,</p>
<p>Colin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/08/02/linkedin-share-buttons-google-analytics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pop Goes Business Analysis, Part II: Doc Brown</title>
		<link>http://www.napkyn.com/blog/2011/07/12/pop-goes-business-analysis-part-ii-doc-brown/</link>
		<comments>http://www.napkyn.com/blog/2011/07/12/pop-goes-business-analysis-part-ii-doc-brown/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 18:56:56 +0000</pubDate>
		<dc:creator>Jim Cain</dc:creator>
				<category><![CDATA[Web Analytics]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[back to the future]]></category>
		<category><![CDATA[doc brown]]></category>
		<category><![CDATA[methodology]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=597</guid>
		<description><![CDATA[One of our most-referenced blog posts of the last year was the one we wrote about the parallels between a good business analyst and Batman’s two primary sidekicks, Robin and Alfred.  We really do use that example all the time when talking about stakeholders in the great clients we work with through the Analyst program &#8212; and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-598" style="border: 1px solid #444; margin: 0 0 1em 1em; float: right;" title="Doc Brown and Business Analysis" src="http://www.napkyn.com/n/wp-content/uploads/2011/07/doc-brown-mind-control.jpg" alt="" width="215" height="279" />One of our most-referenced blog posts of the last year was the one we wrote about the parallels between a good <a href="http://www.napkyn.com/blog/2011/03/29/alfred-robin-analysts/">business analyst and Batman’s two primary sidekicks</a>, Robin and Alfred.  We really do use that example all the time when talking about stakeholders in the great clients we work with through the Analyst program &#8212; and we always treat them like Batman.</p>
<p>We use way more pop culture references in the office than we do math/sciences ones. A good reference tells a story much better than a detailed (and alienating) technical description.  If you don’t believe me, ask me to explain tag management systems using nothing but <cite>Terminator 2</cite> references.</p>
<p>With this in mind, I thought I would use the blog this week to share another popular pop culture reference that comes up in meetings all the time, in the form of the following sentence:</p>
<p><strong><em>“So, what would Doc Brown do?”</em></strong></p>
<p><span id="more-597"></span></p>
<p>I won’t spend too much time explaining the character of Doc Brown, because if you haven’t seen <cite>Back to the Future</cite>, you probably aren’t old enough to read this.</p>
<p>I will, however, talk about some of the critical aspects of the character of Doc that every analyst should aspire to when approaching their work.  If the Batman reference helps explain how a good analyst should approach their executive stakeholders, the Doc Brown one is for day to day problem solving.</p>
<p><strong>Doc Brown is a hacker: </strong>Does the Doc ever give up because he can’t get enough speed and power into the Delorian?  Heck no!  He defines his goal, looks at what he has available, and builds an appropriate means to his end. Many analysts get way too caught up in their technology and lose sight of their goals (support decisionmaking, make more money). Others feel that they aren’t able to be effective because of a lack of developer support or enterprise technology. You would be amazed what you can do with a copy of Excel and a little bit of ingenuity.</p>
<p><img class="alignnone size-full wp-image-600" style="border: 1px solid #444; float: left; margin: 0 1em 1em 0;" title="Doc Brown &amp; Marty McFly: Analyst and Executive" src="http://www.napkyn.com/n/wp-content/uploads/2011/07/doc-brown-marty-mcfly.jpg" alt="" width="225" height="233" /><strong>Doc Brown doesn’t live in the present: </strong>  Based on the end of <cite>Back to the Future III</cite>, this is a literal statement &#8212; but I digress.  The real point is that Doc Brown constantly made decisions based on the fact that the only way to both affect and understand the present is to understand both the past and the future. The only thing better than a critical metric is a performance-focused metric, tied to both historical performance and year-end goals. This temporal context always helps support quality decisions.</p>
<p><strong>Doc Brown isn’t the hero, but he is a critical character</strong>:  Similar to Robin and Alfred, Doc Brown is not the star of the <cite>Back to the Future</cite> movies.  Without him though, Marty McFly would just be some Huey Lewis fan in California who doesn’t respond well to being called a chicken.  Doc is the person who uses technology, intuition and decision support to allow Marty to optimize his family, get the girl, and save the day.</p>
<p>The next time you are looking at a tough analysis problem, do what we do at Napkyn and ask yourself, “<em>What would Doc Brown do?</em>”.  Taking on his DIY attitude and temporal attention will have your boss yelling “Great Scott!” in no time.</p>
<p>Cheers,<br />
Jim</p>
<p>PS &#8211; We have three other pop culture references we use all the time at the office &#8211; what are yours?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/07/12/pop-goes-business-analysis-part-ii-doc-brown/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Track Facebook Like Buttons in Google Analytics</title>
		<link>http://www.napkyn.com/blog/2011/07/06/track-facebook-like-google-analytics/</link>
		<comments>http://www.napkyn.com/blog/2011/07/06/track-facebook-like-google-analytics/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 17:42:16 +0000</pubDate>
		<dc:creator>Colin Temple</dc:creator>
				<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Web Tracking]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[like buttons]]></category>
		<category><![CDATA[social interaction]]></category>
		<category><![CDATA[social media analytics]]></category>
		<category><![CDATA[tracking code]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=491</guid>
		<description><![CDATA[I posted recently about event tracking, arguing that everything on your site should be worthy of tracking because everything on your site should be valuable. When people wonder about the value of website elements, what often comes to mind is social media. Social media is difficult to track, and as a result, it&#8217;s notoriously difficult [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-492" style="float: right; margin: 0 0 1em 1em;" title="Facebook Like Tracking" src="http://www.napkyn.com/n/wp-content/uploads/2011/05/facebook-like.png" alt="" width="200" height="199" />I posted recently about event tracking, arguing that <a href="http://www.napkyn.com/blog/2011/06/23/events-track-everything/">everything on your site should be worthy of tracking</a> because everything on your site should be valuable. When people wonder about the value of website elements, what often comes to mind is social media.</p>
<p>Social media is difficult to track, and as a result, it&#8217;s notoriously difficult to assign value to it. So, adding tracking to the few places you can is important. One of those places that we frequently encounter is the <strong>Facebook Like button</strong>.</p>
<p>Last week, Google introduced Social Interaction Tracking in Google Analytics. Essentially, this allows you to put events from social media interactions into a special category that groups all social engagements together.  We&#8217;ve been tracking social media interactions on our clients&#8217; sites for quite a while, but until now this was done with event tracking. The new format, using the Social Interaction reports, lets you view the data through reports that are specifically tailored for this kind of activity. It also lets you more easily group any kind of social interaction together, and provides some automatic segmentation of socially engaged visitors.</p>
<p>So, using this new code, here&#8217;s my update on how to track Facebook &#8220;Like&#8221; buttons in Google Analytics. In this example I use the latest code from Facebook, so you&#8217;ll want to update any existing Like buttons you have. I also used the latest, asynchronous version of the Google Analytics tracking code.<br />
<span id="more-491"></span></p>
<p><strong>Getting your Facebook Like Button code</strong></p>
<p>The first thing you&#8217;ll need is the code that actually creates the Like button, which can be <a href="http://developers.facebook.com/docs/reference/plugins/like/">obtained from Facebook</a>. Facebook requires you to be a registered Facebook developer in order to make your buttons, which means  confirming that you&#8217;re a real person either by a text to your mobile  phone, or by entering credit card information.</p>
<p>In the post I mentioned above, I said that everything that happens on your site can  be tracked &#8212; but that some things, including iframes and  entirely-external JavaScript cannot easily fit into the mix. Facebook Like buttons can fit into either category. There&#8217;s an iframes version, which simply loads in a tiny window into Facebook that&#8217;s outside of the reach of JavaScript. The consequence: you can&#8217;t track the iframes Like button.</p>
<p>The other method uses Facebook&#8217;s XFBML. This version is mainly JavaScript-driven, but includes one very cool feature: Facebook provides a function to handle a Like event. That is, Facebook gives you an opportunity to add extra code to be executed whenever a &#8220;Like&#8221; happens. This is the perfect spot for Google Analytics event tracking, so <strong>make sure to choose the XFBML version</strong> of the Like button.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-493" style="border: 1px solid #444;" title="Facebook: Get Like Button" src="http://www.napkyn.com/n/wp-content/uploads/2011/05/facebook-get-like-button.jpg" alt="" width="537" height="176" /></p>
<p>Facebook will give you some code that looks something like the following. Of course, APP_ID_HERE and PAGE_URL will both be replaced by your App ID from Facebook, as well as the URL of the page to Like &#8212; both of these parameters are set automatically when you generate the button. The settings you choose when you generate the button will change the second line.</p>
<div style="padding: 1em; border: 1px dotted #444; background: #fff;"><code>&lt;div id="fb-root"&gt;&lt;/div&gt;&lt;script src="http://connect.facebook.net/en_US/all.js#appId=<strong>APP_ID_HERE</strong>&amp;amp;xfbml=1"      type="text/javascript"&gt;&lt;/script&gt;<br />
&lt;fb:like href="<strong>PAGE_URL</strong>" send="false"     width="100" show_faces="false"     font=""&gt;&lt;/fb:like&gt;</code></div>
<p><strong>Adding the Google Analytics social tracking<br />
</strong></p>
<p>What you need to add is a simple line of code that adds a new JavaScript function. This function&#8217;s purpose is to execute whenever the Like button is clicked, and fire a Google Analytics tracking code when that happens.</p>
<p>The asynchronous (async) version of the code looks like this:</p>
<div style="padding: 1em; border: 1px dotted #444; background: #fff;"><span style="color: #0000ff;"><code>&lt;script <span style="color: #993300;"> type</span>=<span style="color: #008000;">"text/javascript"</span>&gt;<br />
FB.Event.subscribe(<span style="color: #008000;">'edge.create'</span>,      function(<span style="color: #993300;">href</span>, <span style="color: #993300;">widget</span>) <span style="color: #993300;">{</span> _gaq.push(<span style="color: #993300;">[</span><span style="color: #008000;">'_trackSocial'</span>, <span style="color: #008000;">'Facebook'</span>,      <span style="color: #008000;">'Like'</span>, href<span style="color: #993300;">]</span>); <span style="color: #993300;">}</span>);<br />
&lt;/script&gt;</code></span></div>
<p>You may also want to track &#8220;Unlikes&#8221;, cases where a visitor clicks the Like button again to remove the page from their Liked content. Using the async method, add this to the JavaScript:</p>
<div style="padding: 1em; border: 1px dotted #444; background: #fff;"><span style="color: #0000ff;"><code>FB.Event.subscribe(<span style="color: #008000;">'edge.remove'</span>,       function(<span style="color: #993300;">href</span>, <span style="color: #993300;">widget</span>) <span style="color: #993300;">{</span> _gaq.push(<span style="color: #993300;">[</span><span style="color: #008000;">'_trackSocial'</span>, <span style="color: #008000;">'Facebook'</span>,      <span style="color: #008000;">'Unlike'</span>, href<span style="color: #993300;">]</span>); <span style="color: #993300;">}</span>);</code></span></div>
<p>Here&#8217;s what the final code looks like when you&#8217;ve added the new tracking snippet.  Again, APP_ID_HERE and PAGE_URL, in red, need to be replaced. The new tracking code is highlighted in color:</p>
<p><code> </code></p>
<div style="padding: 1em; border: 1px dotted #444; background: #fff;"><code>&lt;div id="fb-root"&gt;&lt;/div&gt;&lt;script src="http://connect.facebook.net/en_US/all.js#appId=<span style="color: #ff0000;"><strong>APP_ID_HERE</strong></span>&amp;amp;xfbml=1"      type="text/javascript"&gt;&lt;/script&gt;<br />
&lt;fb:like href="<span style="color: #ff0000;"><strong>PAGE_URL</strong></span>" send="false"     width="100" show_faces="false"     font=""&gt;&lt;/fb:like&gt;<br />
<span style="color: #0000ff;">&lt;script <span style="color: #800000;"> type</span>=<span style="color: #008000;">"text/javascript"</span>&gt;<br />
FB.Event.subscribe(<span style="color: #008000;">'edge.create'</span>,     function(<span style="color: #800000;">href, widget</span>) <span style="color: #800000;">{</span> _gaq.push<span style="color: #800000;"><span style="color: #0000ff;">(</span>[</span><span style="color: #008000;">'_trackSocial'</span>, <span style="color: #008000;">'Facebook'</span>,     <span style="color: #008000;">'Like'</span>, href<span style="color: #800000;">]<span style="color: #0000ff;">)</span></span>; <span style="color: #800000;">}<span style="color: #0000ff;">)</span></span>;<br />
<span style="color: #0000ff;">FB.Event.subscribe(<span style="color: #008000;">'edge.remove'</span>,       function(<span style="color: #993300;">href</span>, <span style="color: #993300;">widget</span>) <span style="color: #993300;">{</span> _gaq.push(<span style="color: #993300;">[</span><span style="color: #008000;">'_trackSocial'</span>, <span style="color: #008000;">'Facebook'</span>,      <span style="color: #008000;">'Unlike'</span>, href<span style="color: #993300;">]</span>); <span style="color: #993300;">}</span>);</span><br />
&lt;/script&gt;</span></code></div>
<p>So that&#8217;s it! Google Analytics tracking for Facebook &#8220;Like&#8221; buttons on your website. Once people start to &#8216;Like&#8217; your pages, you&#8217;ll see the data show up in the <strong>Visitors &gt; Social </strong>area of your Google Analytics account (in the new version).</p>
<p><strong>Using the Data</strong></p>
<p>Once you have your tracking in place, your <a href="../../analyst-program/">web analyst</a> can make use of Google Analytics segmentation and a little bit of smarts to answer some really cool questions.  Are the same visitors who &#8220;Like&#8221; products the same ones who actually  buy them? Do posts, pages and articles with more Likes serve as the  landing pages for more converting visitors? Is there a best position for  social media buttons to get the most shares, Tweets and Likes without  distracting from conversions?</p>
<p>All of these questions can be answered with this data. Together with the referral data from incoming Facebook visitors, these insights can give you a sense of how valuable Facebook Like buttons are on your site and how you can best make use of them.</p>
<p>Until next time,</p>
<p>Colin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/07/06/track-facebook-like-google-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Executive Dashboard Tip: The Elevator Ask</title>
		<link>http://www.napkyn.com/blog/2011/06/28/elevator-ask/</link>
		<comments>http://www.napkyn.com/blog/2011/06/28/elevator-ask/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 14:31:10 +0000</pubDate>
		<dc:creator>Jim Cain</dc:creator>
				<category><![CDATA[Web Analytics]]></category>
		<category><![CDATA[dashboards]]></category>
		<category><![CDATA[elevator pitch]]></category>
		<category><![CDATA[executive-level reporting]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=540</guid>
		<description><![CDATA[Image credit: Gideon Tsang via Flickr I had a very enjoyable lunch last week with a few technology executives, where the focus of our discussion was on creating dashboards and reports that the CEO will want to read (one of my favorite topics). We were talking about different approaches to initial dashboard builds for a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center; font-size: 0.9em;"><img class="alignnone size-full wp-image-579" title="Elevator" src="http://www.napkyn.com/n/wp-content/uploads/2011/06/elevator-buttons.jpg" alt="" width="580" height="130" /><br />
Image credit: <a rel="nofollow" href="http://www.flickr.com/photos/gideon/26472155/">Gideon Tsang via Flickr</a></p>
<p>I had a very enjoyable lunch last week with a  few technology executives, where the focus of our discussion was on  creating dashboards and reports that the <abbr title="chief executive officer">CEO</abbr> will want to read (one of  my favorite topics).</p>
<p>We were talking about different  approaches to initial dashboard builds for a CEO, and all the approaches  were totally different (and effective with the right kind of person).   One concept was around building all the key data points that any  executive would want to see, so that they can easily put together their  own dashboard.</p>
<p><span id="more-540"></span></p>
<p>Another (not from me, but similar to what  we do in the <a href="http://www.napkyn.com/analyst-program/">Analyst Program</a>) was around building an initial dashboard  after an interview, knowing that it isn’t 100% correct, but also knowing  that the recipient would give much better feedback on a deliverable  than they would on a concept.</p>
<p>My contribution was on a question I often  ask with new clients, or prospects who are looking at a Napkyn analyst  as a potential addition to their team.  I call this question “<strong>The  Elevator Ask</strong>”, and it’s just a simple variation of the dreaded elevator pitch.</p>
<p>As I run a young and aggressive business,  I get asked for my elevator pitch all the time.  For anyone who hasn’t  heard the term before, it works like this:</p>
<div style="width: 260px; margin: 0 0 1em 1em; float: right; font-size: 0.9em; text-align: center;"><img class="alignnone size-full wp-image-580" title="Elevator Wait" src="http://www.napkyn.com/n/wp-content/uploads/2011/06/elevator-man.jpg" alt="" width="260" height="208" /><br />
Image credit: <a rel="nofollow" href="http://www.flickr.com/photos/srgblog/2833593939/">sergis blog via Flickr</a></div>
<p><em>Pretend that you are in an elevator  with someone who could assist your business.  You have to effectively  describe your business and your value proposition before the elevator  door opens, or lose an opportunity to get value from this person.</em></p>
<p>The reason that the elevator pitch is so  entrenched in business is because it’s both a fantastic exercise in  refining your value proposition as well as a way to ensure that you  aren’t wasting anyone&#8217;s time when you describe your company.</p>
<p>This approach works equally well with The Elevator Ask in helping figure out what to put on the CEO’s dashboard.</p>
<p><em>Pretend that you need to rush out of  the office, and you are going to be gone for a week.  You jump into the  elevator, and all your senior managers happen to be in there with you.   What questions would you ask them to answer before you hit the ground  floor?</em></p>
<p>Sometimes the answers to this question  are surprising, and sometimes they prove to be incorrect over time when  delivering an ongoing performance report.  Most of the time, however, you  are given some great insights that will allow you to do analysis that  will be read, valued and used to move the business forward.</p>
<p>Give it a shot, and please share your feedback with us.</p>
<p>Cheers,<br />
Jim</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/06/28/elevator-ask/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Events in Web Analytics: A Case for Tracking Everything</title>
		<link>http://www.napkyn.com/blog/2011/06/23/events-track-everything/</link>
		<comments>http://www.napkyn.com/blog/2011/06/23/events-track-everything/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 19:45:00 +0000</pubDate>
		<dc:creator>Colin Temple</dc:creator>
				<category><![CDATA[Web Analytics]]></category>
		<category><![CDATA[Web Tracking]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[conversions]]></category>
		<category><![CDATA[event tracking]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[page views]]></category>
		<category><![CDATA[visitor engagement]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=499</guid>
		<description><![CDATA[Image Credit: jared via Flickr Everything that happens on a website is an event. We&#8217;re in a strange place with this &#8216;events&#8217; business in web analytics right now. Event tracking is still relatively new and many are only now really discovering them. The events paradigm allows you to track activities that were previously outside the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center; font-size: 0.8em;"><img class="alignnone size-full wp-image-527" style="border: 1px solid #444;" title="Events" src="http://www.napkyn.com/n/wp-content/uploads/2011/06/events.jpg" alt="" width="580" height="130" /><br />
Image Credit: <a href="http://www.flickr.com/photos/generated/2084287794/">jared via Flickr</a></p>
<p><strong>Everything that happens on a website is an event.</strong></p>
<p>We&#8217;re in a strange place with this &#8216;events&#8217; business in web analytics right now. Event tracking is still relatively new and many are only now really discovering them. The events paradigm allows you to track activities that were previously outside the realm of measurement by firing off a JavaScript codes that say, &#8220;hey, something happened!&#8221;.</p>
<p>This leads us into a bit of misunderstanding. Traditionally, web analytics involved looking at page views. Some page views were boring. Other page views were conversions. Some other page views were somewhere in between, part of a conversion funnel. Web analytics tools became much more relevant when they started tracking ecommerce conversions, so you could see how much money was being made. So far, so good.<br />
<span id="more-499"></span></p>
<p>Events showed up, in part, to respond to the technological development of the web. Suddenly, important stages of that funnel were no longer page views. With methods like <abbr title="asynchronous JavaScript and XML">AJAX</abbr>, some sites suddenly had their entire shopping cart process happen on one page, with each step loading within the page. Page views don&#8217;t tell you what happened there, so event tracking came to the rescue in order to track these new &#8220;events&#8221; alongside your traffic and transactions.</p>
<p>What event tracking highlights is not that there <em>was </em>good tracking and then new technologies broke it. What it shows instead is that the older way of doing things was broken. It tracked only one kind of event: page views. Sometimes, it tracked two: page views and transactions. Good. Not good enough.</p>
<p>Page views are events. Transactions are events. Clicks are events. Chat interactions are events. Searches are events. Customer reviews are events. You get the idea: <strong>everything that happens on a website is an event</strong>. It&#8217;s not that these new event things are an addition to what&#8217;s there, it&#8217;s that the old way of tracking interaction on a website is incomplete. It forced you into one or two types of event, and ignored the rest.</p>
<p>What Google Analytics, Yahoo! Web Analytics, Adobe SiteCatalyst and other tools are now doing, which needs to be done, is allowing you to determine, as an organization, what kinds of events are happening on your website and which ones are relevant to a conversion.</p>
<p><strong>Everything that happens on a website can be tracked.</strong></p>
<p><img class="alignnone size-full wp-image-528" style="float: right; margin: 0 0 1em 1em; border: 1px solid #777;" title="Events in Google Analytics" src="http://www.napkyn.com/n/wp-content/uploads/2011/06/events-ga.png" alt="" width="370" height="152" />At <a href="http://www.napkyn.com/">Napkyn</a>, we don&#8217;t really do implementations, almost as a rule. Our focus is on helping our clients expand the value of their sites. If we sold developer time, we&#8217;d be focused too much on building implementation frameworks and running up project hours, which isn&#8217;t valuable. But we do review our clients&#8217; implementations and make our recommendations about what else should be tracked &#8212; what data we need to tell them how to grow their online business.</p>
<p>When we make these recommendations to clients, more often than not, the answer is something like, &#8220;wow, you can really track that?&#8221; Sometimes that sparks a further list of, &#8220;what about this, and this, and this?! Can you track these?&#8221; The answer to those questions, 95% of the time, is &#8220;yes, we can track that.&#8221;</p>
<p>Strictly speaking, <em>any </em>user interaction on a website can be tracked. This includes anything that&#8217;s clicked on, moused over, spoken with. I say, &#8220;strictly speaking&#8221;, because the things we can&#8217;t track are the little bits that aren&#8217;t on the website itself. Obviously, things like whether the planes are on schedule at O&#8217;Hare and whether or not it&#8217;s raining in Fiji are off-limits for a web analytics tool, unless you happen to be the O&#8217;Hare airport or a news outlet in Fiji. Less obviously, things that are contained within iframes (small windows within a site that load in content from another site) as well as some externally-hosted JavaScript applications can&#8217;t be tracked by the page they&#8217;re on.   This includes some versions of Facebook Like buttons and other social media sharing icons.</p>
<p><strong>Everything that happens on a website <em>should</em> be tracked.</strong></p>
<p>That claim goes beyond my analyst&#8217;s desire to have the whole picture, to sift through every bit of data I can to get killer insights. This isn&#8217;t a quest to know everything about everyone who browses a website. This is about knowing how valuable each ingredient is. You don&#8217;t want useless clutter, but you don&#8217;t want to throw out anything good. So, we need data to determine the value of every interactive piece of a website.</p>
<p>So, everything on your site should be worth tracking. The reasoning is simple: <strong>If there&#8217;s something on your site that&#8217;s not worth tracking, it&#8217;s not worth having on your site.</strong></p>
<p><img class="alignnone size-full wp-image-529" style="float: right; margin: 0 0 1em 1em; border: 1px solid #777;" title="Omniture Custom Events" src="http://www.napkyn.com/n/wp-content/uploads/2011/06/custom-events-omniture.png" alt="" width="236" height="136" />Of course, you have to prioritize what tracking you&#8217;ll add first. If you&#8217;re missing it, the first things you should track are your<strong> macro conversions </strong>&#8211; the ultimate goals of your website: Sales. Lead forms. Donations. This will depend on what your site is about, but you get the idea. This is crucial, and web analytics is next to useless without it.</p>
<p>Next up, track your<strong> micro conversions</strong> &#8212; conversion-related events that drive towards a conversion. An add-to-cart button is a micro conversion. We can argue about semantics, but I count things like newsletter sign-ups as micro conversions. They&#8217;re not the goal of the site, but they get you something valuable: permission to market to someone later.</p>
<p><strong>Engagement events</strong> are third on my list. Some others, like <a href="http://www.kaushik.net/">Avinash Kaushik</a>, count these as micro conversions. This is all semantics, of course, but I like to, at a higher level, differentiate between events that are and are not driving someone towards being a customer. Signing up for marketing emails does that. Adding a product to a cart does that. Clicking a Facebook &#8220;Like&#8221; button does not. These events may still be valuable and certainly show that the visitor is engaged in your website, but they don&#8217;t directly help that visitor become a customer. Other examples include filling out a feedback form or commenting on your blog.</p>
<p>Anything outside of that is <strong>noise</strong>. External links on your blog? Noise. Social media links that take people <em>away </em>from a product page and towards Facebook, Twitter, etc.? Noise. (Yes: That someone &#8220;liked&#8221; a product page without leaving it is valuable. That someone left your conversion-focused site to <em>look at</em> your Facebook page is noise.) Should you track noise? Sure! After all, if you can prove that a feature is useless or even hurting conversions, then you have a case to rid yourself of it. On the other hand, you may be surprised by what the data tells you &#8212; after all, if intuition were perfect, we analysts wouldn&#8217;t have jobs.</p>
<p>You won&#8217;t look at all of this at once, and this isn&#8217;t data for executives. Executives are already drowning in metrics &#8212; this is data that should be at the ready for analysts when hard questions come up. And when the time comes around to make iterative changes or a full redesign, it&#8217;s extremely valuable to be able to see what role each component of your website plays in the overall visitor experience, and most importantly, converting traffic into business.</p>
<p>When such a time comes, you&#8217;ll be thankful that your <a href="http://www.napkyn.com/analyst-program/">web analyst</a> has the data at hand to answer those questions. And if you can get your head out of the traditional page-views&#8211;centric approach, you&#8217;ll stop worrying about what you can track and start thinking about where your next revenue lift should come from.</p>
<p>Until next time,</p>
<p>Colin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/06/23/events-track-everything/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Track Google +1 Buttons with Google Analytics</title>
		<link>http://www.napkyn.com/blog/2011/06/02/track-google-plus-one-buttons-google-analytics/</link>
		<comments>http://www.napkyn.com/blog/2011/06/02/track-google-plus-one-buttons-google-analytics/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 18:25:52 +0000</pubDate>
		<dc:creator>Colin Temple</dc:creator>
				<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Web Tracking]]></category>
		<category><![CDATA[event tracking]]></category>
		<category><![CDATA[Google +1]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[social media analytics]]></category>
		<category><![CDATA[tracking code]]></category>

		<guid isPermaLink="false">http://www.napkyn.com/?p=505</guid>
		<description><![CDATA[In a move reminiscent of Facebook&#8217;s option to put Like buttons out on the web, Google yesterday opened up its +1 website voting to web pages. This social feature, which already allowed you to share results on search engine pages, lets your website users directly &#8220;+1&#8243; content from your site&#8217;s pages. It&#8217;s Google&#8217;s answer to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-513" style="float: right; margin: 0 0 1em 1em;" title="Google +1" src="http://www.napkyn.com/n/wp-content/uploads/2011/06/google-plus-one1.png" alt="" width="142" height="96" />In a move reminiscent of Facebook&#8217;s option to put Like buttons out on the web, Google yesterday <a href="http://googleblog.blogspot.com/2011/06/1-button-for-websites-recommend-content.html">opened up its +1 website voting</a> to web pages. This social feature, which already allowed you to share results on search engine pages, lets your website users directly &#8220;+1&#8243; content from your site&#8217;s pages. It&#8217;s Google&#8217;s answer to the Facebook Like, Tweet This other social sharing buttons.</p>
<p>As analysts, we naturally want all of the data, so my first thought was, &#8220;OK, how do we track this thing?&#8221; As it turns out, Google thought of that as well. When you&#8217;re creating your +1 button, there&#8217;s an Advanced Options area which lets you customize the button. One of those options is to reference a callback function &#8212; JavaScript code that will execute when a +1 event happens. This is the perfect place for a little Google Analytics event tracking.<br />
<span id="more-505"></span></p>
<p>The code you get from Google will look something like this:</p>
<div style="padding: 1em; border: 1px dotted #444; background: #fff; color: #222;"><code><span style="color: #008000;">&lt;!-- Place this tag in your head or just before your close body tag --&gt;</span><br />
<span style="color: #000080;">&lt;script type=<span style="color: #008000;">"text/javascript"</span> src=<span style="color: #008000;">"http://apis.google.com/js/plusone.js"</span>&gt;&lt;/script&gt; </span></code>&nbsp;</p>
<p><code><span style="color: #008000;">&lt;!-- Place this tag where you want the +1 button to render --&gt;</span><br />
<span style="color: #000080;">&lt;g:plusone&gt;&lt;/g:plusone&gt;</span></code></p>
</div>
<p>The first part, the <code>&lt;script&gt;</code> tag, doesn&#8217;t need to change and will need to be put in your header no matter what. What will change is the second part, the <code>&lt;g:plusone&gt;</code> tags. If you choose to add a callback function, it&#8217;ll look something like this:</p>
<div style="padding: 1em; border: 1px dotted #444; background: #fff; color: #222;"><span style="color: #000080;"><code>&lt;g:plusone callback=<span style="color: #008000;">"track_plusone"</span>&gt;&lt;/g:plusone&gt;</code></span></div>
<p>In this example, I added a callback named <strong>track_plusone</strong>. This is a reference to a JavaScript function called &#8220;track_plusone&#8221; that will need to be defined on the page as well.  Here&#8217;s the code for my initial function:</p>
<div style="padding: 1em; border: 1px dotted #444; background: #fff; color: #222;"><code><span style="color: #000080;">&lt;script type=<span style="color: #008000;">"text/javascript"</span>&gt;</span><br />
<span style="color: #000080;">function </span>track_plusone<span style="color: #000080;">(</span>gpovote<span style="color: #000080;">)</span> <span style="color: #800000;">{</span><br />
<span style="color: #000080;">_gaq.push(</span><span style="color: #800000;">[</span><span style="color: #008000;">'_trackEvent'</span>, <span style="color: #008000;">'Social Shares'</span>, <span style="color: #008000;">'Google +1 Vote'</span>, gpovote.href<span style="color: #800000;">]</span><span style="color: #000080;">)</span>;<br />
<span style="color: #800000;">}</span><br />
<span style="color: #000080;">&lt;/script&gt;</span></code></div>
<p>What this function does is fires a Google Analytics event tracking code. It sets the category of that event to &#8220;Social Shares&#8221;, the action to &#8220;Google +1 Vote&#8221; and the label to the URL of the page the button was clicked on. You can change the category and action to suit your own conventions, of course. The page is technically available in the new GA interface, where you can view events by page as well.   The result is an event that shows up in Google Analytics whenever an item is voted for. Events take anywhere from one to 24 hours to show up, and appear within the <strong>Content &gt; Events</strong> area of the Google Analytics user interface.</p>
<p>There&#8217;s one other feature we need to account for. Not only can visitors click the button to +1 vote for a page, but they can click it again to undo their vote &#8212; effectively giving you a -1 vote. We&#8217;ll need to be able to distinguish between initial +1 votes and -1 vote &#8220;undo&#8221; events. So, here&#8217;s a revised version of the function, which gives you two kinds of event actions: &#8220;Google +1 Vote&#8221; and &#8220;Google -1 Vote (Undo +1)&#8221;. Again, you change those details to match your conventions.</p>
<div style="padding: 1em; border: 1px dotted #444; background: #fff; color: #222;"><code><span style="color: #000080;">&lt;script type=<span style="color: #008000;">"text/javascript"</span>&gt;</span><br />
<span style="color: #000080;">function </span>track_plusone<span style="color: #000080;">(</span>gpovote<span style="color: #000080;">)</span> <span style="color: #800000;">{</span><br />
<span style="color: #000080;">var </span>gpoaction = <span style="color: #008000;">'Google +1 Vote'</span>;<br />
<span style="color: #000080;">if (</span>gpovote.state==<span style="color: #008000;">'off'</span><span style="color: #000080;">)</span> <span style="color: #800000;">{</span> gpoaction = <span style="color: #008000;">'Google -1 Vote (Undo +1)'</span>; <span style="color: #800000;">}</span><br />
<span style="color: #000080;">_gaq.push(</span><span style="color: #800000;">[</span><span style="color: #008000;">'_trackEvent'</span>, <span style="color: #008000;">'Social Shares'</span>, gpoaction, gpovote.href<span style="color: #800000;">]</span><span style="color: #000080;">)</span>;<br />
<span style="color: #800000;">}</span><br />
<span style="color: #000080;">&lt;/script&gt;</span></code></div>
<p>[ <strong>Update: </strong>Google has also indicated that they will be adding some +1 reports of their own into Google Analytics, so these features will be integrated. You may prefer to do it that way, but one of the reasons we're using this code is that it allows our "social shares" events to be grouped and roll up into one category. At a glance, we can see how many shares happened on the site, and then drill down to see which services they came from. It's all about getting the right structure you want for the way you look at your site's features. ]</p>
<p>[ <strong>Update 2: </strong>Google has now unveiled its new reports for tracking social media interactions. The integrated +1 tracking is now combined with a new version of the event tracking code that's specific to social media. I added a post on tracking <a href="http://www.napkyn.com/blog/2011/07/06/track-facebook-like-google-analytics/">Facebook Like buttons using Google Analytics social tracking</a> to showcase the new code, but the +1 buttons have this feature automatically, so strictly speaking, you don't need to add this yourself anymore. We still use this code to show these alongside our existing events for social tracking, at least until we get more data from the new method and phase the event tracking version out. ]</p>
<p>This kind of tracking lets your <a href="http://www.napkyn.com/analyst-program/">web analyst</a> answer questions about the value of these Google +1 buttons, and the voters who use them. Are people who +1 vote for products the same people who purchase them? Do those people tend to come from social media themselves?</p>
<p>Social media is notoriously tough to track, so answering questions like this can be very useful to understanding what exactly you gain by adding these buttons to your site. Are they worth it? Let the data tell you.</p>
<p>Until next time,</p>
<p>Colin</p>
<p><strong> </strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.napkyn.com/blog/2011/06/02/track-google-plus-one-buttons-google-analytics/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

