ウェブ分析の有効化
Cloudflare Web Analytics provides free, privacy-first analytics for your website without changing your DNS or using Cloudflare’s proxy. Cloudflare Web Analytics helps you understand the performance of your web pages as experienced by your site visitors.
All you need to enable Cloudflare Web Analytics is a Cloudflare account and a JavaScript snippet on your page to start getting information on page views and visitors. The JavaScript snippet (also known as a beacon) collects metrics using the Performance API, which is available in all major web browsers.
Cloudflare Pagesは、ウェブ分析のワンクリックセットアップを提供します:
- Log in to Cloudflare dashboard ↗.
- From Account Home, select Workers & Pages.
- In Overview, select your Pages project.
- Go to Manage > Web Analytics > and select Enable Web Analytics.
Cloudflare will automatically add the JavaScript snippet to your Pages site on the next deployment.
ページプロジェクトに関連するメトリクスを表示するには:
- Cloudflareダッシュボード ↗にログインします。
- アカウントホームから、分析とログ > ウェブ分析を選択します。
- ページプロジェクトに関連する分析を選択します。
ウェブ分析の使用方法の詳細については、ウェブ分析のドキュメントを参照してください。
For Cloudflare to automatically add the JavaScript snippet, your pages need to have valid HTML.
For example, Cloudflare would not be able to enable Web Analytics on a page like this:
Hello world.For Web Analytics to correctly insert the JavaScript snippet, you would need valid HTML output, such as:
<!DOCTYPE html><html> <head> <title>Title</title> </head> <body>
<p>Hello world.</p>
</body></html>