Override Signup CTA requirements

:information_source: Summary Override signup CTA requirements
:eyeglasses: Preview PREVIEW_LINK
:hammer_and_wrench: Repository GitHub - communiteq/discourse-tc-override-cta-requirements
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

As outlined in Showing "signup cta" quickly - #4 by Johani the variables that decide when a signup popup is shown are hard coded. This component allows you to override them.

This component allows a site administrator to override these values by offering settings for the three variables that were previously hard coded:​

  • prompt read time minutes: the amount of reading time in minutes before the CTA is triggered​
  • prompt topics: the number of topics that must be read before the CTA is triggered
  • prompt hide duration minutes: the amount of time the CTA is hidden when it is dismissed.

There is also a console decision logging setting. When it is enabled it will log the variables that are being evaluated when determining whether the CTA should be shown or not.

When this component is active, the native evalution logic in core must be disabled by unchecking the enable_signup_cta site setting.

This theme component also works with the Signup Banner theme component.

This component was made for and sponsored by Playground by LGM, community dedicated to Growth, Sales & Recruiters to share on B2B outreach strategies.

5 Likes