package: consentfriend
services:
  - name: matomo
    title: ''
    description: ''
    code: |
      <script type="text/javascript">
        var _paq = window._paq = window._paq || [];
        _paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);
        (function() {
          var u="[[++matomo_url]]";
          _paq.push(['setTrackerUrl', u+'matomo.php']);
          _paq.push(['setSiteId', [[++matomo_site_id]] ]);
          var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
          g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
        })();
      </script>
      <noscript><p><img src="[[++matomo_url]]matomo.php?idsite=[[++matomo_site_id]]&rec=1" style="border:0" alt="" /></p></noscript>
    code_section: 1
    callback: ''
    active: false
    default: false
    required: false
    opt_out: false
    only_once: true
    contextual_consent_only: false
    cookies:
      - cookie: '/^matomo_.*$/i'
        path: ''
        domain: ''
      - cookie: '/^_pk_.*$/'
        path: ''
        domain: ''
    purposes: performance
