Merge branch 'main' into feat/localization-404

This commit is contained in:
Kenneth
2025-02-18 17:10:44 +08:00
committed by GitHub
2 changed files with 11 additions and 8 deletions

View File

@@ -1,8 +1,6 @@
import BLOG from '@/blog.config'
// https://developers.google.com/analytics/devguides/collection/gtagjs/pages
export const pageview = url => {
window.gtag('config', BLOG.ANALYTICS_GOOGLE_ID, {
export const pageview = (url, ANALYTICS_GOOGLE_ID) => {
window.gtag('config', ANALYTICS_GOOGLE_ID, {
page_path: url
})
}