mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
DEV: Add cta app event (#15051)
Add app event for when CTA is triggered for anon users
This commit is contained in:
parent
db5edc713b
commit
09260148b1
@ -14,6 +14,7 @@ export default {
|
||||
const siteSettings = container.lookup("site-settings:main");
|
||||
const keyValueStore = container.lookup("key-value-store:main");
|
||||
const user = container.lookup("current-user:main");
|
||||
const appEvents = container.lookup("service:app-events");
|
||||
|
||||
screenTrack.keyValueStore = keyValueStore;
|
||||
|
||||
@ -72,6 +73,7 @@ export default {
|
||||
|
||||
// Requirements met.
|
||||
session.set("showSignupCta", true);
|
||||
appEvents.trigger("cta:shown");
|
||||
}
|
||||
|
||||
screenTrack.registerAnonCallback(checkSignupCtaRequirements);
|
||||
|
Loading…
Reference in New Issue
Block a user