0.0.8 • Published 2 months ago

@sinnwerkstatt/sveltekit-matomo v0.0.8

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
-
Last release
2 months ago

how to use

  1. include <Matomo /> in your +layout.svelte.
  2. configure it like so:
    <Matomo url="https://matomo.mysite.com" siteId={13} />
    or by defining environment variables:
    PUBLIC_MATOMO_URL="https://matomo.mysite.com"
    PUBLIC_MATOMO_SITE_ID=13
    see https://kit.svelte.dev/docs/modules#$env-dynamic-public for more information.
  3. optional: track custom events like so:
    <script lang="ts">
     import { tracker } from "@sinnwerkstatt/sveltekit-matomo"
     function onSomeEvent() {
       if ($tracker) $tracker.trackEvent("my-cateogry", "my-action", "my-name")
     }
    </script>
0.0.8

2 months ago

0.0.7

2 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.6

3 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago