Skip to content

Commit

Permalink
Merge pull request #11 from DFE-Digital/analytics
Browse files Browse the repository at this point in the history
change order of scripts
  • Loading branch information
sfawcett123 authored May 22, 2020
2 parents 2830628 + 80dca5f commit 04a6b1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
<%= favicon_link_tag asset_pack_path('media/images/govuk-apple-touch-icon-167x167.png'), rel: 'apple-touch-icon', type: 'image/png', size: '167x167' %>
<%= favicon_link_tag asset_pack_path('media/images/govuk-apple-touch-icon-180x180.png'), rel: 'apple-touch-icon', type: 'image/png', size: '180x180' %>
<%= stylesheet_pack_tag 'application', 'data-turbolinks-track': 'reload', media: 'all' %>
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload', defer: true %>
<%= javascript_pack_tag 'google_analytics', 'data-turbolinks-track': 'reload', defer: true %>
<% if Rails.env.production? %>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=“https://www.googletagmanager.com/gtag/js?id=UA-159214613-3”></script>
Expand All @@ -27,6 +25,9 @@
gtag(‘config’, ‘UA-159214613-3);
</script>
<% end %>
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload', defer: true %>
<%= javascript_pack_tag 'google_analytics' %>

</head>

<body class="govuk-template__body govuk-body">
Expand Down

0 comments on commit 04a6b1e

Please sign in to comment.