Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Updates DAP snippet, tightens GA settings

  • Loading branch information...
konklone committed Aug 22, 2015
1 parent 7668c7f commit 9bbaab0a1112996f28a0d1d9494d49cbb984fedc
Showing with 4 additions and 2 deletions.
  1. +4 −2 _includes/analytics.html
@@ -3,14 +3,16 @@
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics_ua }}', 'gsa.gov');
// anonymize user IPs (chops off the last IP triplet)
ga('set', 'anonymizeIp', true);
ga('set', 'forceSSL', true);
ga('send', 'pageview');
</script>

<!-- Digital Analytics Program roll-up, see https://analytics.usa.gov for data -->
<script id="_fed_an_ua_tag" src="https://analytics.usa.gov/dap/dap.min.js" async></script>
<script id="_fed_an_ua_tag" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=GSA"></script>

0 comments on commit 9bbaab0

Please sign in to comment.
You can’t perform that action at this time.