Support Home > Utilities > Repeat Visitor Block

Repeat Visitor Block

The Repeat Visitor block enables the author to control the visibility of its nested block(s) depending on how many times a visitor has visited the page.

Adding the Repeat Visitor Block

The Repeat Visitor block is available on all Jetpack-connected sites. It is a part of the Jetpack Blocks suite and is activated by default. See our Jetpack Blocks article to learn about the available blocks and how to activate them.

Jetpack Blocks require the Block Editor (also referred to as the Gutenberg editor). If you’ve installed the Classic Editor plugin, you will need to switch back to the Block Editor either by:

  • Deactivating the Classic Editor: Go to PluginsInstalled Plugins in your WP Admin and deactivate the Classic Editor plugin.
  • Enabling both editors: If you prefer flexibility, navigate to Settings → Writing in your WP Admin. Set Allow users to switch editors to Yes.

See Using Blocks and the Classic Editor for more details.
It may happen that an editor that comes with a custom theme or plugin prevents you from using the Block Editor. In that case, please contact the respective plugin or theme author for further assistance.

You can add the Repeat Visitor block by searching and/or selecting it from the Jetpack section of the block selector:

After adding the block, you can configure the Visit Count Threshold and Visibility settings to specify the criteria for displaying the block’s contents.

For example, if you set the Visit Count Threshold to 5, and Visibility to Show after threshold, then the block contents will only be displayed to people who have visited the page more than 5 times. On the first 5 visits, the content will not be displayed.

If you set the Visit Count Threshold to 3, and Visibility to Show before the threshold, then the contents will only be displayed to people who have visited the page at most 3 times. From the 4th visit onward, the content will not be displayed.

The text in the blue block below the settings gives a handy description of your chosen settings. This text is for the author only, and won’t be seen by your visitors.

Once you’ve configured the display criteria, you can add the content that will be displayed when those criteria are met. This is done by adding any number of blocks within the Repeat Visitor Block.

Block Toolbar

Click on the block to display the block toolbar. The Repeat Visitor block offers the following options in its toolbar:

As with the image block, the Repeat Visitor block can be set by clicking the wide-width or full-width icons.

Block Settings

Every block has specific options in the editor sidebar and options found in the block toolbar. If you do not see the sidebar, click the ‘settings’ icon next to the Publish button.

Advanced

The advanced tab lets you add a CSS class to your block, allowing you to write custom CSS and style the block as you see fit.

Troubleshooting

The visit count doesn’t seem accurate when adding more than one block.

Note that visits are counted per page/post, not per block. This can cause confusion when adding multiple Repeat Visitor blocks on the same page.

For example:

  • You add a Repeat Visitor block to a post, set to display after 5 visits.
  • Visitor A visits the post, and their visit count is 1.
  • You then add another Repeat Visitor block to the same post, set to display on the first visit only.
  • Visitor A visits the post again, and their visit count is now set to 2, so they don’t see the new block.

The block is not working at all

The Repeat Visitor block relies on cookies. If a visitor has cookies disabled in their browser, the block will not function correctly.

Still need help?

Please contact support directly. We’re happy to advise.

Privacy Information

The Repeated Visitor Block is activated by default. If you would like to deactivate it, you can follow this guide.

Data Used
Site Owners / Users

None.

Site Visitors

The Repeat Visitor block records page views by setting a cookie named jp-visit-counter in the visitor’s browser, which is incremented on each visit. This cookie is stored only in the browser and not recorded in our databases.

Activity Tracked
Site Owners / Users

None.

Site Visitors

None.

Data Synced (Read More)
Site Owners / Users

None.

Site Visitors

None.

 
  • Table Of Contents

  • Contact Us

    Need more help? Feel free to contact us.