diff --git a/components/ExternalPlugins.js b/components/ExternalPlugins.js
index ddf1a0db..29b31934 100644
--- a/components/ExternalPlugins.js
+++ b/components/ExternalPlugins.js
@@ -1,5 +1,6 @@
import { siteConfig } from '@/lib/config'
import dynamic from 'next/dynamic'
+import LA51 from './LA51'
import WebWhiz from './Webwhiz'
const TwikooCommentCounter = dynamic(() => import('@/components/TwikooCommentCounter'), { ssr: false })
@@ -97,14 +98,15 @@ const ExternalPlugin = (props) => {
+ {ANALYTICS_51LA_ID && ANALYTICS_51LA_CK && }
{ANALYTICS_51LA_ID && ANALYTICS_51LA_CK && (<>
-
+ }} /> */}
>)}
{CHATBASE_ID && (<>
diff --git a/components/LA51.js b/components/LA51.js
new file mode 100644
index 00000000..df506666
--- /dev/null
+++ b/components/LA51.js
@@ -0,0 +1,18 @@
+import { siteConfig } from '@/lib/config'
+import { useEffect } from 'react'
+
+/**
+ * 51LA统计
+ */
+export default function LA51() {
+ const ANALYTICS_51LA_ID = siteConfig('ANALYTICS_51LA_ID')
+ const ANALYTICS_51LA_CK = siteConfig('ANALYTICS_51LA_CK')
+ useEffect(() => {
+ const LA = window.LA
+ if (LA) {
+ LA.init({ id: `${ANALYTICS_51LA_ID}`, ck: `${ANALYTICS_51LA_CK}`, hashMode: true, autoTrack: true })
+ }
+ }, [])
+
+ return <>>
+}