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:
commit
84d087ce5c
@ -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