2.0.3 • Published 4 months ago

svelte-google-analytics v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

svelte-google-analytics

Description: A Svelte component to easily integrate Google Analytics tracking into your Svelte applications.

Installation

You can install this package via npm:

npm install svelte-google-analytics

Usage

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 />

Attributes

trackingId

  • Type: String
  • Default: "YOUR_TRACKING_ID_HERE"
  • Description: Google Analytics tracking ID. Replace 'YOUR_TRACKING_ID_HERE' with your own tracking ID.

Contributing

Contributions are welcome! Please follow the guidelines in CONTRIBUTING.md before submitting pull requests.

License

This package is licensed under the MIT License. See LICENSE for more details.

Issues

If you encounter any issues with this package, please report them here.

2.0.3

4 months ago

2.0.2

4 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

4 years ago