Update Analytics

This commit is contained in:
2022-07-31 19:45:33 +02:00
parent 4880483933
commit 5975c8e51a
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
// @ts-nocheck // @ts-nocheck
import { page } from '$app/stores' import { page } from '$app/stores'
import { sendPage } from '../utils/analytics' import { sendPage } from '$utils/analytics'
export let appKey: any export let appKey: any
export let url: any export let url: any

View File

@@ -1,9 +1,9 @@
// @ts-nocheck // @ts-nocheck
// Send page // Send page
export const sendPage = (path: string) => { export const sendPage = (path: string = '') => {
if (typeof Countly !== 'undefined') { if (typeof Countly !== 'undefined') {
Countly.track_pageview() Countly.track_pageview(path)
} }
} }