Website: Update signup-modal component to track key events (#35731)

Changes:
- Updated the sign-up modal component to track `fleet_website__sign_up`
events in Google analytics, and a conversion in LinkedIn campaign
manager when new users create an account.
This commit is contained in:
Eric
2025-11-13 17:09:24 -06:00
committed by GitHub
parent 01298afe9c
commit 41a163119b
+11
View File
@@ -232,6 +232,17 @@ parasails.registerComponent('signupModal', {
submittedSignupForm: async function(){
this.syncing = true;
// Track a "key event" in Google Analytics.
// > Naming convention: (like sails config)
// > "Website - Sign up" becomes "fleet_website__sign_up" (double-underscore representing hierarchy)
if(window.gtag !== undefined){
window.gtag('event','fleet_website__sign_up');
}
// Track a "conversion" in LinkedIn Campaign Manager.
if(window.lintrk !== undefined) {
window.lintrk('track', { conversion_id: 18587097 });// eslint-disable-line camelcase
}
this.goto('/try');
},
submittedLoginForm: async function() {