How to Get a Graph of Your Instructable Statistics

2,100

9

22

Introduction: How to Get a Graph of Your Instructable Statistics

About: Swedish expat living now living in Malaysia after spending some years working in Dubai.

Given my relatively successful last two instructables I thought that it'd be interesting to see how and when the pageviews occurs over time.

Getting Featured or Popular should increase the rate of pageviews in a distinct way. Also getting onto a major blog would show up as a bump in the rate of pageviews.

To satisfy my own curiosity I slapped together a website that keeps track of the statistics of a set of instructables. Once every 15 minutes it gets the current statistics and stores it in a database. It can then on demand plot graphs of that data.

If you want to keep track you your (or any other) instructables just go to InstruGraph.com and register by just supplying your email address. You can then add the URL's of the instrutables that you're interested in.

It will of course take a while before any data shows up in the graphs since it can only get the current data and not any historical values from the Instrutables site. So add your instructables as soon as possible after you published them.

The InstruGraph site is using some "undocumented tricks" to get the data from Instrutables, so it might stop working any anytime if the Instructables team decides to change their coding in a non-compatible way. But until then, please make use of the service. It's free to use and doesn't have any obnoxious affiliate programs or ads.

It's in early beta so please report any bugs, errors, improvements, suggestions to me. Either on the site or as a comment or PM here.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: How to Add a New Instructable to Graph

(Instructables didn't like to have an instructable with just the intro step so I just added this info here to get it listed.)

To add a new instructable to be graphed you first go to the instructable and copy its URL. Then click on the "Add new graph" -link on the InstruGraph site and paste the URL in the form and click Add.

That's it. Now you just wait for 15 minutes and the graph begins to get built. Come back a day or two later and watch you statistics in amazement or horror... :-)


Be the First to Share

    Recommendations

    • LED Strip Speed Challenge

      LED Strip Speed Challenge
    • Sculpting Challenge

      Sculpting Challenge
    • Clocks Contest

      Clocks Contest

    22 Discussions

    0
    NachoMahma
    NachoMahma

    Reply 9 years ago on Introduction

    .  I'm getting "connection has timed out" errors. :(

    0
    NachoMahma
    NachoMahma

    Reply 9 years ago on Introduction

    .  I'm open to suggestions. Sounds like it would be a bit of a resource hog, but it might be worthwhile for a small group.

    0
    Javin007
    Javin007

    10 years ago on Introduction

    :( This no longer seems to work. It takes me to a "VIA" site that asks for a lot of personal information, including my passport number!

    0
    Derin
    Derin

    11 years ago on Introduction

    Help,I did everything you said and it keeps saying Invalid Url whenever I paste the URL of the Instructable I made.

    0
    PKM
    PKM

    12 years ago on Introduction

    I'm so very, very creeped out right now. My HDR photos with the GIMP instructable just got Popular status, and I found this site and thought "I'll get a graph of my page views to see how they do". So I went to the site, and out of the I don't know how many thousand Instructables to give me as the random one on the front page it gave... HDR photos with the GIMP. Get outta my head! Seriously, I hope the powers that be appreciate how many people would really like this as a feature of the site and do something similar.

    0
    Spl1nt3rC3ll
    Spl1nt3rC3ll

    12 years ago on Introduction

    Too bad you made this after my Instructable got featured, it would have been sweet to see the spike in page-views (they skyrocketed! Already passed the one I posted in October.)

    0
    matseng
    matseng

    Reply 12 years ago on Introduction

    Yea, I feel the same with my two last instructables. I'd been nice to seen a graph of them. But better "later than never", the system is in place and collecting data for our future projects... So we better make some new awesome instructables then, right? :-)

    0
    Spl1nt3rC3ll
    Spl1nt3rC3ll

    Reply 12 years ago on Introduction

    Yea, lol. It's such an awsome site, it should be linked on the Instructables homepage (it's featured at least).

    0
    Spl1nt3rC3ll
    Spl1nt3rC3ll

    Reply 12 years ago on Introduction

    I mean linked under "publish Instructable", saying "would you like to chart your veiws/ratings?"

    0
    matseng
    matseng

    Reply 12 years ago on Introduction

    Actually I have a secret hope that the Instructables team will implement the same function directly integrated in their system. They really should. But until then I'm happy to provide that service. And when they do, I'll be glad because imitation is the sincerest form of flattery.

    0
    killerjackalope

    Nice one especially since I just posted make your own website, one of us makes a quick mirror and people can show off their latest instructable's performance. Was the coding difficult or was it just a case of using the values for views and copying them to a graph database automatically.

    0
    matseng
    matseng

    Reply 12 years ago on Introduction

    It depends of how you define difficult. There's certainly no rocket science coding here. But there are no automatic functions used.

    From a PHP-script, that gets called from a cron-job every 15 minutes, I call the https://www.instructables.com/ajax/AjaxEntryTabsDispatcher?entryID=$uid&contentType=stats for each intructable I want to get the stats for and then pick out the interesting parts from the html code I get back from that call. The stats is then put into a database.

    When doing the actual graph I first fetch the stats that it needs from the database into two arrays (views and rating) an then I use the GD-function an load two pre-made graphic images. The first image is the template where the grid, ticks and logo is already on, the other image is a long list of numbers and months.

    To make the graph I copy parts of the number-image into the template so the dates and the values gets there. Then I use the standard line-drawing function and plots the two lines step-by-step.

    To reduce the load on the server I write the new image to a file and use that file directly for subsequent calls for it during the next 15 minutes. If the image is older then 15 minutes it gets recreated with fresh data.

    0
    matseng
    matseng

    12 years ago on Introduction

    I just discovered that I botched the "add new graph" -code a bit. All new graphs were tagged to the first user on the system (me). And since I don't know what instructable graph that belongs to whom I just added them to all of you. If you don't want them all in your list just click on the "Remove graph from you listing"-link.

    If only this had come out before I posted my Instructable. It got over 10,000 views in ONE day! It was on Engadget and also got Featured and was Popular.