I am not sure if this is the right place to post this, but I thought it may help people with Google Analytics, so I apologise in advance if this was posted in the wrong section of Warrior Forum.
Okie dokie, this is actually a script that I use and I find extremely helpful.
Have you ever wanted to know when a user hits your website? BUT you do not want to stare at Google Analytics Real-Time, which is about as exciting as watching paint dry. Me too!!!!
What you need is an alert of some sort right - like a sound alert?
Well this bookmarklet script is what I use for two of my websites:
The reason why I went with a short audio abbreviation clip is for two reasons:
1) So I can have Google Analytics Real-Time for both websites minimised and then know which website has a new or returning visitor
2) So the short audio clip is not annoying to hear - although hearing mine, you may think otherwise
Anyway, you can add a bell sound or whatever you like. Next you upload using FTP, or just add it via your WordPress media uploader but take note of the URL because that needs to go in the Audio function (see script) between the single quotes. If it is WAV, which it should be, compress it using an online compressor such as this one: Convert audio to WAV
My 2 second CJT audio clip is 290KB @ 44,100 bitrate, a little heavy but it works for me, and anyway you can compress this much further if you prefer.
Converting to WAV assures it is cross-browser too.
Next thing to do, is create a new bookmark (it's actually a bookmarklet) and then call it something. I called my two bookmarks CJT Bell and TC Bell. In the address of the bookmark - copy and paste the script in.
That is pretty much it.
I find the script only works on Google Chrome, but that is cool.
Then when you get a visitor, your audio clip will play.
The way it works is very simple. The script listens for the Google Analytics Real-Time counter to increment, once it does, the sound is played.
If you are having issues with your sound playing, then make sure your audio file URL is correct. Also, Google may have changed the Real-Time counter Id element, so you will need to inspect this by double clicking the large counter, click until you see Inspect Element and take note of the value. E.g. Id="ID-layout-1371303416647-counterValue" The value in-between the double quotes is what goes in the script, you will see that in there.
Another great thing with Google Analytics Real-Time is that you can customise the widgets however you like. This can yield some cool information.
That pretty much sums everything up so, as mentioned in my post title, be careful - it can be addictive.
That said, it is a great tool to get the big picture of where your traffic is coming from, and what pages they are currently viewing, all LIVE!!!!
Good luck, have fun, and hope you enjoyed this tutorial.