Closed Bug 845942 Opened 11 years ago Closed 11 years ago

add google analytics

Categories

(Input :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Unassigned)

References

Details

The old input uses Webtrends. Both are going away in the near future. Fjord currently uses nothing.

This bug covers the work to set up Fjord with Google Analytics.
Making this block bug #832316. We want this in place before we hit production. I'll probably do it next week after we find out whether the GA code I'm tossing in the old input is working or not.
Blocks: 832316
Depends on: 838873
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-35433268-26']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

The changes for input.mozilla.org were in:

https://github.com/mozilla/input.mozilla.org/pull/62
Landed in master in https://github.com/mozilla/fjord/commit/c990ce86ce05fe918d9b5a19a950249cb6fa3519
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.