Prompt user login or sign up after actions performed

I have a dictionary available at:

Is it possible to restrict access to pages after the users perform some actions? I am looking for whatever is easiest or other suggestions. The point is to try not to give away all the content, but not put all content behind a login. I would also prefer not to offer restricted content completely bc I want to make as much content available for search engines to crawl.

A few examples of what I want to do:

  1. Based on page views: Public site user visits a dynamic item page 3 times, login / sign up is prompted and access to further content is restricted.
    Example dynamic item page: https://www.idassoc.com/product-information-definition/organizing-principle

or

  1. Based on # of searches performed: Public site user performs 3 search queries, login / sign up is prompted and access to further content is restricted. search is performed here: https://www.idassoc.com/product-information-encyclopedia

Any code examples or other suggestions of how to offer this “teaser” content is appreciated, thx!

Hi @swood ,

You can use wixStorage to save the number of access to a page or site and verify every time the user loads the page.

https://www.wix.com/code/reference/wix-storage.html

You can also simply have a full page lightbox that cannot be exited aside from directing the user to the sign up/in pages. Have the lightbox pop up after 60 seconds. You can have the lightbox not pop up for logged in members.

1 Like