Skip to content

Commit

Permalink
Add support for plausible analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
zonque committed Apr 19, 2024
1 parent 0444a24 commit a294854
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
=stylesheet_link_tag "https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css", "data-turbo-track": "reload"
=stylesheet_link_tag "https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css", "data-turbo-track": "reload"
-if ENV['PLAUSIBLE_DOMAIN'].present? and ENV['PLAUSIBLE_SRC'].present?
%script{async: "", defer: "", "data-domain": ENV['PLAUSIBLE_DOMAIN'], src: ENV['PLAUSIBLE_SRC']}
%script{async: "", src: "https://cdn.jsdelivr.net/npm/[email protected]/dist/es-module-shims.min.js"}
=javascript_importmap_tags
Expand Down

0 comments on commit a294854

Please sign in to comment.