Where Should The Google Analytics Tracking Code Be Placed?

Before I even start talking about this, let’s go to code.google.com for the official recommendation on where someone should place their Tracking Code on their webpages…

The Analytics snippet is a small piece of JavaScript code that you paste into your pages. It activates Google Analytics tracking by inserting ga.js into the page. To use this on your pages, copy the code snippet below, replacing UA-XXXXX-X with your web property ID. Paste this snippet into your website template page so that it appears before the closing </head> tag.

Google Analytics Asynchronous Tracking Code

The Google Analytics Asynchronous Tracking Code

Ok! Thanks for reading, see you next time!

Just kidding, of course it’s not that simple.

So seriously, where should I put my Google Tracking Code?

We actually get people asking us about this a lot. It’s one of the first items in our audits that we look at. What version of the tracking code are you using, and where is it on the page. There are plenty of variations, but the most common one if it’s not completely up to date, is having non-Asynchronous (or ‘traditional’) tracking code, which is placed at the bottom of the page.  So when the first item in our audit says “We recommend you update to the Asynchronous tracking code, and move it’s placement into the <head> of your document, rather than at the end of the <body>” people get worried.

Is it bad to have the Google Tracking Code at the bottom of the page? I read that you should put it there at the bottom, rather than up in the head because it makes your site faster.

Headless fish bodies

Should you place the tracking code in the <body>?

The quick and dirty answer is that yes it’s safe to put the new code really anywhere on the page, and for 99% of users, you’ll want to use the Asynchronous code and put it in the head of your document. There are a few exceptions/alterations which I’ll note in a minute.

The less quick part of that answer is that it WAS bad to put the traditional Google Tracking Code in the head of your webpage in the past, so if you read some book or blog purporting to speed up your website extolling the virtues of putting the Google code at the bottom of the page, then they may have been correct once, but they aren’t anymore. The speed of the internet, and all that jazz.

Google released the Asynchronous Tracking code on December 1st, 2009. Prior to that point all we had was the traditional code, and it worked like most other basic JavaScript code. That is to say that it would go one line at a time. So when your browser loaded up a line of code, it would load that line only, and then wait till that line was fully loaded. Then, and only then, would it move to the next line, and then load that line, etc. Like a single conveyor belt. The problem with that design though, is that if you ran into a snag the entire page would hang. So if the Google Tracking Code back then was placed at the top of your webpage in the head of the document, then the speed your site loaded was partly determined by how quickly Google sent you that code. If it took Google 10 seconds to send you that code, that was 10 more seconds your visitor had to wait to view the page. That’s why it was recommended to put that code at the very bottom of the page. That way if it stalled in loading the files from Google, at least your page was loaded first.

The Asynchronous code though works differently. Rather than say a SINGLE conveyor belt, now there are multiple ones, and the rest of your page can load up regardless of how long it takes to retrieve data from Google. The tracking code loads up on its own conveyor, while the rest of your site loads on another.

And on top of that the Asynchronous code is designed to be downloaded only once from Google, and then it’s served from your cache (i.e. it’s saved on your computer and you won’t have to download it again), which makes it that much faster.

You lost me poindexter, what does that mean for me?

It means the asynchronous tracking code averages a 5% improvement in tracking data, with some sites showing 10 and even 20% improvement in their data. If you use Adwords, it closes in on 100% accuracy with the asynchronous code.

The asynchronous code is faster, and therefore you get better more accurate numbers as to how many people are actually visiting your site.

What if I have events or things happening on the page, where I need to record user actions, and the tracking code hasn’t loaded yet?

Well, that problem would also happen if you had the non-async code firing at the bottom of the page, but with async it’s much better. Even if it takes time to load the ga.js file from Google, it’s already set up the tracking variables on the page, and will store the events you perform before the actual file is loaded. Once the file loads, then all the events backlogged will be sent to Google. It’s not PERFECT, but for the most part it will capture events that happen prior to the Google tracking code has even finished loading, and send them after the code has been loaded.

So do I need to move it to the head of all my pages? I have a lot of pages, and that’ll take a lot of time.

Fish heads

You can put your tracking code anywhere, but it's better in the <head>

Nope. You can put it anywhere you want really, and It’ll run anywhere on the page whether it’s in the head or the body.  It’s recommended you put it in the head though, so it can be as accurate as possible.

You see, the Pageview is recorded only after that code is loaded up. So the sooner you load the code, the sooner that Pageview is recorded. Let’s say you have a big blog page, and it’s a slow loading one, taking even 10 to 20 seconds to load everything up. If your Google Code doesn’t start until the end of the page, it can get held up, just like the old non-asynchronous code used to hold up OTHER lines of code. Except now it’s holding up the tracking code. If a visitor to your site hits the page, and then leaves it before the tracking code fires the Pageview, then you lose that visitor. They now become a new direct visit to whatever page of the site they landed on. This can make all sorts of data on your site incorrect.

So it’s best practices to use the Asynchronous code in the head of your page, it won’t slow down the rest of your page from loading, and by having it there it won’t GET slowed down by the rest of the webpage either, so it’ll fire sooner, and you’ll get a more accurate count of what pages your visitors visit.

So what are the exceptions? When is it BAD to run the tracking code up in the head?

I mentioned before that there ARE a few exceptions. One is if you’re setting custom variables on the page.

If you set a Custom Variable on your webpage then it will essentially sit on your page, waiting for either a pageview to be tracked, or an event to be called. If you set a custom variable on a page and don’t track a page or an event after it, that custom variable will NOT get passed to Google. Sometimes you might not be tracking any events on a page, but you’ll want to set a custom variable. Because of how code is delivered, it’s possible that custom variable might only get generated AFTER the head document.  Usually a page can be coded so that these variables can be determined before the HTML is delivered and then you can have the custom variables created in the head of the document as well. Maybe it could theoretically be put in the head, but the developers didn’t build the page that way, and you’re not willing or able to have them redo everything. In those cases you can set a Custom Variable anywhere on the page, and then rather than tracking the pageview in the head of the document, you remove this line:

_gaq.push(['_trackPageview']);

from the Asynchronous code, and then insert it later in the page wherever you like, after the custom variables are set. That way the code loads up, it doesn’t interrupt the page load, and you can then track custom variables on the page itself anywhere they appear, as well as retaining the benefit of loading the tracking code early.

HOWEVER, this can also reduce accuracy, because if a user navigates away before that trackPageview is called, then you’re facing the same problems that the traditional code presented in the first place. Another option would be to use Event Tracking. An event being fired will also submit that queued custom variable, so you could fire an event tied to that custom variable. Essentially a throwaway event.

_gaq.push(['_setCustomVar',1, 'Status', 'Logged In']);
_gaq.push(['_trackEvent', 'Custom', 'PageLoad', 'Setting Logged In State',0,true]);

A couple notes on this:

First we’re setting the Custom Variable, we’re assigning it to key space 1 (of 5), and we’re calling it Status, and setting the value to Logged In. That’ll sit there until an Event or Pageview is tracked.

So we do the event. We set it to a Custom category group, we definte the action as PageLoad because a user isn’t specifically interacting with this event. Then we set the Label as to what the event is doing. We add a 0 to the value (you don’t have to add an actual value there if we’re not using it, but I’m personally uncomfortable passing nothing). We also then set the non-interaction value to true. This is also key if you use an event here. If you don’t set it as true, then the event is considered a page interaction, and it will affect your bounce rate from the landing page. Essentially rather than someone coming to your page looking at it and hitting the back button being considered a ‘bounce’ It would not be considered one because the user ‘interacted’ with the site. So we set this to true, so that isn’t considered in that respect.

But wait, I read something on Google’s own support pages that said I shouldn’t do this?

You mean this page?

Yeah, you don’t believe everything you read, do you? That’s old outdated support information.

So if we update is it going to change my data? Like am I all of a sudden going to see more pageviews or something?

It’s possible. It depends on your site, where the code was, what sort of speed and pageload times you have. By updating you should see the data you’re getting change, maybe a little, maybe a lot. But it’ll be MORE ACCURATE data. Here we tend to side with getting the data to be as accurate as possible, even if there is a bit of a break in the levels of reporting.

If I don’t update, will my site continue to track data?

Sure. It probably won’t be as accurate, but depending on your site it’s conceivable it’s not a huge data difference. The main functions are all loaded from the same place, the ga.js file. The main difference is how it loads, how fast it loads or is even cached in your browser, and therefore the accuracy of your data.

So what should I do?

If you’re NOT using the up to date Async code you should update to using that. You’ve really got to have some serious things going on to NOT update. Does it need to be in the head of the document? No, it won’t kill you to have it at the bottom of the page, but if you CAN move it to the top, then you should because it’ll be faster and more accurate. If you don’t know of a reason to keep using the non-async code at the bottom of the page, and you’re not using custom variables… Then really there is no reason to NOT update it and move it to the top of the page. You’ll have more accurate data, you’ll get newer and better tracking features, and more. Come on. Everyone’s doing it.

Measuring Sitelinks from your Google AdWords Campaigns

 

 

PPC experts know how important the ability to test and measure results is.  Thankfully, we have the ability to do this with sitelinks as well.  The ‘Ad Extensions’ tab within the Google AdWords UI offers advertisers data that is specific to sitelink performance.  Also, keep in mind that all of this data is rolled up when viewing data for the campaign overall – there’s no need to add the numbers together to get the total, as AdWords already displays the campaign data in that way.

One question I get often, however, is how advertisers can view more detailed data for sitelinks, such as conversion data or performance for individual sitelinks.  While we don’t have the ability to view this data within the AdWords UI, we can see it within Google Analytics.

Set up Tracking Parameters

In order to track in Analytics, you’ll first need to attach tracking parameters onto the URL of the sitelinks you are using.  I usually set mine up as sitelink = [description of sitelink here], so for example:

www.CompanyA.com/contactus?sitelink =contactus

Remember, when attaching tracking parameters to any URL, use ‘?’ to separate the URL from the tagging if the URL does not already have a question mark in it; if the URL already contains a question mark, you’ll want to separate your URL from your parameter with ‘&’ (even if the URL already contains an ampersand).  SearchEngineLand offers a great article on how to set up parameters.

View the Content Report

Once the parameters are in place and you have confirmed the link still works correctly, you can view data for sitelinks within Google Analytics by clicking on Content, followed by Site Content and then Landing Pages.  Search for your designated parameter in the search box.  From here, you can drill down in the Google Analytics interface to determine additional information about the sitelinks, such as which campaigns triggered them, etc.

 

Custom Reports

Another way to view sitelink performance within Analytics is to set up a custom report that will be saved within the analytics profile for quick viewing in the future.  To do so, you’ll need to ensure that tracking parameters have been set up for the sitelink URLs (discussed above).

Within the Google Analytics profile you wish to track sitelinks in, click on Custom Reporting, then New Custom Report.  Name the report so that you will be able to easily identify it as the Sitelinks report when you view the Custom Reporting tab (I always name mine Sitelinks Report).  Since my sitelinks report usually only has one tab, I just name it “Sitelinks.”  I also prefer to view the data by Explorer as the type.

 

Choose the metrics you would like to view for your sitelinks – this can be limited to just visits, or as many metrics as you’d like, including bounce rates, time on site, etc.  Metrics can be combined into one metrics group or multiple metric groups.  Name your groups something easily identifiable.

Next, you’ll choose the dimensions for which you’d like to see the sitelink data.  I normally like to view campaigns, ad groups, keyword and landing page data at the very least.  Note: Landing Page (Listed under Content) must be chosen for the custom report filter to work!  The dimensions you choose can be basic like this, or contain more detailed data such as ad slot position, day of the week, medium, etc.

You’ll then need to add a filter for the custom report to pull data for.  Click Add Filter, then click Content, Landing Page.  Ensure the first box says “Include.”  Click the drop down box that says “Exact,” and click on “Regex.”  Then, in the box to the right of that, type in the tracking parameter that you would like use to filter for sitelinks.  I set my custom reports to filter for the word “sitelink” within the landing page, because my parameter contains that word.

Click save, and you now have a Custom Report you can use to view sitelink information quickly.  You will only have to make the sitelink report one time, but you can always update it to view more/less data.

Here is what your completed Custom Report page might look like, before clicking Save:

 

Implement sitelinks in your Paid Search campaigns, and use the AdWords UI and Google Analytics to track their performance.

6 Ways to Use Quora for Research





This article was originally published in Social Times.

Have you ever used Quora before to solve an unanswered question or start a conversation about an interesting topic? As a platform, Quora allows its community to post and answer questions about anything of their choosing to gain collective knowledge. One way to take advantage of this question and answer based feedback is using it for your day to day researching needs.

Quora Research

Follow Boards on Any Given Topic

This past December Quora launched boards, making it easier to organize questions and answers on a particular topic. This newly launched feature is a great research tool because it often pulls quality conversations and articles all to one place. It helps bring the best content on a topic to the top of the board based on votes by the Quora community. Think of it as a search engine based on the input of your friends, followers and surrounding community on Quora.

Quora Boards

Insider Travel & Public Transit Advice

Follow questions, topics and boards about your city to get tips on the most effective ways to get around. Search for phrases related to your city like New York Travel or Philadelphia Airport to find alternate routes, time savers in the airport, less traveled back roads, the locations of affordable parking garages, etc.

Quora Travel Question

Recipes & Cooking Tips

Planning on cooking up a Mexican feast, but can’t quite remember what ingredients taste best to make your own guacamole? Quora gives you the opportunity to rely on genuine feedback from real people, often your friends that have been there and already cooked that. Take a gander at the many recipes available with insider tips into what worked with that recipe and what really didn’t.

Quora Cooking Advice

Restaurant & Shopping Suggestions for Your City

Quora can help if you’re looking to research where to get a specific type of food in your area but you just don’t know where to start. Your network of friends and family are often the best sources of recommendations for dining and shopping, but they can’t possibly know it all. This is where you can look and see if someone had the same question previously or post your question for some in the Quora community to answer. Use it as barometer for what range of restaurants and stores are available in your area, reading the feedback on that question or topic about a particular type of food, restaurant, store or product.

Quora Coffee Shops

Business Insights from the Experts

There are many aspects about the business world that aren’t easy and it’s okay to ask for help sometimes. A question or an issue with your business may not require hiring an expert, but nevertheless you might need some input. Turn to Quora as a research tool by searching if your question already exists or if you should post it under a particular topic or board to get expert input. This can be extremely helpful if the answer to your question is from a valid source, look up who answered your question just to be sure. Nevertheless, answering a quick question like the one above can be done rather quickly and for free, letting you get back to running your business with added insight.

Quora Business Insights

Help on the Job/Hiring Front

Looking for a job can often be a long, tedious process. Having as many outlets for finding jobs as possible can help streamline your efforts. Therefore, be active on Quora and other social channels, especially if you’re looking for a job in a tech based industry. Fill out your profile to its fullest and participate by answering and posting questions on a variety of topics as an expert in your field. See who else is posting and what they’re posting about. Many experts weigh into discussions on Quora, follow them and see what makes them tick. Learn what you can about the companies they run or the companies they work for, getting to know them as you go along. You can get an insider’s look into a company’s culture, while getting your name and some recognition so that you’re more than a faceless resume.

Quora Job Question

On the other side of the desk, you can learn what others in HR are doing to find qualified candidates. See if the types of questions and screening tactics you’re using are working for others or if you need to sharpen your approach to the hiring process. Search for phrases like jobs, employment and human resources to see what job seekers and HR experts are curious about so you can learn from their discussions and contribute.

GoalCopy Updated for Firefox 9

If you’re not familiar with the Goal Copy Firefox extension, you can read the original post here.

It seems like everyone I know is using Chrome now. It’s fast, it’s simple, it has developer tools built right in. It’s a fantastic browser and it deserves every bit of browser share that it’s taking away from the Big Two (Firefox and IE).

That being said, I do almost all of my Google Analytics debugging in Firefox. I love HttpFox and you’ll pry Firebug (and, to a lesser extent, Firecookie) from my cold, dead hands. Maybe I’m just set in my ways, but it’s the way I do things, and while I love Chrome for everyday browsing, I do all my heavy lifting with the ‘Fox.

Which is why I keep updating GoalCopy. This latest version works with Firefox 9. It still only works with the old interface, but an update for GA v5 should be ready in a few weeks.

For now, just download the latest version of GoalCopy here and get to copying! You might encounter a weird glitch where only the Find/Replace toolbar shows and the Copy/Paste options are nowhere to be found. Just re-enable it through the new Firefox menu as shown below:

GoalCopy menu options

What about you? Have you made the switch to Chrome, or are you sticking with Mozilla? What sort of features do you want to see in a Google Analytics add-on? Please leave a comment below and let me know!

Google Privacy Policy Updates – a Web Geek’s Perspective

Google announces that it will be passing user information across product lines to move forward master plans to create a more unified user experience. Nerdy commentary is provided.

Your Data on Google

(Their drawing, not mine.)

On Tuesday, Google announced it will be changing its current privacy policy and Terms of Service, effective March 1.  Google’s made a bit of a deal out of this – you’ve probably seen the links at the middle or bottom of the Google home page or the yellow box:

This Stuff Matters

(It’s nice to see Google making such a “buzz” about changes to user privacy;)

This is another notable display of transparency, what with Google announcing the changes over a month in advance and doing its best to publicize them. And let’s not forget Google’s Transparency Report, which shows figures and compliance rates on government User Data Requests and Content Removal Requests – an incredibly interesting report on international privacy, government, and freedom of speech that I could discuss for hours. But to get back to the Google’s Privacy policy and TOS, Google has clearly broken the bank on the latest computer animation technology to provide a video explaining the changes. The new policy utilizes the simplest language lawyers are capable of, and does seem more user-friendly. Clearly, Google is at least concerned with other people’s concerns with privacy, and is doing its best to pre-empt the inevitable backlash and curb mass hysteria by being clear and transparent.

Current Privacy Policy screenshot

VS.

New Privacy Policy Screenshot

But is anything really changing? At first glance, the new policy and the current main policy look very similar, albeit one uses more accessible language. The language change and additional explanations of data collection methods and geeky terminology actually helps the new policy seem a lot less creepy. The real difference is that  Google will be replacing over 60 additional privacy policy statements (that huge list on the right) into a singular master Privacy Policy for (nearly) all of its products. According to Google, they aim to “create one beautifully simple, intuitive user experience across Google…  In short, we can treat you as a single user across all our products.”

That’s why Google will now share user data amongst its products such as YouTube, Maps, Gmail, and even Android. That’s where the creepy factor rears it’s head again. Not every one is keen on the possibility of their e-mails, chats, video history, search history, and Maps usage to be tied together to their identity. For those concerned about their privacy, I highly recommend Google’s consumer education center on Internet privacy and security as well as Google’s center of various privacy control tools.

The positive for consumers is that sharing of data really should result in some really cool functionality enhancements. Overall, Google is getting to know you better, and this should result in more relevant search results and recomendations and better predictive features for autcorrect, voice recognition, and the like. According to Google, they “can provide reminders that you’re going to be late for a meeting based on your location, your calendar and an understanding of what the traffic is like that day. Or ensure that our spelling suggestions, even for your friends’ names, are accurate because you’ve typed them before.” Not too shabby.

But the bottom line is… well, the bottom line. A better user experience naturally equates to greater market share. Perhaps more important is that all of this data will drastically improve Google’s ability to serve relevant ads. And more relevant ads means more ad clicks. And we know what that mean$.

As an Internet marketer, I’d be lying if I didn’t tell you I was absolutely fascinated by the unprecedented ability to combine, with anonymity, consumer behavior data such as video viewing tendencies, search history, common topics of discussion (in email and chat), engagement levels for various subject matters (via email and site bounce rate, time on site, video viewing time, etc.), and geo-location. Serving a man an ad for a flower store using a picture of orchids located on the way to his dates’ house right after his calendar reminds him of his date might be weird, but it’s still hella intriguing to this nerd.

As an SEO, I can’t help but notice there will be more data than ever to assist advertisers, but SEOs, webmasters, and others dependent on Google Analytics are not provided with such luxuries. In fact, the move to pass more data across Google properties works best if more folks are logged in – and you can bet Google will continue to encourage sign-ups and logged in usage. Thus, we can continue to see  keyword referral data for organic visits become less useful as (not provided) numbers continue their ascent. Perhaps the (not provided) move really was to make web marketers more relient on AdWords. I tend to see it more as a PR move – a symbolic gesture to watchdogs and concerned consumers that Google really cares about privacy – so that Google might get less flack as it changes privacy policies in order to synergize its empire of advertising real estate. It might be a meaningless gesture since users identities have always been seperate from their keyword data, but PR does stand for perception of reality, right?

Speaking of PR, it will certainly be interesting to see how all this privacy stuff plays out in the public arena. What are your sentiments, readers?

How to Track Conversions for Both Internal and External Campaigns

After you learn about campaign tagging for Google Analytics, you may be excited that you can add all that extra information to a simple little link – so excited that you want to put campaign tags on every kind of promotional link that leads to a web page on your site. But there’s one kind of link that should never get campaign tags. You should never put GA campaign tags on internal banners or on-site promotions that lead from one page of your site to another.

Why You Shouldn’t Use GA Campaign Tags for Internal Promotions

Imagine this sample scenario: A visitor clicks an email campaign link from your latest marketing effort and lands on your site. Google Analytics records the traffic source and starts collecting data for the visit. Of course you hope that the visitor will continue to view pages on your site and maybe even convert on an important goal like registering for an upcoming conference or buying your latest e-book. When they do, you’ll be able to attribute that conversion to the campaign and evaluate that campaign’s success.

But what happens if the visitor clicks an internal banner with campaign tags before they convert? Google Analytics records a new traffic source and starts a whole new visit. So now you have at least two problems: You’ve split what was really one visit into two visits, skewing your data. And you can’t tie the original email link directly to the conversion, because the conversion happens in a separate visit.

To track internal promotions without splitting visits and losing credit for conversions, try one of these instead:

  • Add your own campaign parameters (not GA campaign tags) to the links and view the data in your Content/Pages reports
  • Use event tracking when a visitor clicks an internal banner or promotional link and view the data in your Content/Events reports

Alternative #1: Add Your Own Campaign Parameters

The first method involves making up your own tags, ones that GA won’t recognize and will pass right along into your Pages reports with the rest of the URL. Instead of utm_source or utm_medium, for example, you might simply add something like “from=promo” to the target link:

http://www.anything.com/buy-ebook.html?from=promo

Or you could use a more detailed scheme if, for example, you run internal promotions with many types of links in different places. So you might have one parameter similar to campaign name, like “campname=e-book”, and another parameter that describes the links, like “camplink=home-page-banner” or “camplink=side-nav-feature”:

http://www.anything.com/buy-ebook.html?campname=e-book&camplink=home-page-banner

http://www.anything.com/buy-ebook.html?campname=e-book&camplink=side-nav-feature

As long as you stay away from Google Analytics utm parameters, these types of URLs will appear in your Content/Pages reports and you can tell by the number of pageviews exactly how many times a visitor clicked the tagged link to arrive there.

Internal campaigns in the Content Pages report

Alternative #2: Use Event Tracking

The second method involves adding a bit of code to the link on the page. Inside the anchor tag (a href=”…”) include an onclick event like this (a href=”…” onclick=”…”). And in the onclick event, add the event tracking code using an event category and action like “internal promo” and “home-page-banner”:

onclick="_gaq.push(['_trackEvent', 'internal promo', 'home-page-banner', this.href]);"

After the event category and action it’s a good idea to include the optional event label. For the label you can simply write the target (href) of the link, using this.href.

View this data in your Content/Events reports by drilling into Top Events through the “internal promo” category, where you can see the how many times someone clicked each of your different internal promotional links.

Internal campaigns in the Top Events report

Combine with Custom Variables for Goal Data

Okay, so where’s the goal data? You may have noticed that Google Analytics has Goal tabs in Traffic Sources reports, but not in Content reports. The whole point of these alternatives was to keep your original traffic source intact so you could tie it to a conversion. But you probably also want to know how well your internal promotions lead to conversions, too, right? Of course you do.

Well, there’s another set of reports that has Goal tabs, where you can combine conversion data with a set of dimensions that you define, and that’s the Audience set of reports. You can write a custom variable with the parameters or event data you created in either alternative described above. And then you can easily compare goal conversion data in a single table that lists all your internal promotions.

Conversion Data in Custom Variables report

The thing to remember when writing custom variables is that the data needs to piggyback on a _trackPageview or _trackEvent call.

For the event tracking alternative, add _setCustomVar to the onclick event, like this:

onclick="_gaq.push(['_setCustomVar', 1, 'internal promo', 'home-page-banner', 2]);_gaq.push(['_trackEvent', 'internal promo', 'home-page-banner', this.href]);"

For the other alternative where you make up your own campaign parameters, I suggest adding _setCustomVar to the page that’s the target of the link, right before the usual call to _trackPageview. You can use a little Javascript to read the URL and write the custom variable according to the campaign parameters that appear there. For example, if the URL is:

http://www.anything.com/buy-ebook.html?campname=e-book&camplink=side-nav-feature

The resulting custom variable code (placed before the call to _trackPageview) could be something like this:

_gaq.push(['_setCustomVar', 1, 'e-book', 'side-nav-feature', 2]);

In both cases I’ve set a session-level custom variable (indicated by the number 2 above), and I’ve set the custom variable to slot number 1 (out of 5). If you are already using that slot then you’ll need to assign it to another one. Read our post about how to keep track of custom variable slots and scopes for more guidance.

No More Split Visits

Avoid the split-visit problem. Keep visit data together by keeping internal and external promotions separate. Track your external campaigns with GA’s utm parameters and try one of the above alternatives for internal campaign tracking. And tie both external and internal promotions to conversion data to evaluate the success of each.

What methods do you use for tracking internal promotions? And how do you tie them to conversion data? Please share in the comments.

What Does Google’s “Page Layout” Algorithm Update Mean for My Site?

Google’s most recent search algorithm update – dubbed the “page layout” algorithm change – focuses to punish websites whose content is pushed below-the-fold by multiple advertisements. While the forecasted number of searches affected is less than 1%, it’s never a bad idea to use an algorithm update as an opportunity to take a step back and examine your site’s search engine friendliness and usability. It is not an occasion to panic, however. Chances are that your site complies with the updated page layout standard. If it doesn’t, it would be hard for me to believe that this change is anything but a blessing in disguise.

Will My Site Be Affected?

As Distinguished Engineer, Matt Cutts points out in his post on Inside Search, placing ads above-the-fold isn’t exactly uncommon. In fact, many of the most highly trafficked and well respected online information hubs use above-the-fold ads in optimizing their monetization strategy. Hosting doesn’t pay for itself.

page layout

So, will industry websites like Search Engine Watch (which has multiple ads above-the-fold) be punished? Will your site – the one with a big, flashy banner ad at the top – be punished? Unless you’re supplanting your above-the-fold content completely, it’s incredibly doubtful.

In his post on Search Engine Land, Danny Sullivan makes the point that Google actually encourages the use of above-the-fold ads through their AdSense recommendations. The onus, now more than ever, is on the publisher (or webmaster) to make sure that these ads are used tactfully and in conjunction with actual content.

Need to Make Changes?

Long have Google’s algorithm updates catered to the end user (and rightfully so). If your site is guilty of having a page layout that’s top-heavy with ads, it’s time to make some game-changing tweaks. Asking users (and now search engines) to simply “deal with it” isn’t an option. Frankly, if you’re at all vested in the performance of your site and the contentedness of its users, it never has been.

As we’ve talked about before, here at LunaMetrics, conversions rely not only on getting visitors to your site, but also the content and usability of your landing and inner pages. Ask yourself: Is my website providing users with an enjoyable, fulfilling experience, while also serving its end purpose?

top heavy ads

While I wasn’t able to find any especially noteworthy examples of top-heavy ad placement when searching with Google (hmmm), we can compare the user experience that such sites offer (at least, initially) to that of a parked domain. Now, obviously, with a parked domain (like Cheeseburger.com), there typically isn’t any content being displaced by the above-the-fold ads. However, when a user lands on a page that’s dominated by banner and text ads, the effect can be discouragingly similar. A poor user experience and a terribly high bounce rate.

Maintaining Page Layout Balance

Just as it is in crafting a gourmet cheeseburger, maintaining balance is vital to the page layout aspect of your inbound marketing strategy. Too little ketchup or one too many pickles can be the difference between whether or not a customer comes back for more. If you’re designing a new website or prepping for a redesign, keep this idea of balance in mind. If neither is an option, find a way to improvise.

cheeseburger

Remember, the functions of design go far beyond aesthetics. Think about things like ad placement, content-to-ad ratios, the elements of your page that will be visible above-the-fold, below-the-fold, etc. In doing so, you can provide the best experience for not only your users, but also those finicky search engine crawlers.

~

If you’ve found your site a temporary casualty of the page layout update, rest assured that the fixes are relatively clear and certainly implementable. Get some quality content above-the-fold. Limit your above-the-fold ad placement. Redesign if necessary. Improvise if you can. Those are your priorities. Where there’s a will, there’s a way. And where there’s a picture of a succulent cheeseburger, there’s a hungry search analyst. Off to lunch!

If you’ve had a personal experience with one of your websites and the Page Layout algorithm update, we’d love to hear about it! Feel free to share questions and comments below.

Who Are These People Visiting My Website?

This is part 3 of a multi-part series on increasing conversions from your website traffic. If you haven’t already, you should read part one, which introduces the Infinite Conversion Loop. And Part Two which gets your Analytics in order.

Now that you have high confidence in your Analytics, let’s discuss the next step of the Infinite Conversion Loop, identifying your visitors. The first thing to understand when you are trying to improve your conversion rate is that not all visitors are created equal, which is why simply looking at your overall traffic numbers is an empty metric.

On any site you are going to have a wide variety of visitors that all want and expect different things. Here’s just an example of a few of the types of people you may see if you run a website for used car shopping, but these same type of people exist for many sites.

The Cast

  1. Mr. Shotgun – This guy isn’t great at searching, just average. If he wants to buy a new 2012 Audi A6 with leather, his query is probably just “audi”. Then he clicks on the first search result he gets without reading, hits back, clicks the next one, hits back, until he finds something that kind of meets his expectations. These are the people that end up on page 5 of Google result and kill your bounce rate if you don’t have a clear message.
  2. Miss Untargeted – This is the visitor you get from Reddit, Hacker News, Drudge Report, etc… when you post a great blog. They give you that big awesome spike in traffic that never seems to result in increased conversions. They make you feel good about your traffic numbers, but really they have no intention of converting on your website. They also make your site-wide conversion numbers useless, and cause Sys Admins to pull their hair out.
  3. Mr. Confused – This person is running IE6, unpatched, he’s looking for exactly what your website sells, but can’t figure out how to find it on your site, and when he does he don’t trust you because you don’t have the Visa or BBB logo.
  4. Señor Advanced – This person found your website with a query like: used -new acura tl -reviews “low mileage”. Your website is exactly what they’d want, but your refinements don’t let him find what he’s looking for in an efficient way so he leaves.
  5. Mrs. Researcher – She got to you by clicking your ad, she’s looking for what your site sells, and she even finds product she wants, but wants to make sure she gets the best price, so she’ll bookmark your site for now while she looks at some other sites.
  6. Botman 9000 – Some percentage of your traffic will be bots, spammers, or others who have no intention of using your website like a real person, let alone buying something. While the bots won’t usually show up in your analytics, they will often submit forms and do other things that makes your “back end” numbers never quite match up with the Analytics numbers.

This cast are the reason your overall visits mean nothing. These people represent the 98% of people you get daily but are not converting. I could give you a million hits today, but if they are the people in this group, you’ll see $0 out of it. The key to improving conversions is first getting a handle on what type of visitors are likely to convert in the first place, and then optimizing your site to convert those that are not converting now for some reason (some of the above have the potential, but your website has deficiencies that prevent them from doing so).

The Numbers

So first, let’s figure out who IS converting on your site. The first thing I would look at is your landing pages report, ordered by visitors. Specifically the Bounce Rate (The percentage of people that visited that single page then left).

What do these stats mean? First, these are from a profile I use that broadly groups types of content into single URLs. This site has over one million URLs, and I find most useful to categorize everything into types of pages (you can do this with filtered profiles in GA, which is probably the topic of another post). You can see the Index page of the site is how most people are entering by far. 22% bounce immediately, meaning something about the home page felt completely wrong for whatever those people were looking for. We’ll examine how to improve that number in future posts. You’ll notice a few popular blog posts have much higher bounce rates. These are the “Miss Untargeted” that are coming to your site for one-off content, but are probably not interested in buying whatever you are selling. It is interesting to note that one blog only has a bounce rate of 50%, indicating there is something about that post that invites people to dig further into your site.

Next I would look at the Exit rate (The percentage of people that left on a given page). The Exit rate is useful for identifying common pages that people are leaving your site on. This often points to problems on the page or shows you that people are not finding what they want (for example if a search result page is a common exit point). I order this report by Exit rate, filtering out outliers first.

Next look at where your most valuable traffic is coming from. I would do this by going to Sources->All Traffic, clicking ECommerce at the top, and then sorting by Ecommerce conversion rate. In this case, once you take out a few outliers, it looks like search engines (both paid and organic) are giving us the most valuable traffic. Another case of how blogs, social networks, etc… will increase overall traffic but not necessarily contribute to the bottom line (these things may be valuable for SEO though, so I’m not saying don’t do it, just don’t focus on overall traffic numbers as a KPI)

Of course it’s very difficult to read people’s intentions just by looking at numbers. The only real way we can try to find their intent is by looking at what they searched for to get to us (hurry before the number of logged in Google users increases!). Create a report of Organic Search Traffic ordered by Ecommerce conversion rate to see what terms are the most valuable. You’ll usually see some good long tail keywords you never would have considered. I would also sort by 0% conversions to see the keywords you may be wasting your time with. Remember to normalize these results by filtering to see keywords with at least 10 visits or so.

Those are some beginner ways of segmenting users or figuring out what they are trying to do on your site, some proactive ways to segment is the use of Custom Variables. Most people use these to track “logged in users” or what affiliate someone came from, but what about tracking those people who found no search results? That’s what I did here, and there is no surprise there is $0 revenue from those users… perhaps an opportunity to use spelling correction or show similar products.

Using Custom Variables is a great way to create segments of content and visitors to determine easily what types of users, content, etc… leads to the best conversions.

Hopefully using these tips will get you started in figuring out where your traffic is coming from, the next post in the Infinite Conversion Loop series will delve deeper into actually seeing what people are doing on your website.

6 Ways Brands Can Rock Pinterest





This article was originally published in Social Times.

Pinterest was one of the most heavily trafficked social media networks of 2011, which was surprising to many because its rise to success was a quiet one. Pinterest is a form of social bookmarking where users pin different images and YouTube videos from across the web to boards they’ve created based on a subject area of their liking. For instance, you can create a board entitled Best Places on Earth and then pin images of island getaways, beautiful landscapes or whatever images you think fit this board best. Your boards are displayed on your profile for your network to see, like or repin to their own boards if they so choose. You’re able to follow other users and/or their individual boards of content they’ve assembled. Pinterest allows users to sign up through their Twitter or Facebook, which makes it easy to connect with your friends already on the network.

Pinterest Example (Image 1)

This platform presents an opportunity for brands to market themselves in a new arena and truly succeed during the network’s humble beginnings. Here are 6 ways brands can rule at fostering their Pinterest community:

1. Create Custom Images Catered for Sharing

Pinterest is all about discovering images that you wish to share with others in a visually pleasing format. With this in mind, brands should look to create image assets for Pinterest that provide insightful, original or branded imagery and information. After you develop these images, share them on your website and on other social networks to encourage their sharing on Pinterest. The best part of this process is that these images can be pulled from other advertising or used for your other promotional efforts.

EyeLighter Example (Image 2)

For example, Cargo created this image of their EyeLighter product that give users quick and easy tips on how to make their eyes pop. This is exactly the kind of image assets users love to share on Pinterest because it’s visually appealing and gives insightful information at a glance. Brands should take note and continue to create content of this nature in the future.

2. Create a Profile for your Brand
At this point in the game, users can join Pinterest by invite-only. Once added to the network, you can create your account by syncing with your Twitter or Facebook. The same goes for when you’re inviting users to Pinterest, except you can invite them initially via email. Since there aren’t yet brand specific profiles, you’ll have to invite your brand to the network via email. The Facebook integration at this time is only for personal profiles, not pages. Therefore, choose the email associated with your brand’s Twitter account to set up your profile.

Once you’re on Pinterest, it’s time to either keep the profile photo that’s been pulled from your Twitter account or upload a new one. I recommend uploading a new profile photo because this is a different social network with its own unique purposes. To do so, hover over your account name at the top right hand corner and click on settings from the drop down menu. From here you can also alter the name and email associated with account, add a location and website and then add a brief description of your brand. Here you can also choose to link your Twitter to your account publicly.

Whole Foods Pinterest Example

For example, Whole Foods has set up an account and have been actively engaging their community with visually appealing content. This is good example of how you can brand your profile appropriately to appeal to your audience.

3. Add Pinterest Social Plugins to Your Website
There are a few goodies that Pinterest offers brands to add to their websites as a means of connecting their web visitors to their audience on the network.

The Follow Button can be added to your website or blog to allow your web visitors to quickly and easy follow your profile on the network. By giving users the option to follow your brand on Pinterest, you’ll be giving them the ability to look through the images and YouTube videos you’ve shared previously, in the hopes that they’ll share them with their networks again, and you’ll be able to share images and YouTube videos with them in the future since they are now your follower.

Pinterest Follow Buttons

The Pin It Button allows your web visitors to pin the content from your website directly to their boards on Pinterest. This plugin should be added to similar places where you would add a Like or Tweet button. By adding this button, you’re making your web content extremely easy to share on the platform.

Pin It Button

4. Pin Other Industry Content

Pinterest’s etiquette states that users, this includes brands, should shun away from using the network as purely promotional. Sharing images & videos from other industry related user’s boards will help keep your profile community based and not just a promotion center for your assets and products. Repin & like other content that suits your community, which will help strengthen your reach in the long term.

HGTV Example

HGTV’s profile does just this on their Start Gardening board where they share content from both their website and other blogs with valuable content about gardening. This helps them strengthen their relationships with other people of interest in their industry specific community on Pinterest.

5. Add Calls to Action to Your YouTube Videos

The main focus of Pinterest is obviously sharing noteworthy photos, but YouTube videos can also be pinned as well (my guess is other types of content will be able to pinned in the future too). Another means of drawing attention to your content is by adding annotations to your videos, basically a call-to-action for your audience to pin videos they find appealing.

Similar to creating and sharing images that would be ideal for sharing on Pinterest, add annotations to videos that are short, visually appealing and provide true value to your community like a how to video for baking apple pie or to how to apply the right amount of eye makeup. These annotations should tell them the visitor to “pin this video to Pinterest” or provide a link to your Pinterest profile. The annotation serves as another reminder to users to engage with you in another way in a different community.

6. Cross Promote

Since the network is still relatively new, be sure to drive traffic from your existing communities on Twitter, Facebook, Google+ or wherever your audience is actively discussing your brand. Post links to your Pinterest profile, letting your communities know you’re on this network and looking for them to join in and begin pinning your content.

How are you using images & videos on Pinterest to promote your brand?

Google Analytics Configuration Made Easy

Create an account, copy the code, and paste it on every page of your site. Easy, right?

Not so fast.

If you’re just starting out using Google Analytics, you may not be aware of all the advanced code implementations available, much less how to modify the code for your needs. But if you are tracking across subdomains or multiple domains, or if you want to do some advanced tracking with events that’s exactly what you need to do.

To make matters worse, navigating through the labyrinthine administrative interface to find the tracking code snippet can be somewhat daunting. Especially if you’re used to the old version of the interface. And although the code wizard in GA does include several configuration options, the instructions are neither complete nor easy to follow for beginners.

Google Analytics Configuration Tool by RavenTools

To solve these problems, the team at Raven Internet Marketing Tools has built the Google Analytics Configuration Tool. (Full disclosure: we provided consulting on some of the technical details for this tool, so of course we’re thrilled to see it’s birth). They just launched this free tool, aimed at simplifying the process of configuring your Google Analytics. Out of the gate, there are several specific situations they provide instructions for, including:

  • One domain with subdomains
  • Multiple domains with subdomains
  • Site search setup
  • 404 error page tracking
  • Event tracking
  • Setting up goals
  • Tracking Facebook page and referrers

There’s also a URL  builder for tagging your URLs with campaign parameters.

Besides just giving you the snippet of code, the GA config tool leads you step by step, asking questions about what you’re trying to track and then providing the code and instructions of what to do with it. It also provides the code in either asynchronous or the traditional ga.js.

This is a godsend for people who don’t deal with GA on a daily basis. Trying to figure the correct code configurations has generally meant wading through a sea of posts in the help forums, where the information is often outdated and inconsistent. This tool takes the guesswork out of the setup, letting you focus on what matters – your data!

Coming from the folks who also created the Schema Creator (for creating structured markup for your site), not to mention their core suite of internet marketing tools, this will be an essential addition to many digital marketers’ arsenals. They’re already working on adding functionality to help with regular expressions, setting up filters and other points of analytics confusion.

Go try this tool out and let us know what you think. Are there any other GA-related instructions you’d like to see added? What is it about GA that is most confusing to you?

The comments are yours.