Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Site isn't using Google Analytics UA #2

Closed
konklone opened this issue May 6, 2015 · 2 comments
Closed

Site isn't using Google Analytics UA #2

konklone opened this issue May 6, 2015 · 2 comments

Comments

@konklone
Copy link

konklone commented May 6, 2015

The site's own analytics tracker (not the DAP) is using the old style of tracker:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-28227333-1']);
  _gaq.push(['_setDomainName', 'usa.gov']);
  _gaq.push(['_setAllowLinker', true]);
  _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>

This should use the new Universal Analytics tracker, to avoid being shut off by Google in the future.

@jrears
Copy link

jrears commented Jun 15, 2015

Definitely should update

@smileytech
Copy link
Contributor

Thanks for the suggestion! We’ve made this change on the sites.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants