This commit is contained in:
tangly1024
2023-07-31 22:17:10 +08:00
parent c7f700e2d4
commit 0ae88e975a
2 changed files with 26 additions and 19 deletions

View File

@@ -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
}