Override Signup CTA requirements

AI-generated summary

This is a Discourse theme component that allows site administrators to override the default behavior for displaying the signup call-to-action (CTA) popup. It provides settings to customize the reading time, number of topics read, and dismissal duration required before triggering the CTA. It also includes console logging for debugging the CTA logic. To use this component, the native enable_signup_cta site setting must be disabled. This component works alongside the Signup Banner theme component and was sponsored by Playground by LGM.

Key features:

  • Customize prompt read time before showing CTA
  • Customize number of topics read before showing CTA
  • Customize duration to hide CTA after dismissal
  • Console logging for CTA decision logic
  • Compatible with Signup Banner theme component
  • Sponsored by Playground by LGM
:information_source: Summary Override signup CTA requirements
:eyeglasses: Preview PREVIEW_LINK
:hammer_and_wrench: Repository GitHub - communiteq/discourse-tc-override-cta-requirements · GitHub
: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.

8 Likes