Previous Page Impressions Condition

With Advanced Ads Pro you can display or hide an ad based on the number of page impressions a visitor has made. This is useful to fine tune ads for recurring and faithful users.

You don’t have to make any changes in order to display an ad everywhere. Only use this option if you want to limit the visitors to which the ad is visible.

To display an ad based on the previous page impressions, go to the Visitor conditions metabox and add the page impressions condition.

ad by page impressions setting

Setting the number of impressions

Now, select the operator type and the number of impressions a user must have made on your website before the current page impression in order to see the ad. Find some working examples below. Just a few notes:

  • the current page view is not counted, i.e. new users have 0 impressions
  • impressions are all-time impressions, i.e. a returning visitor already has some impressions set
  • The condition works by using a cookie to store and check the number of impressions.
  • the advanced_ads_page_impressionscookie used to store these values has a lifetime of 10 years
  • you can set the ADVANCED_ADS_PRO_PAGE_IMPR_EXDAYS constant in your wp-config.php file to another expiry period set in days. The change would only affect new users. Find an example of the code here.

Subscribe to our newsletter and get 2 add-ons for free!

* indicates required

Examples to use the page impressions condition for

Display the ad only to new visitors that have never been on your website before:

ads for new visitors setting

Display the ad only to visitors with more than one page impression.

ads for returning visitors setting

Make it better

Increase your ad management skills without spending more time.
Join over 150,000 publishers and AdOpts increasing their ad revenue.