utm tracking in db (#574)

* utm tracking in db

* fix array key bug
This commit is contained in:
Favour Olayinka
2024-09-18 17:50:04 +01:00
committed by GitHub
parent 7f6c21408c
commit a057045ef6
8 changed files with 44 additions and 1 deletions

View File

@@ -140,12 +140,14 @@ export default {
emits: ['afterQuickLogin', 'openLogin'],
setup() {
const { $utm } = useNuxtApp()
return {
authStore: useAuthStore(),
formsStore: useFormsStore(),
workspaceStore: useWorkspacesStore(),
providersStore: useOAuthProvidersStore(),
logEvent: useAmplitude().logEvent,
$utm
}
},
@@ -157,6 +159,7 @@ export default {
password_confirmation: "",
agree_terms: false,
appsumo_license: null,
utm_data: null
}),
disableEmail:false
}),
@@ -204,6 +207,7 @@ export default {
methods: {
async register() {
let data
this.form.utm_data = this.$utm.value
try {
// Register the user.
data = await this.form.post("/register")