{"id":374,"date":"2026-07-17T19:59:15","date_gmt":"2026-07-17T11:59:15","guid":{"rendered":"http:\/\/www.tantan.ink\/index.php\/2026\/07\/17\/insight-cookieless-self-hosted-analytics-ai-crawler\/"},"modified":"2026-07-17T19:59:15","modified_gmt":"2026-07-17T11:59:15","slug":"insight-cookieless-self-hosted-analytics-ai-crawler","status":"publish","type":"post","link":"https:\/\/www.tantan.ink\/index.php\/2026\/07\/17\/insight-cookieless-self-hosted-analytics-ai-crawler\/","title":{"rendered":"\u4e0d\u6302 Cookie \u6a2a\u5e45\u8fd8\u80fd\u770b AI \u6293\u4e86\u54ea\u4e9b\u9875"},"content":{"rendered":"<p>Google Analytics \u90a3\u4e2a Cookie \u6a2a\u5e45\u6211\u70e6\u4e86\u4e24\u5e74\u4e86\u3002\u6bcf\u6539\u4e00\u6b21\u4e3b\u9898\uff0c\u90a3\u6761&#8221;\u6211\u4eec\u4f7f\u7528 Cookie&#8221;\u7684\u63d0\u793a\u5c31\u50cf\u8d34\u76ae\u72d7\u76ae\u818f\u836f\u4e00\u6837\u7529\u4e0d\u6389\u3002GA4 \u53c8\u91cd\u53c8\u6162\uff0c\u7edf\u8ba1\u8fd8\u52a8\u4e0d\u52a8\u88ab\u5e7f\u544a\u62e6\u622a\u5668\u541e\u6389\u4e00\u534a\u6570\u636e\u3002\u524d\u9635\u5b50\u770b\u5230 Insight \u8fd9\u4e2a\u65b0\u9879\u76ee\u521a\u53d1\u4e86 1.0\uff0cMIT \u534f\u8bae\uff0c\u53d1\u5e03\u624d\u4e24\u5468\uff0c\u88c5\u5728\u6211\u5bb6 NAS \u4e0a\u8bd5\u4e86\u4e00\u5468\u2014\u2014\u6700\u8ba9\u6211\u610f\u5916\u7684\u4e0d\u662f&#8221;\u514d Cookie&#8221;\u90a3\u90e8\u5206\uff0c\u662f\u5b83\u80fd\u544a\u8bc9\u4f60 ChatGPT\u3001Claude\u3001Perplexity \u8fd9\u4e9b AI \u722c\u866b\u5230\u5e95\u6293\u4e86\u4f60\u54ea\u4e9b\u9875\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/insight-dashboard-overview.png\" alt=\"Insight \u4eea\u8868\u76d8\u6982\u89c8\" \/><\/p>\n<p>\u8fd9\u4e0d\u662f\u4ec0\u4e48\u5b8f\u5927\u529f\u80fd\u3002\u4e00\u4e2a Docker compose \u6587\u4ef6\u52a0\u4e00\u884c <code>&lt;script&gt;<\/code> \u6807\u7b7e\u5c31\u80fd\u8dd1\u8d77\u6765\u3002\u4f46\u4f5c\u4e3a\u5185\u5bb9\u7ad9\u70b9\u7684\u7ad9\u957f\uff0c\u6211\u66f4\u60f3\u77e5\u9053&#8221;AI \u7b54\u6848\u5f15\u7528\u7684\u5185\u5bb9\u5230\u5e95\u4ece\u54ea\u6765&#8221;\u2014\u2014Insight \u628a\u8fd9\u4ef6\u4e8b\u76f4\u63a5\u505a\u8fdb\u4e86\u540e\u53f0\uff1a<strong>Bots \u6a21\u5757\u6309\u9875\u9762\u5217\u51fa\u6bcf\u4e2a AI \u722c\u866b\u7684\u6293\u53d6\u8bb0\u5f55<\/strong>\uff0c\u8c01\u6765\u8fc7\u3001\u8bfb\u4e86\u4ec0\u4e48\u3001\u65f6\u95f4\u6233\u90fd\u6709\u3002\u8fd9\u4e2a\u4fe1\u606f\u5bf9\u505a\u5185\u5bb9\u7684\u4eba\u6765\u8bf4\uff0c\u6bd4&#8221;\u4eca\u5929\u591a\u5c11 UV&#8221;\u503c\u94b1\u5f97\u591a\u3002<\/p>\n<h2>\u5b83\u8ddf Plausible \/ Umami \u4e0d\u4e00\u6837\u5728\u54ea<\/h2>\n<p>\u514d Cookie\u3001\u81ea\u6258\u7ba1\u7684\u7edf\u8ba1\u5de5\u5177\u8fc7\u53bb\u51e0\u5e74\u51fa\u4e86\u4e0d\u5c11\uff0cPlausible\u3001Umami \u90fd\u662f\u8001\u719f\u4eba\u3002Insight \u8ddf\u5b83\u4eec\u7684\u5dee\u5f02\u4e0d\u662f\u6280\u672f\u8def\u7ebf\uff0c\u800c\u662f\u89c6\u89d2\uff1a<\/p>\n<ul>\n<li><strong>\u9ed8\u8ba4\u5f7b\u5e95\u4e0d\u5199 Cookie\uff0c\u4e5f\u4e0d\u5199 localStorage<\/strong>\u3002\u8bbf\u5ba2\u7528\u6bcf\u65e5\u8f6e\u6362\u7684\u52a0\u76d0 SHA-256 \u54c8\u5e0c\u8ba1\u6570\uff0c\u539f\u59cb IP \u4e00\u6b21\u90fd\u4e0d\u5165\u5e93\u2014\u2014\u6240\u4ee5\u8fde\u90a3\u6761\u6b27\u76df\u5408\u89c4\u63d0\u793a\u6a2a\u5e45\u90fd\u53ef\u4ee5\u4e0d\u6302\u3002<\/li>\n<li><strong>AI \u722c\u866b\u8ffd\u8e2a\u662f\u5185\u7f6e\u7684<\/strong>\u3002ChatGPT\u3001Claude\u3001Perplexity\u3001Googlebot \u8fd9\u4e9b\u90fd\u8bc6\u522b\u5f97\u51fa\u6765\uff0c\u6309\u9875\u9762\u5206\u7c7b\uff0cAI \u6293\u53d6 \/ \u666e\u901a\u7d22\u5f15 \/ \u8bad\u7ec3\u6293\u53d6\u8fd8\u5206\u5f00\u7edf\u8ba1\u3002<\/li>\n<li><strong>\u6536\u5165\u5f52\u56e0\u63a5 Stripe<\/strong>\uff08\u53ea\u8bfb key\uff09\uff0c\u80fd\u76f4\u63a5\u770b\u5230\u54ea\u4e2a\u6e20\u9053\u5e26\u6765\u7684\u4ed8\u8d39\u7528\u6237\uff0c\u6263\u6389\u9000\u6b3e\u3002<\/li>\n<li><strong>\u9644\u9001\u4e00\u4e2a\u53ea\u8bfb CLI<\/strong>\uff0c\u53ef\u4ee5\u63a5 Claude \u8fd9\u79cd AI \u52a9\u624b\u76f4\u63a5\u95ee&#8221;\u4e0a\u4e2a\u6708\u8bbf\u5ba2\u591a\u5c11\u3001Top \u9875\u9762\u662f\u4ec0\u4e48&#8221;\u2014\u2014token \u53ea\u6709\u8bfb\u6743\u9650\uff0c\u6c38\u8fdc\u89e3\u9501\u4e0d\u4e86\u9762\u677f\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/insight-cli-output.png\" alt=\"Insight CLI \u8f93\u51fa\" \/><\/p>\n<h2>\u90e8\u7f72\uff0c\u6bd4\u60f3\u8c61\u4e2d\u7701\u4e8b<\/h2>\n<p><code>docker compose up -d<\/code> \u4e4b\u5916\uff0c\u5b98\u65b9\u7ed9\u4e86\u4e00\u4e2a <code>scripts\/provision.sh<\/code>\uff0c\u81ea\u52a8\u88c5 Docker\u3001\u914d ufw\u3001\u505a\u81ea\u52a8\u5b89\u5168\u66f4\u65b0\u3002\u6211\u5728 NAS \u4e0a\u4e00\u4e2a\u5e72\u51c0 Ubuntu \u5bb9\u5668\u91cc\u8dd1\u5b8c\uff0c1 vCPU \/ 2GB RAM \u8db3\u77e3\uff0c\u5bf9\u8d44\u6e90\u654f\u611f\u7684\u73af\u5883\u5f88\u53cb\u597d\u3002<\/p>\n<p>\u552f\u4e00\u7a0d\u5fae\u6298\u817e\u7684\u662f HTTPS\u3002\u8981\u7ed9 <code>insight.\u4f60\u7684\u57df\u540d.com<\/code> \u914d\u8bc1\u4e66\uff08certbot \u4e00\u628a\u68ad\uff09\uff0c\u7136\u540e\u628a\u811a\u672c\u91cc\u7ed9\u7684\u90a3\u884c\uff1a<\/p>\n<pre><code>&lt;script defer data-site=\"YOUR_SITE_ID\" src=\"https:\/\/insight.your\u57df\u540d.com\/t.js?s=YOUR_SITE_ID\"&gt;&lt;\/script&gt;<\/code><\/pre>\n<p>\u8d34\u5230\u4f60\u7f51\u7ad9 <code>&lt;head&gt;<\/code> \u5c31\u884c\u3002\u8bbf\u5ba2\u8bbf\u95ee\u9875\u9762\u540e\u5927\u7ea6 5 \u79d2\u5185\u5c31\u5728\u4eea\u8868\u76d8\u4e0a\u770b\u5230\u3002<\/p>\n<p>\u6570\u636e\u5e93\u662f ClickHouse \u5b58\u4e8b\u4ef6\uff0cSQLite \u5b58\u914d\u7f6e\u2014\u2014\u6bd4\u7eaf PostgreSQL \u7684\u65b9\u6848\u8f7b\u91cf\u4e0d\u5c11\uff0c\u5bf9\u5c0f\u6d41\u91cf\u4e2a\u4eba\u7ad9\u5b8c\u5168\u591f\u7528\u3002\u6574\u5957\u6280\u672f\u6808\u662f Next.js 16 + React 19 + TypeScript\uff0c\u5916\u52a0 Mapbox GL \u753b 3D \u5730\u7403\u3001Recharts \u753b\u56fe\u8868\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/insight-3d-globe.png\" alt=\"Insight 3D \u5b9e\u65f6\u5730\u56fe\" \/><\/p>\n<h2>\u4eea\u8868\u76d8\u91cc\u90a3\u4e9b\u6709\u610f\u601d\u7684\u7ec6\u8282<\/h2>\n<p>3D \u5b9e\u65f6\u5730\u56fe\uff08\u57fa\u4e8e Mapbox\uff09\u662f\u5438\u5f15\u773c\u7403\u7684\u2014\u2014\u4f46\u5b9e\u9645\u6211\u7528\u5f97\u6700\u591a\u7684\u662f\u8fd9\u51e0\u4e2a\uff1a<\/p>\n<p>&#8220;Bots&#8221; \u6a21\u5757\u7684 <strong>AI Crawlers \u89c6\u56fe<\/strong>\uff1a\u53ef\u4ee5\u770b\u5230 ChatGPT \u4e0a\u5468\u6293\u4e86\u6211 12 \u6b21&#8221;\u6298\u817e\u65e5\u5fd7&#8221;\u5206\u7c7b\uff0c\u4f46\u6ca1\u600e\u4e48\u6293&#8221;\u8f6f\u4ef6\u5de5\u5177&#8221;\u5206\u7c7b\u3002\u8fd9\u76f4\u63a5\u544a\u8bc9\u6211 AI \u7b54\u6848\u91cc\u5927\u6982\u4e0d\u4f1a\u5f15\u7528\u6211\u5199\u8f6f\u4ef6\u5de5\u5177\u7684\u5185\u5bb9\u2014\u2014SEO \u601d\u8def\u8981\u8c03\uff0c\u8981\u7ed9&#8221;\u8f6f\u4ef6\u5de5\u5177&#8221;\u5206\u7c7b\u52a0\u66f4\u591a\u7ed3\u6784\u5316\u63cf\u8ff0\uff0c\u8ba9 AI \u66f4\u5bb9\u6613\u6293\u53d6\u3002<\/p>\n<p>\u6f0f\u6597\u548c\u7559\u5b58\u662f\u9ed8\u8ba4\u5e26\u7684\uff0c\u4e0d\u9700\u8981\u989d\u5916\u914d\u4e8b\u4ef6\u4ee3\u7801\uff0c\u7f16\u8f91\u5668\u91cc\u62d6\u4e00\u62d6\u5c31\u884c\u3002\u4eae\/\u6697\u4e3b\u9898\u968f\u7cfb\u7edf\u5207\u6362\uff0cURL \u5e72\u51c0\uff0c\u80fd\u76f4\u63a5\u53d1\u7ed9\u522b\u4eba\u770b\u7279\u5b9a\u65f6\u95f4\u7a97\u53e3\u7684\u6570\u636e\u3002<\/p>\n<p>\u9700\u8981\u5410\u69fd\u7684\u662f\uff0c3D \u5730\u56fe\u7684 Mapbox token \u7b2c\u4e00\u6b21\u8981\u81ea\u5df1\u7533\u8bf7\u514d\u8d39\u5c42\uff08\u6bcf\u6708 5 \u4e07\u6b21\u5730\u56fe\u52a0\u8f7d\uff09\uff0c\u4e0d\u662f\u9ed8\u8ba4\u5c31\u80fd\u770b\u3002CLI \u90e8\u5206\u6211\u63a5\u5230\u4e86\u672c\u5730\u7684 AI \u52a9\u624b\uff0c\u73b0\u5728\u95ee&#8221;\u6628\u5929\u7684\u8bbf\u5ba2&#8221;\u4e0d\u7528\u6253\u5f00\u7f51\u9875\uff0c\u76f4\u63a5\u8ba9 AI \u52a9\u624b\u7ed9\u6211\u67e5\u3002<\/p>\n<h2>\u4e00\u70b9\u5c0f\u611f\u53d7<\/h2>\n<p>\u6211\u5bf9&#8221;\u514d Cookie&#8221;\u8fd9\u4e2a\u5356\u70b9\u4e00\u5f00\u59cb\u662f\u65e0\u611f\u7684\u2014\u2014\u76f4\u5230\u6211\u610f\u8bc6\u5230\uff0c\u5b83\u53ef\u4ee5\u8ba9\u6211\u5c11\u7ba1\u4e00\u6761\u5408\u89c4\u95ee\u9898\uff0c\u4e0d\u7528\u6bcf\u6b21\u7f51\u7ad9\u6539\u7248\u90fd\u7ea0\u7ed3\u4e00\u4e0b\u6a2a\u5e45\u3002AI \u722c\u866b\u8ffd\u8e2a\u53cd\u800c\u662f\u66f4\u5927\u7684\u60ca\u559c\uff0c\u6bd5\u7adf\u73b0\u5728\u8c01\u5199\u535a\u5ba2\u4e0d\u5173\u5fc3 AI \u7b54\u6848\u600e\u4e48\u5f15\u7528\u4f60\u5462\uff1f<\/p>\n<p>\u4f5c\u8005\u8fd8\u5728\u6301\u7eed\u66f4\u65b0\uff087\/3 \u624d\u53d1 1.0\uff0c\u73b0\u5728 80+ \u4e2a commit\uff09\uff0c\u63d0\u4ea4\u9891\u7387\u770b\u7740\u633a\u5065\u5eb7\u3002MIT \u534f\u8bae\u3001\u81ea\u6258\u7ba1 1 vCPU \u8d77\u6b65\u3001\u4e0d\u4f9d\u8d56\u4efb\u4f55\u5916\u90e8 SaaS\u2014\u2014\u8fd9\u4e09\u4ef6\u4e8b\u51d1\u9f50\u7684\u5de5\u5177\uff0c\u8fc7\u53bb\u51e0\u5e74\u771f\u6ca1\u600e\u4e48\u89c1\u5230\u8fc7\u3002<\/p>\n<p>\u5982\u679c\u4f60\u5728\u627e\u4e00\u4e2a\u8f7b\u91cf\u3001\u672c\u5730\u3001\u4e0d\u7528\u770b Cookie \u6a2a\u5e45\u7684\u7edf\u8ba1\u9762\u677f\uff0c\u53ef\u4ee5\u8bd5\u8bd5 Insight\u3002\u6211\u5bb6 NAS \u4e0a\u8dd1\u4e86\u5feb\u4e00\u5468\uff0c\u76ee\u524d\u6ca1\u51fa\u8fc7\u5c94\u5b50\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Insight \u662f\u4e2a\u53d1\u5e03\u624d\u4e24\u5468\u7684 MIT \u81ea\u6258\u7ba1\u5206\u6790\u9762\u677f\uff0c\u514d Cookie \u8fd8\u80fd\u544a\u8bc9\u4f60 ChatGPT\u3001Claude \u8fd9\u4e9b AI \u722c\u866b\u6293\u4e86\u4f60\u54ea\u4e9b\u9875\u3002\u88c5\u5728\u6211\u5bb6 NAS \u4e0a\u5b9e\u6d4b\u4e00\u5468\u3002<\/p>\n","protected":false},"author":2,"featured_media":375,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[164,10],"tags":[229,226,228,227,16],"class_list":["post-374","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-selfhost","category-software","tag-ai-","tag-insight","tag--cookie","tag-227","tag-16"],"_links":{"self":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":0,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media\/375"}],"wp:attachment":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}