Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Track how many times your code has been used!

BriarfoxBriarfox Mod
edited August 2013 in General Posts: 1,542

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?

Comments

  • BriarfoxBriarfox Mod
    Posts: 1,542

    woops I had the http.request commented out.

  • Jmv38Jmv38 Mod
    Posts: 3,295

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

  • BriarfoxBriarfox Mod
    Posts: 1,542

    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.

Sign In or Register to comment.