Add registration event
This commit is contained in:
parent
a87cb4204c
commit
284f78a517
1 changed files with 3 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ function initializeBaseTracking() {
|
|||
ga('require', '<%= ENV["GA_OPTIMIZE_ID"] %>');
|
||||
}
|
||||
ga('send', 'pageview', location.pathname + location.search);
|
||||
if (document.location.search.indexOf('newly-registered-user=true') > -1) {
|
||||
ga('send', 'event', 'registration', 'New user registration', location.pathname, null);
|
||||
}
|
||||
clearInterval(waitingOnGA);
|
||||
}
|
||||
if (wait > 60) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue