Update Analytics
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user