Permalink
Browse files

GA Bug Fix

  • Loading branch information...
1 parent fee24a2 commit b019b675364cf335cbfeabb6c7fddd598021f926 @sudorandom sudorandom committed Jan 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/index.html
View
@@ -34,15 +34,15 @@
result_submit.removeAttr("disabled").removeClass("disabled");
// Populate results
$('#result_container').html(data);
- if (typeof(x) != "undefined") {
+ if (typeof(_gaq) != "undefined") {
_gaq.push(['_trackPageview', 'estimate_cost']);
}
}).error(function() {
// Enable form components
result.removeAttr("disabled").removeClass("disabled");
result_submit.removeAttr("disabled").removeClass("disabled");
alert("Server responded with an error.");
- if (typeof(x) != "undefined") {
+ if (typeof(_gaq) != "undefined") {
_gaq.push(['_trackPageview', 'estimate_cost_fail']);
}
});

0 comments on commit b019b67

Please sign in to comment.