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:
parent
192f5a852f
commit
17accee2b5
@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user