mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-18 07:26:48 +00:00
G-Tag fix
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user