vercel-analytics

This commit is contained in:
tangly1024.com
2023-04-21 12:20:56 +08:00
parent 1ec7e035e1
commit eaa2997028
3 changed files with 5 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
import BLOG from '@/blog.config'
import { Analytics } from '@vercel/analytics/react'
/**
* 第三方代码 统计脚本
@@ -7,6 +8,8 @@ import BLOG from '@/blog.config'
*/
const CommonScript = () => {
return (<>
{BLOG.ANALYTICS_VERCEL && <div id='vercel-analytics'><Analytics /></div>}
{BLOG.COMMENT_DAO_VOICE_ID && (<>
{/* DaoVoice 反馈 */}
<script async dangerouslySetInnerHTML={{