mirror of
https://github.com/bigchaindb/site.git
synced 2025-02-14 21:10:28 +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() {
|
gaEventClaError: function() {
|
||||||
ga('send', 'event', 'cla', 'cla_form', 'error');
|
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
|
// send GA event
|
||||||
if (!_dntEnabled()) {
|
if (!_dntEnabled()) {
|
||||||
//GoogleAnalytics.gaEventContactSuccess();
|
GoogleAnalytics.gaEventEnterpriseSuccess();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(err) {
|
error: function(err) {
|
||||||
@ -46,7 +46,7 @@ var FormEnterprise = (function(w, d, $) {
|
|||||||
|
|
||||||
// send GA event
|
// send GA event
|
||||||
if (!_dntEnabled()) {
|
if (!_dntEnabled()) {
|
||||||
//GoogleAnalytics.gaEventContactError();
|
GoogleAnalytics.gaEventEnterpriseError();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user