hendrikschneider/jekyll-analytics

View on GitHub
lib/analytics/plausible.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Plausible
    def initialize(config)
        @domain = config['domain']
        @source = config['source']
    end

    def render()
        return "<script async defer data-domain=\"#{@domain}\" src=\"#{@source}\"></script>"
    end
end