mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 23:16:49 +00:00
Ackee
This commit is contained in:
@@ -1,19 +1,28 @@
|
||||
// import { useRouter } from 'next/router'
|
||||
// import BLOG from '@/blog.config'
|
||||
import BLOG from '@/blog.config'
|
||||
import { loadExternalResource } from '@/lib/utils'
|
||||
import { useEffect } from 'react'
|
||||
|
||||
const Ackee = () => {
|
||||
// const router = useRouter()
|
||||
// useAckee(
|
||||
// router.asPath,
|
||||
// {
|
||||
// server: BLOG.ANALYTICS_ACKEE_DATA_SERVER,
|
||||
// domainId: BLOG.ANALYTICS_ACKEE_DOMAIN_ID
|
||||
// },
|
||||
// {
|
||||
// detailed: false,
|
||||
// ignoreLocalhost: true
|
||||
// }
|
||||
// )
|
||||
useEffect(() => {
|
||||
loadExternalResource(BLOG.ANALYTICS_ACKEE_TRACKER, 'js').then(url => {
|
||||
const ackeeTracker = window.ackeeTracker
|
||||
console.log('ackeeTracker', ackeeTracker)
|
||||
})
|
||||
})
|
||||
|
||||
// const router = useRouter()
|
||||
// useAckee(
|
||||
// router.asPath,
|
||||
// {
|
||||
// server: BLOG.ANALYTICS_ACKEE_DATA_SERVER,
|
||||
// domainId: BLOG.ANALYTICS_ACKEE_DOMAIN_ID
|
||||
// },
|
||||
// {
|
||||
// detailed: false,
|
||||
// ignoreLocalhost: true
|
||||
// }
|
||||
// )
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user