Sha256: 0cecaa87f9f0712d214ebdd27c976a251a62f12b962d8bab4b8c55e263b8630b
Contents?: true
Size: 793 Bytes
Versions: 16
Compression:
Stored size: 793 Bytes
Contents
<% warn('DEPRECATION WARNING: admin_analytics component is deprecated and will be removed in a future major release of govuk_publishing_components') user_organisation ||= nil %> <script class="analytics"> (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'); ga('create', 'UA-26179049-6', '<%= ENV['GOVUK_APP_DOMAIN'] %>'); ga('set', 'anonymizeIp', true); <% if user_organisation %> ga('set', 'dimension8', "<%= user_organisation.presence || '(not set)' %>"); <% end %> ga('send', 'pageview'); </script>
Version data entries
16 entries across 16 versions & 1 rubygems