Update Analytics
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
// @ts-nocheck
|
||||
import { page } from '$app/stores'
|
||||
import { sendPage } from '../utils/analytics'
|
||||
import { sendPage } from '$utils/analytics'
|
||||
|
||||
export let appKey: any
|
||||
export let url: any
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// @ts-nocheck
|
||||
|
||||
// Send page
|
||||
export const sendPage = (path: string) => {
|
||||
export const sendPage = (path: string = '') => {
|
||||
if (typeof Countly !== 'undefined') {
|
||||
Countly.track_pageview()
|
||||
Countly.track_pageview(path)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user