mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #8727 from Matt-Yorkley/js-matomo-login
Move Matomo event tracking for login modal into Authentication service
This commit is contained in:
@@ -21,6 +21,9 @@ angular.module('Darkswarm').factory "AuthenticationService", (Navigation, $modal
|
||||
@selectedPath = path || @selectedPath
|
||||
Navigation.navigate @selectedPath
|
||||
|
||||
if window._paq
|
||||
window._paq.push(['trackEvent', 'Signin/Signup', 'Login Modal View', window.location.href])
|
||||
|
||||
# Opens the /login tab if returning from email confirmation,
|
||||
# the /signup tab if opened from the enterprise registration page,
|
||||
# otherwise opens whichever tab is selected in the URL params ('/login', '/signup', or '/forgot')
|
||||
|
||||
@@ -42,7 +42,3 @@
|
||||
tabindex: "4",
|
||||
type: "submit",
|
||||
value: "{{'label_login' | t}}"}
|
||||
:javascript
|
||||
if (window._paq) {
|
||||
window._paq.push(['trackEvent', 'Signin/Signup', 'Login Modal View', window.location.href]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user