First of all, get a new host! Those popup adds will drive everyone away from your site..
Theres two ways..
2) you could use a server-side language which logs the data to a database each time a page loads.
The best way is to have every link directed towards the same page. Have each link use a different queryString variable which selects the correct page URL from a database and increments a table field to show that someone has clicked the link..