Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Ad Logger

Logs data about iframe clicks: can log clicks from Google AdSense, Amazon, Facebook, Twitter. Logs URL, IP, browser, and size of the clicked iframe.

Why don't the number of reported clicks match my ad providers reported clicks?

Because they measure different things. This plugin measures 'raw' clicks. You ad provider will show you 'valid' clicks.

Additionally because this plugin doesn't modify your ad code it can never be 100% accurate. It may log clicks which didn't activate the ad link (e.g. if the user clicked on a non-linked part of the ad), and it may fail to log clicks if the browser moves to the new page before the log notification is sent.

From my testing I believe that this plugin's logged data will be 80-90% correct, but it may vary for you.

How do I use the div hiding feature?

You need to put your ad code in a div whose class name is the same as the one configured in the UI. e.g. if you keep the default div name of 'adlog-advert' you would need code like this.

<div class="adlog-advert">
Your AdSense, or other ad code goes here

Can you guarantee me that this plugin is allowed by my ad provider?


Is this plugin allowed by my ad provider?

I'm not going to give you a 'yes' - but I think the tracking methods I'm using should be ok. You have to make the decision whether to use it yourself.

I can say that this plugin does not modify your ad provider's original ad code (it uses additonal JavaScript events to guess when a click occurs). And also the legitimate and large OpenX ad network uses a modified version of the Click Pepper code (linked above) to track AdSense clicks themselves.

Can you make the click tracking 100% accurate?

No. There is no way to do this without modifying your ad codes, and I don't want to do this as modifying the ad code is not allowed in the TOS of many ad providers.

Can this plugin protect me from click bombing?

Yes it can to an extent, but it won't stop a determined click bomber.

If a certain number of AdSense clicks has been registered it can prevent ads which are inserted via the Ad Injection plugin from appearing when the page is next loaded. And it can dynamically hide a named div after the click count is reached (i.e. the ads would dissapear from the current page without the page having to be re-loaded).

These features use cookies and JavaScript so could easily be by-passed by someone with a little technical knowledge.

Will you be adding new features?

Yes - I have lots of plans for new features. You can pass your ideas to me using the feedback link in the plugin.

Some technical details

  • Plugin stores all its settings in a single option (adlog_options).
  • Logging data is stored in a new table.
  • Uninstall support is provided to delete the settings option and logging table if you uninstall the plugin.
  • Admin code is separated into a separate file so it is not loaded when your visitors view your pages.
  • The JavaScript for setting the referrer cookie is inserted using wp_enqueue_scripts.

Has anyone written code to do this before?

Yes there are similar commercial projects that do a similar job, but I didn't look at those because they cost money!

There are public domain projects, and information about how to do something similar. I looked at the following public domain projects, and sites, to get ideas:

No one has put these features into a WordPress plugin until now.

Requires: 3.0.0 or higher
Compatible up to: 3.2.1
Last Updated: 5 years ago
Active Installs: 300+


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,2,2