Showing "signup cta" quickly

We don’t show the signup cta by default because sites that prompt you to sign up on your very first page-view are annoying. We only show it if the user has expressed some interest in your site.

The requirements are as follows:

  1. the user must have a total reading time of at least 2 minutes

https://github.com/discourse/discourse/blob/ca57e18f42967414bd34db12e0e1425eeb75d857/app/assets/javascripts/discourse/initializers/signup-cta.js.es6#L48-L50

ANON_PROMPT_READ_TIME is defined here

https://github.com/discourse/discourse/blob/ca57e18f42967414bd34db12e0e1425eeb75d857/app/assets/javascripts/discourse/initializers/signup-cta.js.es6#L4

  1. the user must view more than two topics on your site

https://github.com/discourse/discourse/blob/ca57e18f42967414bd34db12e0e1425eeb75d857/app/assets/javascripts/discourse/initializers/signup-cta.js.es6#L57-L59

ANON_TOPIC_IDS is defined here

https://github.com/discourse/discourse/blob/ca57e18f42967414bd34db12e0e1425eeb75d857/app/assets/javascripts/discourse/initializers/signup-cta.js.es6#L3

Once those requirements are met, the cta will be shown, otherwise, it won’t.

8 Likes