Skip to content

Commit

Permalink
[RECIPE][SLG] Add simple analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitytakei committed Nov 11, 2024
1 parent 646e3af commit 1b044da
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ gem "rails", "8.0.0.beta1"
gem "bootsnap", require: false
gem "friendly_id", "~> 5.5.1"
gem "kamal", "~> 1.8.3", require: false
gem "mission_control-jobs", "~> 0.3.1"
gem "mission_control-jobs", "~> 0.3.3"
gem "litestream", "~> 0.11.2"
gem "propshaft", "~> 1.1.0"
gem "solid_cache", "~> 1.0.6"
gem "solid_queue", "~> 1.0.0"
gem "sqlite3", "~> 2.1.0"
gem "stimulus-rails"
gem "turbo-rails", "~> 2.0.10"
gem "turbo-rails", "~> 2.0.11"
gem "puma", ">= 6.4.3"
gem "phlex-rails", "~> 1.2.1"
gem "thruster", "~> 0.1.8"
Expand All @@ -35,7 +35,7 @@ group :test do
end

group :development, :test do
gem "brakeman", "~> 6.2.1", require: false
gem "brakeman", "~> 6.2.2", require: false
gem "debug", platforms: %i[ mri ], require: "debug/prelude"
gem "rubocop-rails-omakase", require: false
gem "amazing_print", "~> 1.6"
Expand Down
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ GEM
bindex (0.8.1)
bootsnap (1.18.4)
msgpack (~> 1.2)
brakeman (6.2.1)
brakeman (6.2.2)
racc
builder (3.3.0)
capybara (3.40.0)
Expand Down Expand Up @@ -141,7 +141,7 @@ GEM
activesupport (>= 6.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
importmap-rails (2.0.1)
importmap-rails (2.0.3)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)
Expand Down Expand Up @@ -214,7 +214,7 @@ GEM
minio (0.4.0-x86_64-darwin)
minio (0.4.0-x86_64-linux)
minitest (5.25.1)
mission_control-jobs (0.3.1)
mission_control-jobs (0.3.3)
importmap-rails
irb (~> 1.13)
rails (>= 7.1)
Expand Down Expand Up @@ -406,7 +406,7 @@ GEM
thruster (0.1.8-x86_64-darwin)
thruster (0.1.8-x86_64-linux)
timeout (0.4.1)
turbo-rails (2.0.10)
turbo-rails (2.0.11)
actionpack (>= 6.0.0)
railties (>= 6.0.0)
tzinfo (2.0.6)
Expand Down Expand Up @@ -456,7 +456,7 @@ DEPENDENCIES
annotaterb
better_html
bootsnap
brakeman (~> 6.2.1)
brakeman (~> 6.2.2)
capybara
debug
dotenv-rails
Expand All @@ -465,7 +465,7 @@ DEPENDENCIES
kamal (~> 1.8.3)
litestream (~> 0.11.2)
minio (~> 0.4.0)
mission_control-jobs (~> 0.3.1)
mission_control-jobs (~> 0.3.3)
mocha (~> 2.4.5)
overcommit
phlex-rails (~> 1.2.1)
Expand All @@ -481,7 +481,7 @@ DEPENDENCIES
sqlite3 (~> 2.1.0)
stimulus-rails
thruster (~> 0.1.8)
turbo-rails (~> 2.0.10)
turbo-rails (~> 2.0.11)
vite_rails (~> 3.0.17)
web-console

Expand Down
3 changes: 3 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
<body>
<%= render Nav::Main::Component.new %>
<%= yield %>
<!-- 100% privacy-first analytics -->
<script async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
</body>
</html>

0 comments on commit 1b044da

Please sign in to comment.