https://github.com/timoanttila/svelte-tracking
In marketing, it is very important that the site is able to track visitor movements. Component for Google Analytics for tracking your Svelte (Routify / Sapper) project.
https://github.com/timoanttila/svelte-tracking
component component-library googleanalytics pageview pageview-tracking pageviews reactive routify sapper svelte svelte-components svelte-v3 svelte3 sveltejs tracking
Last synced: 4 months ago
JSON representation
In marketing, it is very important that the site is able to track visitor movements. Component for Google Analytics for tracking your Svelte (Routify / Sapper) project.
- Host: GitHub
- URL: https://github.com/timoanttila/svelte-tracking
- Owner: timoanttila
- License: gpl-3.0
- Created: 2021-06-30T17:49:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-30T19:38:51.000Z (about 4 years ago)
- Last Synced: 2025-01-20T09:47:05.977Z (5 months ago)
- Topics: component, component-library, googleanalytics, pageview, pageview-tracking, pageviews, reactive, routify, sapper, svelte, svelte-components, svelte-v3, svelte3, sveltejs, tracking
- Language: Svelte
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Svelte Reactive Google Analytics
In marketing, it is very important that the website owner is able to track visitor's movements.
Normally, one can just add Google or Facebook script to the main html or php page, but Sapper's and Routify's navigation by a viewer happens in the frontend, besides the initial load and page refreshes. Page views are not registered and paths are not updated to those tracking scripts.
But there's no reason to worry, because we can easily fix that problem by making a component or two which updates the tracking scripts.
- [Routify](https://github.com/timoanttila/Svelte-Tracking/tree/main/routify)
- [Sapper](https://github.com/timoanttila/Svelte-Tracking/tree/main/sapper)