mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Re-add custom page_view event
This commit is contained in:
@@ -4,6 +4,13 @@ import type { VersionId } from './services/index.js'
|
||||
export type Method = 'menu' | 'hotkey'
|
||||
|
||||
export namespace Analytics {
|
||||
export function pageview(url: string) {
|
||||
gtag('event', 'page_view', {
|
||||
page_location: url,
|
||||
page_title: document.title,
|
||||
})
|
||||
}
|
||||
|
||||
export function setLocale(locale: string) {
|
||||
gtag('set', {
|
||||
locale,
|
||||
|
||||
Reference in New Issue
Block a user