Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
🔧 Extract analytics info to credentials (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephannv authored Sep 3, 2022
1 parent ce0b5d3 commit c9bcaac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
<%= javascript_include_tag "application", defer: true, "data-turbo-track": "reload" %>

<% if Rails.env.production? %>
<script data-domain="nindika.com" src="https://analytics.nindika.com/js/plausible.js" async defer></script>
<script
data-domain="<%= Rails.application.credentials.plausible_data_domain %>"
src="<%= Rails.application.credentials.plausible_src %>"
async
defer
></script>
<% end %>

<%= yield :head %>
Expand Down
6 changes: 5 additions & 1 deletion bin/setup_dev_credentials
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ CONTENT="secret_key_base: $(rake secret)
# TO ENABLE SENTRY (Error tracking & performance monitoring). (OPTIONAL)
# sentry_dsn: <FILL HERE>
# TO ENABLE PLAUSBLE (Privacy-friendly analytics). (OPTIONAL)
# TO ENABLE PLAUSIBLE ANALYTICS (Privacy-friendly analytics). (OPTIONAL)
# plausible_data_domain: <FILL HERE>
# plausible_src: <FILL HERE>
# TO ENABLE PLAUSIBLE DATA IMPORT (Privacy-friendly analytics). (OPTIONAL)
# plausible_api_key: <FILL HERE>
# TO ENABLE SIGN IN WITH TWITTER. (OPTIONAL)
Expand Down
2 changes: 1 addition & 1 deletion config/credentials/production.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
iaKYCiDOPCcVV/LY5VZp6Imz32eCeomBpmftjTnvgn6uue2r02BX9o1TTtQSrFOH8b2oooWCtSeHnH5x7bDwY3Je03zy/4w4wmdXILJzarw7nsax0lwulETZOfAAYP+uMtgJtwxkVMB1cOL5FZ/OtChFLawOXlJXvfAXQjHGlrmSD0nFfKnTJEpWAxpaaZja7o46c7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