In the interest of getting a conversation going around this I'll share how I do it.
My environment is PHP and I use two logging methods for all clicks. Google Analytics and my own logs based on Redis, Elasticsearch and LogStash. All my sites require javascript so that is part of the method.
The following PHP page can be included in most environments. You simply need to wire the saving of the click to your own data store.
The modification for the Google Analytics is extremely helpful. All outbound clicks will show up in your GA as an Action that looks like this:
click - www gfy com, (full URL they went to here)
It's on pastebin dot com / TSdLAGvu
Enjoy.
If any other webmasters are interested in comparing notes please contact me.
|