• Follow us on Twitter
  • Join our Facebook Group
  • Join me on Google Plus
  • Add me on Linkedin
  • RSS

  • Home
  • Services
  • Tools & Downloads
    • Google Analytics Content Targeting Generator
    • A/B/n Split Test Confidence Calculator with Graphing
    • Simple Feedback Form with Google Analytics Integration
  • About
  • Contact

Blog - Latest News

Build a Conversion Rate Heatmap by Hour & Day of Week in Google Docs

35 Comments/ in Analytics / by Robert Kingston
June 22, 2012

Update 5th January 2013: Regretfully, Google discontinued the API that Mikael’s excellent script is based upon – and therefore this approach is broken. You can still do it manually – it’s just as fast!

Read my original post on how to create a heatmaps of analytics data here.

Thanks to a smart Finn called Mikael Thuneberg, I’ve managed to whip up a quick and dirty little Google Docs template which builds these Google Analytics heatmaps in seconds (much easier and faster than the old method):

Hour and day of week heatmap of conversion rates using Google Analytics data

How it works

Basically Mikael Thuneberg developed some JavaScripts that pull GA data from the GA API into Google Docs. All the code is readily available for you to inspect here and inside my template.

How to do it

IMPORTANT: Google disabled the API, so please read my old post on the manual heatmap method (it’s still reasonably quick :) .

Watch the instructional video below (I’m a YouTube newbie, so you may have to bear with it) or follow the steps outlined afterwards.

Pointing out all the little bits and pieces in the spreadsheet.

Step 2: Pop in your username and password, into the fields on the “Data” spreadsheet tab. Feel free to hide your password in the spreadsheet.

Step 3: Grab your Profile ID (Note that this is not your UA number!) from the URL in your Google Analytics interface and pop it into the corresponding cell in the template. You’re looking for the number in the URL which looks like this:

https://www.google.com/analytics/web/?pli=1#report/visitors-overview/a5147757w23349371p21652238/

Therefore, you would use “21652238” in the spreadsheet.

Step 4: Set your date range – you’ll want a decent date range so that you have a couple of hundred thousand visits at least.

Step 5: Pop the ID of an advanced segment into the spreadsheet. Some are already provided under the inputs area. Otherwise “-9″ will work for most sites with goals setup.

Step 6: Jump into the reporting tab at the bottom of the screen.

Step 7: Copy the tables you’d like to use and pop them into Excel, and dress them up in a table with conditional formatting.

Either download my example conversion rate heatmap template for Excel or use conditional formatting and table formatting icons up in the ribbon (note you’ll need Excel 2007 for this):

Done!

Whereas the old process would have taken 30-60 mins to aggregate in the GA interface, this less than 5 minutes – and much faster with several cups of coffee.

← Ethnio Review: How I Used it to Interview My Visitors
Find Backlinks to Your Site With Google Analytics →
Comments

35 Responses to Build a Conversion Rate Heatmap by Hour & Day of Week in Google Docs

  1. Kristen says:
    July 2, 2012 at 03:12

    Thanks for this great instructional video! I am trying to set this up now, but see a few squares in the ration section that have an “error” code in them that says #DIV/0!. Do you know what this means? I did have some N/As, and changed them to 0, but otherwise, it seems that the data is pulling correctly.

    Thanks,

    Kristen

    Reply
  2. Kristen says:
    July 2, 2012 at 03:15

    Nevermind:). I just changed those to 0s and I think that was the problem.

    Reply
    • Robert Kingston says:
      July 2, 2012 at 03:29

      Not a problem, Kristen… if you do have any issues with it, give me a bell.

      The top table is calculated using the two bottom tables: 2nd table divided by the 3rd table. It’s handy for spotting errors.

      Reply
  3. Jean-Marie says:
    July 13, 2012 at 19:30

    Hi there, when clicking on your link to load the template, I am redirected to Google Drive, and nothing else happens after that. I tried searching for Conversion Rate Heatmap in Drive, to no avail…
    Can you help?
    Thanks!

    Reply
  4. Jim says:
    July 21, 2012 at 04:08

    Hi Rob,

    Just stumbled across your site. Great tips!

    Any other excel / dashboard tips for analytics newbies? Or links to any good pivots that I can dump a load of analytics data into and click refresh to produce amazing insights?

    Cheers,

    Jim

    Reply
  5. Sean R. says:
    July 24, 2012 at 03:25

    Jean-Marie:

    The company I am at has not switched to Google Drive yet for documents. I used this URL to get the template:

    https://docs.google.com/templates?q=Conversion+Rate+Heatmap

    Try that out.

    Reply
  6. Olle Lundell says:
    July 24, 2012 at 05:43

    Judging from his name, Thuneberg is not a Finn, but a Finland Swede (http://en.wikipedia.org/wiki/Swedish-speaking_population_of_Finland), or finlandssvensk in Swedish.

    Reply
    • Robert Kingston says:
      July 24, 2012 at 19:45

      @Jean-Marie – I’m not able to recreate the error for you. Did sharing it directly help? If not, did Sean’s link help?

      @Jim – Thanks, glad you like it. I haven’t posted anything on dashboards at all, but if you’re into Excel dashboards for GA, I highly recommend you look at Mikael Thuneberg’s site: http://www.automateanalytics.com/

      Dashboards is definitely something that I’d like to get into, though.

      @Olle – Very astute… My (Finnish) girlfriend said he might consider himself a Finland Swede too, but after your comment I decided I’d ask the man himself: https://twitter.com/MTAnalytics/status/227685406836129792

      Reply
  7. Niller says:
    July 26, 2012 at 09:59

    How do you as a marketeer use this info?

    Reply
  8. Aga says:
    July 26, 2012 at 10:57

    AWESOME SAUCE!

    Reply
  9. Robert Kingston says:
    July 26, 2012 at 11:33

    @Niller, Pretty simply really – it’s particularly for day parting in AdWords, or deciding when it’s best to send out an email.

    It can also show you when you receive a great volume of traffic or when mobile visitors browse your site as opposed to non-mobile visitors (this is a combination I sometimes like to use).

    It’s also a good way to spot when you should run offers (during the red times, to inspire purchases).

    As Justin Cutroni mentioned, basically do less of the red and opt for more green: https://plus.google.com/u/0/104725678129478369928/posts/fqYL7RWpoP3

    Reply
  10. Dario says:
    July 26, 2012 at 17:28

    Great list, will test it!

    Reply
  11. Daniel Roch says:
    July 26, 2012 at 17:45

    Hello,

    I’ve an issue with the Google Doc. I’m using the right email and password, but it asks for a Captcha…

    “Complete CAPTCHA at http://www.google.com/accounts/Captcha?ctoken=xxxxxxx
    Error=CaptchaRequired
    Url=https://www.google.com/accounts/ErrorMsg?Email=xxxxxxxx”

    Reply
  12. Julien@Blog seo says:
    July 26, 2012 at 17:53

    Really interesting, but according to Mikael, Google will stop the use of the API in a near future…

    Reply
  13. Robert Kingston says:
    July 26, 2012 at 18:46

    @Daniel Roch – Sounds like it’s checking whether or not you’re human. Are you accessing the internet through a proxy? Could you login to GA elsewhere and if so, do you see a CAPTCHA?

    Try again if you complete the CAPTCHA when logging into GA through your normal browser.

    Reply
  14. Robert Kingston says:
    July 26, 2012 at 18:51

    @Julien – Interesting. Will have to cross that bridge when we get there. In the meantime, Mikael (or perhaps someone else) may provide a Google Docs script for the new API.

    I would look into modifying the script to work with the new API myself but A) my JS is still somewhat limited B) Will need Mikael’s permission to redistribute the script.

    Reply
  15. Eileen M. Thornton says:
    July 26, 2012 at 23:46

    I apologize if this is a stupid question, but I am stuck at the point where you paste the data into Excel. How do I apply the conditional formatting you have already set up? Where do I paste the Reporting data?

    Many thanks – this is a great idea.

    Eileen

    Reply
  16. Danae says:
    July 27, 2012 at 00:38

    This is brilliant! I’m trying to use the filter field to restrict traffic to the UK, and can’t get it to work — i’ve tried “ga:country%3D%3DUnited%20Kingdom” and “ga:country==United%20Kingdom” and neither are working – do you have some examples of filters and dimensions?

    Reply
  17. Robert Kingston says:
    July 27, 2012 at 09:38

    @Eileen, which version of Excel are you running? This will only work with versions 2007 and above as far as I know.

    If you’re running Excel 2007 or above, look for the “Conditional Formatting” button in the “Styles” section underneath the “Home” tab. Otherwise, you should be able to do this with my template that I provided (albeit it won’t match up 100%). Let me know if that helps, Eileen.

    @Danae, excellent question. Unfortunately, I’ve used the filter fields to extract the hour and day of week data.

    If you like to do this you would need to setup 2 advanced segments and copy the 2nd table into another spreadsheet to work out conversion rates. i.e.

    1. UK Traffic
    2. UK Conversions/Sales/Mobiles/etc

    You would apply one advanced segment, copy the second table (“Goals”) in the reporting tab and then apply the other advanced segment and copy the results in the 2nd table in the reporting tab. Once that’s done, you should be able to calculate the conversion rate between the two tables:

    UK Conversions / UK Traffic

    Does that make sense?

    Reply
  18. Danae says:
    July 27, 2012 at 18:04

    Thanks Robert, that does make sense!

    Reply
  19. Matt says:
    July 28, 2012 at 04:47

    The data is populating but there are several full days for ratio, goals , and visits that are not showing up and giving me a #N/A for certain days. Which dimensions should I be sure to have included? Do I need to always change the date range and metric when I change them on analytics? Do I need to change anything from Column E over

    Reply
  20. Robert Kingston says:
    July 28, 2012 at 11:45

    @ Matt you shouldn’t need to change anything except for the profile, date range and advanced segment.

    If you’re seeing #N/A errors, that seems to be an issue with GDocs, the script or API. Try the following steps to correct it:

    1. Check that it’s the right profile
    2. Check that you have data for the date range specified
    3. Make sure the Advanced segment is reporting data for the date range
    4. Look at the bottom two tables in the reporting tab and make sure you’re not getting #N/A errors in those.
    5. If you still have NA errors, simply hit refresh on the page and the script will run once more.

    Reply
  21. Alfonso says:
    August 8, 2012 at 16:07

    Thanks, very useful resource.

    Reply
  22. Vincent says:
    August 10, 2012 at 04:04

    Robert,

    I’ve had the same issue like Matt. Used the googledoc several times from scratch. There is data, but the visits table is just showing N/A for a few days in the week…

    Reply
  23. Rob Kingston says:
    August 14, 2012 at 13:39

    Hey Vincent,

    Thanks for reaching out. I take it you tried my suggestions above.

    - Do all three tables in the reporting tab have N/A?
    - Have you tried refreshing the window? I.e. hitting ‘F5′

    One possibility, that will be harder to debug, is whether or not the number of API hits exceeded GA’s maximum. Try unhiding the rows and columns on the spreadsheet and looking for any errors in the days’ or hours’ data.

    If nothing else, please email me the errors (taking care that you don’t copy any sensitive information to me) rob@{my site’s domain name}.

    Reply
  24. Jerome says:
    August 14, 2012 at 19:22

    Hi Rob,

    I have exactly the same issue like Matt. I tried that you recommend but I have still the issue…

    Reply
  25. Rob Kingston says:
    August 20, 2012 at 09:56

    @ Jerome, please email me. Should be a quick fix.

    Cheers,
    Rob

    Reply
  26. CMM says:
    September 4, 2012 at 19:04

    Hi, for those who just want to take a quick peek into the data. We took the mentioned report for an experiment and build a webservice using the Core Reporting API (v3). Visit http://ga.cmm-hq.com ,log-in with your GA credentials and choose a goal .. Thats all…

    Nothing more than a quick workaround.. Cheers CMM

    Reply
  27. Nick says:
    November 15, 2012 at 07:45

    Robert – I’ve completed the implementation however the 2nd and 3rd tables either show visits when i have ‘visits’ in the B16 ‘Metrics’ cell, or they both show ‘transactions’ when i input that into the cell. How can i have visits remain in the 3rd table to then have the first calculate the conversion rate?

    Reply
  28. Wenting says:
    December 13, 2012 at 02:28

    Rob, brilliant tool! Thanks for sharing, but I had the same issue as some of the other guys, for the visits with conversion segment, it doesn’t seem to be able to get data for Sundays, same issue for Mobile traffic as well. Any idea why? Thanks!

    Reply
    • Robert Kingston says:
      December 14, 2012 at 10:28

      Hi Wenting, Thanks – glad you like the idea. Unfortunately it stopped working due to the API. Will update it once I have time to post another solution – trust me when I say there’s plenty of ways to do this.

      Reply
    • Robert Kingston says:
      January 5, 2013 at 12:16

      Hey Wenting, I’ve updated this now – you may like to check this out here: http://www.optimisationbeacon.com/analytics/visualize-your-conversion-rate-by-hour-day-of-the-week/

      It’s just as speedy as the method above, once you get the hang of it.

      Reply
  29. google analytics says:
    January 25, 2013 at 09:55

    Wow, this post is nice, my sister is analyzing
    such things, thus I am going to inform her.

    Reply

Trackbacks & Pingbacks

  1. Infographics, Conversion Heatmaps, and Why Marketing is Broken: For Further Study | The Conversion Scientist says:
    February 7, 2013 at 23:06

    [...] Build a Conversion Rate Heatmap by Hour & Day of Week in Google Docs | Optimisation Beacon Jan 26, 2013 04:02 pm [...]

    Reply
  2. Why I love using the Google Analytics API | blog seo tips and tricks says:
    December 7, 2012 at 20:15

    [...] Conversion rate heatmap by hour & day of week in Google Docs [...]

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

About Rob

I'm an ex-Hitwise Analyst turned freelancer that helps clients turn their analytics data into better converting websites. I also like to run, drink, eat and be merry. My girlfriend, on the other hand, would say I play too many computer games and use my Androids too much (yeah, right :P).

Subscribe For More Great Tips


Subscribe by RSS


Follow me on Twitter


Follow Optimisation Beacon on Google+

Categories

  • Analytics
  • Conversion Rate Optimisation
  • Marketing & Consumer Insight
  • News
  • Testing

Most Popular Posts

  • Google Analytics’ New Site Speed Report Tracks Page Load Times
  • Track WordPress Blog Comments in Google Analytics
  • Build a Conversion Rate Heatmap by Hour & Day of Week in Google Docs
  • Track Page Load Times with Google Analytics’ Asynchronous Script
  • See Google Website Optimizer (MVT) Tests in Google Analytics

Recent Posts

  • Web Browsers Most Susceptible to Browser Fingerprinting
  • Cohorts.js: Open Source JavaScript MVT Split Testing Framework
  • 10 Sources of Direct Traffic & How To Track Direct Shares
  • Track What Visitors Copy From Your Site in Google Analytics
  • Track How Far Your Users Scroll in Google Analytics

Blogroll

  • Analytics Ninja
  • Justin Koro
  • LunaMetrics Blog
  • Marketing Experiments
  • SnowPlow Analytics
  • Teacup Marketing
  • Visitor Centric CRO Community
  • Home
  • Services
  • Tools & Downloads
    • Google Analytics Content Targeting Generator
    • A/B/n Split Test Confidence Calculator with Graphing
    • Simple Feedback Form with Google Analytics Integration
  • About
  • Contact
415Follower294Subscribers
© Copyright - Optimisation Beacon - Wordpress Theme by Kriesi.at