Track how many times your code has been used!

I had setup google spreadsheets to track when someone used one of my autoInstallers. I ended up using goo.gl to shorten the url’s. I noticed that goo.gl also tracks clicks on your shortend link!

  1. Create a google account if you do not already have one.

  2. go to http://goo.gl

  3. Make up a fake link to shorten

  4. Add this to your code and paste in your shortened link

If you use AutoGist’s Auto Install:

function GetProject()
http.request("http://goo.gl/xxxxxx",function() end) --add this line under GetProject

For any other code you share on the forum:

if not readLocalData("download_counter") then
        http.request("http://goo.gl/xxxxxx",function() end)
       saveLocalData("download_counter",true) 
    end

Pretty neat huh?

woops I had the http.request commented out.

Yes this is quite interesting!
I will certainly be using it at some point for a project i am working on currently :wink:

The better way is to pass it to a google spreadsheet form so you can graph statistics but I thought this was a neat little trick.