1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

Merge pull request #123 from ascribe/feature/enterprise-goal

Track enterprise form submissions in Google Analytics
This commit is contained in:
Matthias Kretschmann 2017-05-22 20:21:56 +02:00 committed by GitHub
commit 84d087ce5c
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();
}
}
});