Simple Click Tracking
This is what I'm trying to do..
I have an HTML file example
<a href="#1"> Test Click </a>
<a href="#2"> Test Click </a>
Nothing in the html file can be change..
What I want to do is track the clicks using jquery (ajax) and pass the url to php
The txt file would say something like
This link what clicked this many times but this ip address
I have some coding but can't get it to pass to php
This is what I have
var href = this.getAttribute('href');
alert( "Data Saved: " + href);
the data is not passing to php but can het the url to display in the alert box.