# एनालिटिक्स और सर्च कंसोल सेटअप — डेवलपर्स के लिए SEO

Source: https://www.geekswithgeeks.com/hi/seo-developers/seo-analytics-setup

> SEO प्रदर्शन ट्रैक करने और उपयोगकर्ता व्यवहार को समझने के लिए टूल सेट अप करें।

## एनालिटिक्स क्यों महत्वपूर्ण हैं

**Google Analytics** tracks user behavior: traffic sources, pages visited, bounce rate, conversions. **Google Search Console** shows search queries, impressions, clicks, and ranking positions. Together, they tell you what's working and what needs fixing.

## Google Analytics 4 सेटअप

Add the Google Analytics tag to every page. This tracks all user interactions.

```html
<!-- Google Analytics 4 (GA4) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
  
  // Track custom events
  gtag('event', 'page_view');
  gtag('event', 'login', {method: 'google'});
</script>

<!-- Verify with Google Search Console -->
<meta name="google-site-verification" content="xxxxxxxxxxxxx">
```
