Skip to content

Commit

Permalink
Merge pull request #13 from DFE-Digital/analytics
Browse files Browse the repository at this point in the history
removed false chars
  • Loading branch information
sfawcett123 authored May 22, 2020
2 parents ef3df69 + 273a9d1 commit b2b2f0b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<!DOCTYPE html>
<html lang="en" class="govuk-template ">
<head>
<% 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>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-159214613-3);
</script>
<% end %>
<title>Get a Teacher Training Adviser</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
Expand All @@ -15,19 +25,8 @@
<%= 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' %>
<% 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>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
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 b2b2f0b

Please sign in to comment.