Tracking Image Search In Google Analytics

// // March 27th 2013 // Analytics + SEO

(This post has been updated as of 4/5/14 to reflect refinements to the filters as well as new caveats about Chrome.)

The Internet is becoming increasingly visual but the standard Google Analytics default lumps image search traffic in with organic traffic. The problem with that is these two types of traffic have radically different behaviors.

Google Analytics Y U No Track Image Search

So here's a quick way for you to track image search in Google Analytics to gain insight into how images are performing for your business.

Image Search Referrers

After the last big image search update I was asked by Annie Cushing if I'd figured out a way to track images in Google Analytics. I'd meant to but hadn't yet. Her reminder led me to find out what was possible. I fired up Firefox and used Live HTTP Headers to look at the referrers for image search traffic.

I found that there were two distinct referrers for Google, one from Google images and one from images that showed up via universal search results.

Here's what the referrer looks like from Google image search.

Google Image Search Referrer

The parts to note here are the /url? and the source=images parameter. Now lets look at what the referrer looks like from an image via universal search.

Google Image Referrer via Universal Search

The part to note here is that the URL doesn't use /url? but imgres? instead. This means you can track traffic from each source!

But there's another wrinkle I discovered over time. Many of the international versions of Google use the old image search UX which also produces the /imgres? referrer.

google.fr image search for ruby red slippers

In addition, most of these wind up being passed in the Google cookie as a 'referring' medium and not 'organic'. So you might be seeing Google domains cropping up in your referring reports (annoying!). Adding Full Referrer as a secondary dimension shows where the majority of these are coming from: imgres.

Google Referring Traffic in Google Analytics Reports

This means two things. First, we're going to have to create a special case for universal search on google.com so that it isn't mixed up with image search from international properties. Second, we're going to have to change the medium on the international image search traffic so that it is properly attributed to organic.

Finally lets take a look at Bing.

Bing Image Search Referrer

This is pretty straight forward and doesn't change based on whether it's from image search proper or via a universal result.

Google Analytics Image Search Filters

If you know the referrer patterns you can set up some Google Analytics filters to capture and reclassify this traffic into the appropriate buckets. Here's the step-by-step way to do that.

From Google Analytics click Admin.

Google Analytics Admin

That takes you to a list of profiles.

Google Analytics Select or Create a Profile

Here you can either create a new profile or select a current one. I'd suggest creating a new profile to test this out before you decide to integrate it into your primary profile. Because you might screw it up or just may not like the detail or may not want to have the change in continuity. That said, I've created these filters so they'll have the least amount of impact on your reporting while still delivering added insight.

Next you'll reach the profile navigation pane where you'll want to click on Filters.

Google Analytics Filters 2014

At that point you'll want to go ahead and click the red New Filter button.

Google Analytics Red New Filter Button

That's when the real fun begins and you construct a new advanced filter.

Creating a Google Analytics Google Image Search Filter

The first step is to name this filter. This won't show up in your reports and is simply a way for you to know what that filter is doing. So make it descriptive and obvious.

Next you'll want to select the Custom filter button (2) which then reveals a list of options. From that list you'll want to select Advanced (3). This is where it gets a bit tricky.

In step 4 you'll select Referral from the menu of options and then apply some RegEx to match the pattern we've identified. In this instance the RegEx I'm using is:

.*google\.(.*)/url.*source=images.*

I love RegEx, which stands for Regular Expression, but I don't always get it right the first time and regularly rely on this RegEx cheat sheet to remind and guide me. In this instance I'm looking for all Google domains (and  including any international domain using the new image search here) with /url and source=images within the referrer.

In step five you're selecting what you're going to do when a referrer matches your RegEx. I've chosen Campaign Source from the menu and then created a new source called 'google images'. You can name these whatever you like but I keep them lowercase to match the other sources.

You'll note that the 'Override Output Field' is set to Yes which means that I'm going to change the Campaign Source for those that match this referrer pattern from what it is currently to 'google images'. The great part about this is that you retain the fact that the medium is 'organic'. So all those reports remain completely valid.

Finally, you click Save and then you wait for the filter to be applied to traffic coming into the site. Depending on the amount of traffic you get from these sources, it may take a few hours to a few days to see the filter working in your reports.

Next we have to put into place a filter for Google universal images, Google images from international properties not using the current image search UX as well as Bing images.

The RegEx for Google universal search images is:

.*google.com/imgres.*

Note that I'm only looking to match referrers coming from google.com so that I'm not mixing international image search with US universal image search.

The RegEx for Google international search is crazy long and didn't really work pasted here. So instead you can click here to copy and paste the Google 'International' image search filter RegEx.

Now, many of the domains won't match because they're using the new version of image search, which will match the first filter we created. But I figured I'd just be as inclusive as possible instead of validating the current image search UX on each domain. (I mean, it's wicked time consuming too.)

Finally, the RegEx for Bing images is:

.*bing\.(.*)/images/search.*

But we're not done! Close, but not quite.

Changing Google Analytics Medium Filters

So after having these filters in place for a while I noticed that some of the new sources I created were showing up as a medium of 'referring' instead of 'organic. That means you're still short-changing your organic efforts because Google is passing the wrong medium in their cookie.

So you have to create two new filters that change the medium of Google universal images and Google international images.

Google Analytics Filter to Change Medium

This is another Advanced filter but this one is much simpler but must be very precise. In Field A  you're looking for the Campaign Source that exactly matches the source you created in the filter. For me, that means 'google international images' and 'google universal images'. For you, it's whatever you named the new sources.

Then you're simply outputting and overriding the Campaign Medium to organic. Remember, you'll create two of these. One for the 'international' images and one for 'universal images'. My guess is that you might only need the one but I want to cover my bases.

To simplify, all your doing here is looking for the sources you created and then making sure that the medium associated with those sources is changed to organic.

Image Search Filter Order

The final step is to make sure that your filters are in the right order. The last two filters that change the medium based on a specific campaign source (that you created) must come at the end.

Google Analytics Google Image Search Filter Order

This makes sense right? You couldn't match a source that you hadn't already created, right? Stick to this order and you'll ensure image search traffic is tracked appropriately.

Image Search Reports

So what do you get to see in the reports?

Image Filters Create Better Google Analytics Reports

This is data from a client site where I've had all the filters in place for a few days. The medium for all of these is still organic but I've now got new sources for google images, universal images and bing images. (Update on 4/5/14) I've been using these filters successfully for a year now.

What you should see right away is the very large difference in how this traffic performs. Image search traffic in this instance has a 1.5 Pages/Visit and 3:00 Avg. Visit Duration while the web based organic traffic has a 6 Pages/Visit and 6.00 Avg. Visit Duration.

Most importantly, the conversion rate on these two types of traffic is different as well. Segmenting your image search traffic can bring more clarity to your analysis and help you make the right decisions on what's working, how to allocate resources and what to optimize.

Image Search Filter Validation

So how do I know this is really working? I drill down into one of these new sources and then select keyword as the secondary dimension. Did I forget to mention that the keyword data remains in tact?

Google Analytics Universal Images Keyword Report

Yup, sure does! So the next step here is to see if there really is a universal result for these keywords.

Google Search Result for Badass Over Here Real Pic

Sure enough, I'm the second result in this universal search result. Now lets see if the filter for normal image search is working.

Google Analytics Google Images Keyword Report

I'll use 'wifi logo' as my target term and first go to make sure that I'm not showing up in universal search results.

Google Search Result for Wifi Logo

Nope, not showing up there. But am I showing up in Google image search?

Google Images Search Results for Wifi Logo

Sure enough I'm there just inside the top 100 results from what I can tell. So I'm pretty confident that the filter is catching things and bucketing them appropriately. I've also validated this with very robust client data but can't share that level of detail publicly.

What Is images.google?

You might have noticed the images.google source above. What's that you ask? I don't know. But I don't think it's traditional image search traffic since the user behavior of that source doesn't conform to the other three image based sources. It's also a small source of traffic so while my OCD senses are tingling I'm currently ignoring the urge to figure out exactly what images.google represents.

Tell me if you figure it out.

Caveats

You Raise a Valid Point Ice Cream

The big question is why I wouldn't just use the Google Webmaster Tools queries report and filter by image right? Well first off, the integration into Google Analytics still isn't where I'd like it to be making any type of robust reporting near impossible.

In addition, I don't like mixing image search traffic with web search traffic in my normal reports because they're so different. It makes any analysis you do using that mixed data less precise and prone to unintentional error.

More problematic is the fact that the data between Google Webmaster Tools and Google Analytics doesn't match up.

I started looking at specific keywords via my filters versus what was reported in Google Webmaster Tools. There were just too many times when Google Webmaster Tools reported material amounts of traffic that wasn't showing up in my Google Analytics reports.

Google Webmaster Tools Clicks

Here you can see that the top term received 170 clicks in this time frame. Yet during the same time frame here's what the Google Analytics filter based method reports.

Google Analytics Image Based Clicks

170 versus 24! Even if I factor in the (not provided) percentage (which runs about 35% for this client) and add that back in I only get close to 40 visits.

But that's when the lightbulb went off. Maybe Google Analytics is reporting Visits while Google Webmaster Tools is reporting Clicks?

While I can't confirm this I'm guessing that Google Webmaster Tools is counting all clicks on a result. Many of those clicks are going directly to the image and not the page the image resides on. That's important since direct clicks to the image (i.e. - .jpg files and the like) aren't going to be tracked in Google Analytics as a visit. There is no Google Analytics code on these files. The delta between the two could be the number of users who clicked directly to the image.

In addition, this method doesn't catch any of the mobile clicks and visits since no image search visits (and very few universal images) show up using this filter when looking at mobile traffic. I'm pretty sure that the referrers are just getting stripped and these wind up going into direct instead which is part of the iOS and Android 4+ search attribution issue. (If someone else has an explanation here or finds a different referrer for mobile image search please let me know.)

Finally, there's something funky with Chrome. When I look at the distribution of traffic to each bucket Chrome is an outlier for Google images.

Image Filters Browser Distribution

That 3.7% is just way out of proportion. And it's not related to the amount of (not provided) traffic since Firefox actually has a higher percentage of (not provided) 72% than Chrome (64%) in this instance. So I can only conclude that there's some amount of data loss going on with Chrome. Maybe that also contributes to the discrepancy I see between Google Analytics and Google Webmaster Tools.

This got even worse as of January when Chrome stopped passing rich referrer information.

Image Search by Browser

I can only guess that this is part of Google's security and privacy efforts. Sadly, it means you're capturing a lot less detail about image search and your data will be less accurate because of it.

Despite all of these caveats I love having the additional detail on image traffic which has wildly different intent and user behavior. Some insight is better than none.

TL;DR

Apply a few simple Google Analytics filters to gain insight into how much traffic you're getting through image search. This is increasingly important as the Internet becomes more visual and the user behavior of these visits differs in material ways from traditional search traffic.

Postscript: Leave A Comment // Subscribe (RSS Feed)

The Next Post:
The Previous Post:

13 trackbacks/pingbacks

  1. Pingback: SearchCap: The Day In Search, March 27, 2013 on March 27, 2013
  2. Pingback: Marketing Day: March 27, 2013 on March 27, 2013
  3. Pingback: SEO content marketing roundup, week ending April 3rd on April 3, 2013
  4. Pingback: 5 Top Analytics Trick & Tips From Around The Web « SEO Chicks on April 10, 2013
  5. Pingback: Five For Friday — April 8-12, 2013 | SMS on April 12, 2013
  6. Pingback: Other-Worldy & Alternative Link Building – Part II on April 18, 2013
  7. Pingback: SEO Auslese April 2013 | Online Marketing Agentur (Projecter GmbH) on April 29, 2013
  8. Pingback: Google Analytics: come tracciare il traffico di Google Immagini | webpointzero.com on May 9, 2013
  9. Pingback: Optimizing Images for Search Engines on September 5, 2013
  10. Pingback: How To Get More SEO Traffic From Images On Your Blog | BloggerJet on November 15, 2013
  11. Pingback: Digital Analytics Week In Review - 29 March 2013 - Data Runs Deep on November 28, 2013
  12. Pingback: Optimizing Images for Traditional SEO on April 24, 2014
  13. Pingback: How to Use Google Webmaster Tools for SEO | Bugdaddy on June 4, 2014

Comments About Tracking Image Search In Google Analytics

// 38 comments so far.

  1. Barry Adams // March 27th 2013

    Dude. I wanna give you a hug.

    Ever since Google started heaping image search together with ‘regular’ web search in GA and stopped reporting it as a referral I’ve been trying to find a solid way to separate it out. And by ‘tryingto find ‘ I mean ‘sitting back lazily while someone smarter and more driven than I figures it out and explains it to me in an easy to understand format’.

    You’ve just done that. Mega-thanks. I owe you another drink. :)

  2. Emma Barnes // March 27th 2013

    AJ Your are a genius! I’ve wanted to try this for a long time, but my advanced filter skills are very poor (and my Regex is just about “okay”) – thanks man, looking forward to seeing this data filter through. I think 99% of my traffic is image search, now to see if this is true!

  3. Adriel Michaud // March 27th 2013

    I have a few image heavy sites that this would be the bees knees for. Time to create some new profiles!

  4. John Dietrich // March 27th 2013

    Great article! Where do I go to see the reports based on my new filter?

  5. AJ Kohn // March 27th 2013

    Thanks Barry. A hug and a drink sound pretty awesome!

    I was pretty bummed when Google did this and do hope that these filters are straight forward enough for folks to implement and use. Let me know how it works out for you.

  6. AJ Kohn // March 27th 2013

    Thanks Emma. That’s the thing, you need to know how much is image search because the intent and behavior of those users is so different. Circle back and let me know what you find out.

  7. AJ Kohn // March 27th 2013

    Adriel,

    Let me know how this works for those sites. The one client I’ve used in this example is image heavy and it really was instructive.

  8. AJ Kohn // March 27th 2013

    Thanks John. The easiest place to find the reports is under Traffic Sources > Sources > Search > Organic and then select Source as your primary dimension. That will show you all of the sources of organic traffic, which will include these new sources created by the filters.

  9. Diana Studer // March 27th 2013

    images.google is this. Search by image. Relatively new, but not very.

    http://images.google.co.za/
    My link says .co.za because I’m in South Africa.

    Instead of searching for ‘pumpkins’ then asking for images
    you start with images, and ask for ‘pumpkins’

  10. AJ Kohn // March 27th 2013

    Diana,

    Is that it!? I use search by image all the time and didn’t think to test it. Doh!

    Thank you. I’ll verify and then update the post with this information.

  11. virginia // March 29th 2013

    Hi AJ, is there any value here from an SEO perspective? Aside from the usual ALT image tags?

    Virginia

  12. virginia // March 29th 2013

    I think so but would love your opinion on the subject.

  13. Ari Nahmani // March 31st 2013

    This is awesome, AJ. Thanks for putting together the how-to on the filters / regex. I’ve finally got around to reading it and will def. be sending to all of our account managers to implement – esp on sites with large portions of image search.

    It makes absolutely no sense that this data is lumped together – and as you said – makes analysis completely inaccurate. Averages are always problematic – but looking at non-brand organic search traffic’s time-on-site, bounce rate, .. heck.. conversions with image search distorting is insane when you think about it.

    I think this will end up becoming as standard as a filter as brand vs non-brand.

    Thanks again, AJ. Also – really great to meet you in San Jose.

  14. charl hoffman // April 01st 2013

    nice article! an interesting use of this is to use this in conjunction with your blog stats and traffic to see how you can use your images more effectivly to drive traffic to your articles.

  15. Chelsea Bowling // April 02nd 2013

    Thank you, this is so clever! For sites that have a large focus on functional or interesting images, I can see this being very helpful. Using a filter for this purpose seems quite obvious now that you have laid it out so clearly, but I had never remotely thought of it before… and now I’m trying to think of other uses, ha.

  16. George Phillip // April 02nd 2013

    Hey AJ, great post on tracking. Its helped me as I can copy paste what you did and learn from it. Tracking is definitely an area I would love to upskill on.

  17. Aga // April 03rd 2013

    I try to check the referrers as you’ve written.
    I am not logged in to google. When i search through image search it is like you say.
    But images that are clicked from universal search and then to the website with image outside google -> then the referrer is http://www.google.com/blank.html.

    Anybody knows why is that?

  18. Dan Panait // April 12th 2013

    this is cool and easy to ckeck …but there is another way in google analytics to check your traffic from google properties… try traffic sources / search engine optimization / Geographical summary. In this screen you need to choose Google Property as your primary dimension and voila….

  19. AJ Kohn // April 12th 2013

    Dan,

    Yes, that’s the Google Webmaster Tools data I reference in this post. It’s available but extremely limited in how it can be used and integrated into normal reporting. In addition, that data seems to be slightly different from what you get when using real-time filters.

  20. Gregory Smith // April 13th 2013

    Hi,

    If you don’t mind my asking, what do you use to create your images, taken from the web?

    thanks,
    gregory smith

  21. Bryant Jaquez // April 14th 2013

    I am loving this. I was actually asked this question by one of my photographer friends recently. Thanks for figuring this out for us.

  22. M.S. Babaei // April 14th 2013

    Thanks I’ve been looking for this. Saw it on SeoMoz newsletter.

  23. WDS // April 17th 2013

    Thanks this has been driving me crazy!

  24. STEVEN J. FROMM, ATTORNEY, LL.M. (TAXATION) // May 01st 2013

    This is really an awesome tool and your explanation was extremely thorough and chock filled with information. Thanks for the post.

  25. Bill Bean // May 08th 2013

    AJ,

    Anyway to translate this in to a filter for a dashboard?

    Bill

  26. Emma // May 10th 2013

    AJ,

    This is working really well for me – been using it since… well.. since this post was written, and it works a charm.

    I was actually surprised to learn that a lot of the stuff I thought was image search is just normal Google (have NO idea how I rank for some of the terms, I’m guessing it’s personalised search or whatever) so it’s cool to see!

    Thanks a million!

  27. Jared // May 11th 2013

    Some of my sites used to get quite a bit of traffic from google images search but I’ve noticed over time a pretty sharp drop. Never could figure out a good way to track which ones converted into active users on the sites.

  28. AJ Kohn // May 15th 2013

    Thanks for the feedback Emma. It’s good to know that you (and others) are getting value out of these filters.

  29. AJ Kohn // May 15th 2013

    Bill,

    Yes. If your naming convention for the filters includes the word ‘images’ then you can simply filter organic traffic by source using the term ‘images’ and then add that to your dashboard.

  30. Chris // May 27th 2013

    I have set up these filters, but I don”t seem to be seeing any traffic through them. maybe it is just no images are being searched for, I will try it on another website and then report back. Thanks for sharing this wonderful process.

    Regards,
    Chris

  31. Ben Jeffery // June 05th 2013

    This is really helpful, thank you!

  32. Alexander // July 26th 2013

    Thanks very much for this! I was looking for such a solution.
    But it seems that now the Referrer always includes imgres? for both the univesal results and the image search.

    Regards,

    Alex

  33. AJ Kohn // August 08th 2013

    Alexander,

    The filters still seem to be bucketing the traffic appropriately. You might want to check them again to ensure it’s filtering correctly.

  34. Mike // September 16th 2013

    Hello there,

    Im glad Ive found guideline on this, but it seems that is not working for me :(

    I thought it is because of another filters in my profile, so Ive created extra one just with this filter applied, but still I get just “google” as a source :(

    Dont anybody know how to solve it, please ?

    Best Regards from Czech,
    Mike

  35. Proper Play // November 05th 2013

    This has stopped working for me too… does anyone know where I can find some updated Filters? I think the recent changes to Google Analytics must have rendered these useless.

  36. AJ Kohn // November 05th 2013

    Proper (for lack of a better name),

    The filters shown in this post are still functional and working as of yesterday 11/4/2013 on a number of my client properties. Be sure you’ve got it set up exactly as instructed since small changes will make a difference.

  37. Jeremy Myers // February 25th 2014

    Is this still working with all the changes at Google images? I have set it up as showsn, but doesn’t seem to be doing anything.

  38. AJ Kohn // February 26th 2014

    Jeremy,

    Yes. It still works. I’ve got it up and running on a number of clients. I do have to make some modifications because international image search uses the old UX and old referrers. But for US based image search traffic I can confirm that it works as of yesterday.

Who Are You?

Your Email Address

Your Website

You can follow any responses to this entry via its RSS comments feed. You may also leave a trackback by clicking this link.