Ad Impression and Click Tracking
Ad Inserter Pro supports ad impression and click tracking. This enables you to monitor how many times each ad was displayed and how many times it was clicked. In the case you are displaying two or more ad options (A/B testing) you can easily determine which ad option has the highest CTR (Click-Through Rate).
To use tracking you need to enable it globally (at the level of plugin), select click detection method (if available in your version) and then enable tracking for individual code blocks (ads). When enabled, Ad Inserter Pro adds tracking code to each page where ads are inserted. Let's first clarify some terms.
<iframe> HTML element which is isolated from the main page and doesn't support click detection. However, with some advanced code it is possible to quite reliably "guess" when the user has clicked inside iframe ad. Therefore, Ad Inserter Pro supports two methods for click detection.
Standard Click Detection
This method can detect clicks on banners with links and is available in all versions of Ad Inserter Pro. An example of banner code where clicks can be reliably detected with standard click detection:
<a href="https://wordpress.org/plugins/ad-inserter/" target="_blank"><img src="https://ps.w.org/ad-inserter/assets/icon-256x256.jpg" /></a>
Advanced Click Detection
This method can detect clicks on any ad code but is not available in all versions of Ad Inserter Pro. Please note that impressions and clicks detected by Ad Inserter Pro might be differend from statistics of ad networks. This is mainly because the way how impressions and clicks are counted differs for each ad network and ad networks may not count some events (e.g. invalid clicks for AdSense). However, the method is reliable enough to get CTR in A/B tests and determine which ad gets more clicks.
Tracking settings are available on the plugin settings tab (*).
To globally enable tracking set Tracking to Internal. If you would like to test tracking and check statistics while you are logged in set Track Logged In Users to Enabled. Choose (if available) Internal Click Tracking Detection method according to the explanation above:
- Standard click detection can detect clicks only on banners with links and is available in all versions of Ad Inserter Pro.
<iframe>ads) but is not available in all versions of Ad Inserter Pro.
Clear All Statistics Data clears all impression and click data for all code blocks. Use it only when you need to delete all statistics.
When enabled, Ad Inserter tracks each pageview (page load). To see the statistics click on the Statistics button.
Statistics show pageviews by device and, if ad blocking detection is enabled, also events where ad blocking was detected and ad blocking share for each device. Devices are detected based on Viewports settings.
To track individual code block (or ad) you need to enable tracking for this code block. Click on the tracking button and save settings.
Once the tracking for the code block is enabled, Ad Inserter Pro will insert tracking code on the page where this ad is inserted and will track impressions and clicks on this ad. If you are using caching you need to clear cache before tracking can be used.
To see impression and click statistics for this block click on the statistics button.
This button toggles code editor and statistics display.
Tracking statistics shows imperessions, clicks and CTR for the selected range including average value for the last 30 days. You can select one of the predefined ranges (last month, this month, this year, last 15, last 30, last 90 last 180 or last 365 days) or select custom date range. The statistics data is kept for one year. When you select a predefined range the data is loaded automatically, for custom data range you need to click on the load button to load statistics data for this range.
Sometimes you might get error message when trying to load data. This is usually due to expired security token (the page has been loaded for a while). In such case simply reload Ad Inserter Pro settings page.
Ad Inserter Pro supports also live tracking - you can watch in real time how impressions, clicks and CTR change when visitors visit your website. For this you need to enable Auto Refresh function.
When this function is enabled Ad Inserter Pro will reload data every 60 seconds.
Sometimes you may want to clear statistics data for some date range. To do this select wanted date range and click on the clear button. All the statistics data for this block will be deleted and the charts will show no data for this date range.
When tracking is globally or just for this block disabled, you may still analyze stored statistics data. In such case there will be a small yellow sign indicating disabled tracking.
When code block (or ad) has two or more versions (using
[ADINSERTER ROTATE] function), tracking statistics will show total data (impressions, clicks and CTR) and data for each version. This way you can easily determine which version gets more clicks.
Please note that there might be some slight imbalance between version impressions. The
[ADINSERTER ROTATE] function randomly slects one ad on each page load so on long run you'll get almost equal number of impressions for each ad version. However, the CTR will always be accurate as it is the ratio of actual clicks and impressions.
No version label simply means that there are also impressions or clicks where there was only one ad version or version was not detected (due to some error on the page).
You can also get impression, click and CTR charts for individual ad versions. Click on Details button to toggle version charts.
Ad Blocking Statistics
Ad Inserter supports Ad Blocking Detection. When enabled, it tracks also ad blocking events. To see ad blocking statistics for individual code block click on the Ad Blocking Statistics button.
- When ad blocking detection is not enabled (tab * / tab Ad Blocking) all impressions are normally counted regardless whether the ad was blocked or not.
- When ad blocking detection is enabled, default statistics show only impressions where the ad was not blocked. To count ad as blocked, ad blocking must be detected and ad height must be 0.
- When ad blocking detection is enabled, statistics with ad blocking (Ad Blocking Statistics enabled) show all impressions and share of ad blocking events. In the case of ad rotation, ad blocking events are represented as one version (blocked impression).