Browse Source

CLDC-1329: Add plausible analytics script (#718)

* Add plausible analytics script

* Lint
pull/720/head v0.1.26
baarkerlounger 3 years ago committed by GitHub
parent
commit
3e920511a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/views/layouts/application.html.erb

4
app/views/layouts/application.html.erb

@ -33,6 +33,10 @@
console.log(<%= session.to_json.html_safe %>) console.log(<%= session.to_json.html_safe %>)
</script> </script>
<% end %> <% end %>
<% if Rails.env.production? %>
<script defer data-domain=<% ENV["APP_HOST"].split("https://")[1] %>src="https://plausible.io/js/plausible.js"></script>
<% end %>
</head> </head>
<body class="govuk-template__body app-template--wide"> <body class="govuk-template__body app-template--wide">

Loading…
Cancel
Save