|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function sendErrorReport(category, error, errordata) {
|
|
|
|
|
if (getStorage("analytics") !== "false") {
|
|
|
|
|
if (getStorage("analytics") !== "false" && typeof _paq !== "undefined") {
|
|
|
|
|
try {
|
|
|
|
|
if (typeof errordata == "undefined") {
|
|
|
|
|
_paq.push(['trackEvent', 'Error', category, error]);
|
|
|
|
@ -20,7 +20,7 @@ function sendErrorReport(category, error, errordata) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function sendActionReport(category, action, data) {
|
|
|
|
|
if (getStorage("analytics") !== "false") {
|
|
|
|
|
if (getStorage("analytics") !== "false" && typeof _paq !== "undefined") {
|
|
|
|
|
try {
|
|
|
|
|
if (typeof data == "undefined") {
|
|
|
|
|
_paq.push(['trackEvent', 'User Action', category, action]);
|
|
|
|
@ -34,7 +34,7 @@ function sendActionReport(category, action, data) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function trackPageView(url, title) {
|
|
|
|
|
if (getStorage("analytics") !== "false") {
|
|
|
|
|
if (getStorage("analytics") !== "false" && typeof _paq !== "undefined") {
|
|
|
|
|
try {
|
|
|
|
|
_paq.push(['setCustomUrl', "https://app.helena.express" + url]);
|
|
|
|
|
_paq.push(['setDocumentTitle', title]);
|
|
|
|
|