Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138163

Log a clicked (external) link to webserver log or a file

$
0
0

I have a website written in php. I have a lots of external links like:

<a href="http://example.com" target="_blank">

What i want is that if the user clicks on these kind of links it should log this somewhere. Preferred is the apache log. If not possible then log in a file.

How can I do this with (probably with js)?


Viewing all articles
Browse latest Browse all 138163

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>