Class: Consently::Providers::Plausible

Inherits:
Base
  • Object
show all
Defined in:
lib/consently/providers/plausible.rb

Overview

Cookieless, and often run without a banner at all - but whether that is allowed is a legal call, not ours, so it waits for consent like any other analytics tag. Move it with category: :necessary if your legal advice says it may run right away.

Constant Summary

Constants inherited from Base

Base::SAFE_OPTION

Instance Attribute Summary

Attributes inherited from Base

#category, #key, #options

Instance Method Summary collapse

Methods inherited from Base

build, cookie, cookie_manifest, #cookies, google?, #google?, #initialize, #noscript, provider_key, provider_key=, register, registry, #to_s

Constructor Details

This class inherits a constructor from Consently::Providers::Base

Instance Method Details

#scriptsObject



11
12
13
# File 'lib/consently/providers/plausible.rb', line 11

def scripts
  [ Script.new(src: "#{host}/js/script.js", defer: true, data: { "domain" => domain }) ]
end