Browse Source

Remove Matomo

master
aeris 3 months ago
parent
commit
a1a7f4ce95
  1. 24
      app/lib/matomo.rb
  2. 1
      config/initializers/matomo.rb

24
app/lib/matomo.rb

@ -1,24 +0,0 @@
class Matomo
module Helpers
def matomo_tag
config = Matomo
return unless config.enabled?
render partial: 'matomo', locals: { config: config }
end
end
cattr_reader :url, :path, :site
def self.load
@@url = ENV.fetch 'MATOMO_URL'
@@site = ENV.fetch 'MATOMO_SITE'
@@disabled = ENV['MATOMO_DISABLED']
end
def self.enabled?
self.url && self.site && @@disabled.nil?
end
ActionView::Base.include Helpers
self.load
end

1
config/initializers/matomo.rb

@ -1 +0,0 @@
require 'matomo'
Loading…
Cancel
Save