Hi,
does anyone knows how to inplement google tracking? also can I check it in local server?
| SitePoint Sponsor |
Do you have google analytics account?
-- Jelena --
So, what's the problem? You need just to copy/paste the code they give you in the footer of your page(s).
-- Jelena --
jelena
Using third-party traffic monitors can slow down the page.
achintya
You can't make a PHP statistics program for AdSense. You have to make an event monitor through JavaScript.
You can't monitor AdSense through PHP, because the PHP won't know when a link is clicked, as there is no server interaction after the page is loaded. Therefore, you need to make a Javascript, which you can do by using an event listener (link).
I haven't implemented this into my own statistics program at this time, so I wouldn't know how you would actually go about doing it, but that is the theory behind it. Others might be able to show you a tutorial.
Bookmarks