Skip to content

Commit

Permalink
Reinstate plausible extra features from before
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Nov 19, 2024
1 parent 09749a1 commit 04e37b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/views/application/_html_head.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<%= render "google_tag_manager" %>
<% if Rails.env.production? %>
<%# plausible.io analytics %>
<%# TODO: Reinstate outbound link tracking and tracking of whether user is signed in %>
<script defer data-domain="planningalerts.org.au" src="/js/script.manual.js"></script>
<script defer event-signed_in="<%= user_signed_in?.to_s %>" data-domain="planningalerts.org.au" src="/js/script.manual.outbound-links.pageview-props.js"></script>
<script>
window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }
plausible('pageview', { u: "https://www.planningalerts.org.au<%= request.route_uri_pattern.gsub("(.:format)", "") %>" + window.location.search });
Expand Down

0 comments on commit 04e37b4

Please sign in to comment.