Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Uses Events for GA instead of 'pageviews'

  • Loading branch information...
commit 0b87e828b7c33e57e0e5ff4153a8f65a048b4ab4 1 parent b019b67
@sudorandom sudorandom authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/index.html
View
4 templates/index.html
@@ -35,7 +35,7 @@
// Populate results
$('#result_container').html(data);
if (typeof(_gaq) != "undefined") {
- _gaq.push(['_trackPageview', 'estimate_cost']);
+ _gaq.push(['_trackEvent', 'estimate_cost', 'success']);
}
}).error(function() {
// Enable form components
@@ -43,7 +43,7 @@
result_submit.removeAttr("disabled").removeClass("disabled");
alert("Server responded with an error.");
if (typeof(_gaq) != "undefined") {
- _gaq.push(['_trackPageview', 'estimate_cost_fail']);
+ _gaq.push(['_trackEvent', 'estimate_cost', 'fail']);
}
});
return false;
Please sign in to comment.
Something went wrong with that request. Please try again.