1
0
mirror of https://github.com/bigchaindb/site.git synced 2025-01-11 13:33:47 +01:00

custom GA event on enterprise form submission

This commit is contained in:
Matthias Kretschmann 2017-05-22 20:04:19 +02:00
parent 192f5a852f
commit 17accee2b5
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
2 changed files with 10 additions and 2 deletions

View File

@ -157,6 +157,14 @@ var GoogleAnalytics = (function(w,d,$) {
},
gaEventClaError: function() {
ga('send', 'event', 'cla', 'cla_form', 'error');
},
// Enterprise form
gaEventEnterpriseSuccess: function() {
ga('send', 'event', 'enterprise', 'enterprise_form', 'success');
},
gaEventEnterpriseError: function() {
ga('send', 'event', 'enterprise', 'enterprise_form', 'error');
}
};

View File

@ -35,7 +35,7 @@ var FormEnterprise = (function(w, d, $) {
// send GA event
if (!_dntEnabled()) {
//GoogleAnalytics.gaEventContactSuccess();
GoogleAnalytics.gaEventEnterpriseSuccess();
}
},
error: function(err) {
@ -46,7 +46,7 @@ var FormEnterprise = (function(w, d, $) {
// send GA event
if (!_dntEnabled()) {
//GoogleAnalytics.gaEventContactError();
GoogleAnalytics.gaEventEnterpriseError();
}
}
});