Description: A Svelte component to easily integrate Google Analytics tracking into your Svelte applications.
You can install this package via npm:
npm install svelte-google-analytics
To use the GoogleAnalytics
component, import it into your Svelte file:
<script lang="ts">
import { GoogleAnalytics } from "svelte-google-analytics";
</script>
<GoogleAnalytics trackingId='YOUR_TRACKING_ID_HERE' />
<slot />
trackingId
"YOUR_TRACKING_ID_HERE"
Contributions are welcome! Please follow the guidelines in CONTRIBUTING.md before submitting pull requests.
This package is licensed under the MIT License. See LICENSE for more details.
If you encounter any issues with this package, please report them here.