I want to store clicks from outbound links into database.
And I need to have normal links in href parametres, like href="http://www.example.com".
The way I am considering is to do it by changing URL with JS when user click on link.
"onclick" -> link is changed from "http://www.example.com" to "example.net/redirect/product-xyz/" -> data is stored into database -> user is redirected to "http://www.example.com"
But, It's "kosher" for google? Could it be penalised?
[edited by: brotherhood_of_LAN at 3:31 pm (utc) on Jun 15, 2014]
[edit reason] generalised link [/edit]