Skip to content

Commit

Permalink
Track 'browser_language' for 'Newsletter Signup' (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertJoonas authored Jul 26, 2024
1 parent 4754467 commit ceecfd5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ if (newsletterForm) {
}
}

plausible('Newsletter signup', {callback: submitForm});
plausible('Newsletter signup', {
callback: submitForm,
props: {
browser_language: navigator.language || navigator.userLanguage
}
});
})
}

0 comments on commit ceecfd5

Please sign in to comment.