DEV: Add cta app event (#15051)

DEV: Add cta app event (#15051)

Add app event for when CTA is triggered for anon users

diff --git a/app/assets/javascripts/discourse/app/initializers/signup-cta.js b/app/assets/javascripts/discourse/app/initializers/signup-cta.js
index 48df8e1..c44a1b0 100644
--- a/app/assets/javascripts/discourse/app/initializers/signup-cta.js
+++ b/app/assets/javascripts/discourse/app/initializers/signup-cta.js
@@ -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);

GitHub sha: 09260148b16f44a9163a8fea25d8c742e65aa89d

This commit appears in #15051 which was approved by eviltrout. It was merged by SamSaffron.