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 />
- Type: String
- Default:
"YOUR_TRACKING_ID_HERE"
- Description: Google Analytics tracking ID. Replace 'YOUR_TRACKING_ID_HERE' with your own tracking ID.
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.