The most effective way to count clicks

I run several ads on a website and I'm trying to decide how best to track performance.

In particular,

  • What is the most effective way to count clicks? The only thing I can think of is to associate the ad with another page with the ad id as an argument (e.g. adserver.aspx? Id = 1234). Then another page will update the database and redirect the link to the advertiser. However, for this it is inefficient to load a separate page. Are there any other options?

  • Also, it seems like I might need to know how many clicks happened in a week. But keeping a separate database row with a date for each click seems excessive. Has anyone else done something like this? Would it be wise to create a new line for each week and increase the counter for all clicks that occurred this week?

Any advice appreciated.

+3
source share
2 answers

I would suggest that your first decision is the best option, in fact it is a design that uses most of these systems (OpenX, Google AdSense, etc.). In addition, it helps you better manage your banners and prevents your site from leaking search engine spiders.

, , script , . , , .

, , :

, , , , OpenX , . OpenX :

http://openx.org/

:

http://www.openx.org/publisher/open-source-ad-server

- - Google AdSense . Google , , AdSense , (OpenX , AdSense ( ))

+5

JavaScript.

:

  • URL-
  • , JavaScript, URL-. target="_blank".

:

  • , JavaScript .
  • , AJAX -. - .

, , .

, , , , - ? , -, , . , .

№2: . , , , ? , .

Would it make sense to maybe create a new row for each week and increment a counter for all clicks that occurred that week? , . , . , , , , , .

+3

Source: https://habr.com/ru/post/1786745/


All Articles