Skip to content

How to trigger a Popup after a Certain Number of Page Views in WordPress?

Key Takeaways

  • Nexter Blocks Popup Builder block triggers a popup after a visitor reaches a specified number of page views by using Display Conditions > After X Page Views.
  • Page View Count field accepts the exact number of page views a visitor must view before the popup shows.
  • Popup Load Settings tab sets the Type to Hidden, and the post notes there are no popup trigger elements on the page.
Table of Contents

Someone on their fourth page is browsing properly; someone on their first has barely arrived.

After X Page Views waits until a visitor has seen a number of pages before the popup appears.

For every Popup Builder setting in one place, see the Popup Builder block guide.

Before You Start

  • Edition: Pro — the Popup Builder block is part of Nexter Blocks Pro.
  • Block to enable: Popup Builder, switched on under Nexter > Blocks in your WordPress dashboard.
  • The popup’s content decided: a short message, a form, or a saved pattern to load into it.

Learn via Video Tutorial

Steps

  1. Add the Popup Builder block to your page and click Design from Scratch.
  1. In the Content panel, choose a Type and set the popup’s size.
The Content panel with the Type setting
  1. Set Content Type and add what the popup should show.
The Content Type setting with Pattern, Content, Editor and Shortcode
  1. Open Display Conditions and switch After X Page Views on.
The Display Conditions panel with After X Page Views and its count field
  1. Set how many pages a visitor should see before the popup appears.
  1. Publish the page and test it on the front end.

A popup can have more than one display condition switched on at once. Leave On Button Click on only if you also want the button to open it.

How It Behaves

  • The count is a number of page views in the same visit, not a number of visits.
  • It is meant to be combined with another condition, so the popup still needs a moment to open once the count is reached.
  • Switch On Button Click off if the popup should not also have its own button.
  • A per visitor limit stops the popup returning on every later page.

Limitations

  • Pro only.
  • The count is kept per visit, so it starts again for a returning visitor.
  • Page caching plugins can interfere with counting page views, so test with caching on before relying on it.
  • On a one page site there are no further page views to count.

Troubleshooting

The popup does not appear after the set number of pages

Test on the published site with caching active, since a cached page can be served without the view being counted. If it still does not appear, use another condition such as On Scroll or After Inactivity, which are counted in the browser.

It appears on the first page

Another condition such as On Page Load is probably also switched on.

Related Docs

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!