Modal pop-up for first time visitor

AI-generated summary

The discussion revolves around implementing a modal pop-up for first-time visitors to a Discourse site, aimed at welcoming them and encouraging registration. trudat proposes a plugin called First time visitor with customizable settings like activation toggle, delay, scroll threshold, content type (Markdown/HTML/Onebox/CTA), and options to display signup links or specific posts. ron_jeremy suggests using Discourse’s built-in signup CTA, while tomwrench recommends external tools like getsitecontrol.com. Mittineague questions how to distinguish first-time visitors from logged-out members, noting existing features like the login modal and “Hey there!” prompt. trudat replies that IP tracking or cookies could identify anonymous users, assuming Discourse’s API supports such checks. erlend_sh confirms a similar feature already exists via a meta.discourse.org link. Jody revives the thread seeking a category-specific modal, and sam confirms feasibility via a custom plugin requiring server-side state, offering to provide a quote for development. The thread concludes without a native solution, pointing toward custom plugins or third-party tools as viable paths.

This is a feature suggestion, to have a modal pop-up that displays only for first time visitors to a Discourse site. The modal can be filled with HTML or other content types. The purpose is to say hello to first time visitors and encourage them to register.

This would most likely be implemented as a plug-in, called First time visitor.

Does something like this already exist?

Here are the settings I imagine the plug-in providing. I’d be glad to make a mock up, but I think we all know what a modal looks like.

Plug-in settings

  • Activate modal: on / off
  • Time delay before modal appears: ___ seconds
  • Modal appears on vertical scroll to: ___ % page
  • Modal content type: Markdown / HTML / Onebox / Default signup CTA
    • Enter content here
  • Display link to signup: on / off
  • Display link to a post: ____ [post id]
  • Display First time visitor on an anonymous user’s first ___ visits.

Would the signup cta do the trick? In the Discourse Admin Settings section, search for the following: enable signupI don’t know if you can customize it, but it does the trick as is.

1 Mi Piace

You could always try an external service, such as https://getsitecontrol.com/ ? Here you can choose the type of window, who it targets etc.

I’ve been looking at this for my Discourse instance I’m currently working on.

1 Mi Piace

Only curious.

How to you differentiate between a “first time visitor” and a member that hasn’t logged in?

There is already the “Log In” modal for when a non-logged-in visitor wants to post a Reply.
There is already the “Hey there!” that shows at topic bottom when a non-logged-in visitor has read a few topics.

Would those not be enough?

This looks very promising. I may end up using this. Thanks

That accomplishes the most basic use case. If someone were to implement the proposed functionality, that would probably be the right place to start.

I’m assuming that Discourse is logging IP addresses and/or storing visit counts in a browser cookie. That info can be used to flag an anonymous user’s IP as belonging to a registered user. I’m assuming -optimistically- that Discourse’s API makes it easy to check this.

Yep, it does:

4 Mi Piace

Mi dispiace riaprire un post così vecchio, ma non vedo molto altro che lo copra… il che molto probabilmente significa che non esiste o non è mai successo. La mia particolarità è che uno dei miei team vuole avere un popup modale quando gli utenti visitano per la prima volta questa nuova categoria… fondamentalmente bloccandola, con una particolarità.

Jody, questo è fattibile utilizzando un plugin personalizzato (poiché avremmo bisogno dello stato lato server), se desideri che quotiamo il lavoro, invia un’email a team.