DEV: Add cta app event (#15051)

Add app event for when CTA is triggered for anon users
This commit is contained in:
Jordan Vidrine 2021-11-24 22:10:26 -06:00 committed by GitHub
parent db5edc713b
commit 09260148b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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);