RobBrazier/Laravel_Piwik

View on GitHub
docs/theme/overrides/partials/integrations/analytics/plausible.html

Summary

Maintainability
Test Coverage
<!-- Determine analytics property -->
{% if config.extra.analytics %}
  {% set key = config.extra.analytics.site | d("", true) %}
  {% set domain = config.extra.analytics.domain | d("plausible.io", true) %}
{% endif %}
 
<script async data-domain="{{ key }}" src="https://{{ domain }}/js/script.js"></script>