# Google Search Console & Analytics Setup

After completing a website migration or redesign, it's critical to ensure that your site is properly configured for performance monitoring and troubleshooting. Google Search Console and Google Analytics are two of the most important tools for tracking your website’s performance, identifying issues, and making data-driven improvements. Setting up both tools properly is essential to monitor how your site is being indexed by search engines and how users are interacting with it.

***

#### Why Google Search Console & Google Analytics Matter

Both Google Search Console and Google Analytics provide essential insights into how your website is performing post-migration. By setting up and integrating both tools, you’ll be able to:

* **Monitor Website Health**: Google Search Console will help you track crawl errors, broken links, and indexing issues, while Google Analytics provides user behavior data, helping you understand how visitors are interacting with your site.
* **Track SEO Performance**: Google Search Console offers information on keyword rankings, impressions, and click-through rates, while Google Analytics helps you track organic traffic and conversions.
* **Troubleshoot Issues**: Both tools provide alerts and reports that can help you identify potential problems (e.g., drops in traffic, crawl issues, slow pages) and take corrective actions quickly.
* **Make Data-Driven Decisions**: Both tools give you the data you need to optimize your site for better performance, whether it's increasing traffic, improving user experience, or boosting conversions.

***

#### Google Search Console Setup

Google Search Console (GSC) is a free tool that helps you monitor and maintain your site’s presence in Google Search. It provides insights into your site’s visibility, alerts you to any issues affecting your search rankings, and helps you understand how Google crawls and indexes your website.

**Steps to Set Up Google Search Console**

1. **Verify Ownership**:
   * Sign in to **Google Search Console** with your Google account.
   * Add your website property by entering your domain name or URL.
   * Verify your website ownership using one of the following methods:
     * **HTML file upload**: Download a verification file and upload it to your site’s root directory.
     * **HTML tag**: Add a meta tag to your website’s homepage HTML.
     * **Google Analytics**: If you already use Google Analytics, verify your site via this integration.
     * **DNS record**: Add a TXT record to your domain’s DNS settings.
2. **Submit Your Sitemap**:
   * In Google Search Console, navigate to the **Sitemaps** section and submit your website’s XML sitemap.
   * This helps Google quickly crawl and index your site after migration, ensuring that all your pages are discovered.
3. **Check Crawl Errors**:
   * After your site has been verified, Google Search Console will provide you with data on any crawl errors. These could include issues like 404 errors, redirects, or pages that Google is unable to crawl.
   * Fix these errors as soon as possible to ensure that all your important pages are indexed and accessible.
4. **Monitor Mobile Usability**:
   * GSC provides a **Mobile Usability** report, which shows whether your site is mobile-friendly. After a migration or redesign, it’s essential to make sure that your site is responsive and performs well on mobile devices.
5. **Check Coverage & Indexing**:
   * The **Coverage** report in Search Console provides an overview of which pages are indexed, as well as any pages that have been excluded due to issues like redirects, noindex tags, or errors.
   * Regularly review this report to ensure that all important pages are indexed and accessible.

**Post-Migration Google Search Console Checklist:**

* **Check for crawl errors**: Ensure that no important pages are being blocked or returning errors (404s, 500s, etc.).
* **Monitor for indexation issues**: Review the **Coverage** report for any issues with indexing important pages.
* **Submit an updated sitemap**: Ensure that your new site structure is reflected in the submitted sitemap.
* **Check for broken links**: Make sure there are no broken internal or external links that could hinder your site’s performance.

***

#### Google Analytics Setup

Google Analytics is a robust platform for tracking and analyzing website traffic. It helps you understand user behavior, track conversions, and identify potential issues that may arise after a website migration. Properly configuring Google Analytics after a migration or redesign ensures that you can accurately monitor traffic patterns, goals, and site performance.

**Steps to Set Up Google Analytics**

1. **Create a Google Analytics Account**:
   * If you haven’t already, create a **Google Analytics** account by signing in with your Google account and setting up a new property for your website.
   * Follow the steps to create a property and get your **tracking ID**.
2. **Install the Tracking Code**:
   * To start tracking data, you need to add the **Google Analytics tracking code** to your website.
   * If you’re using a CMS like WordPress, there are plugins (e.g., **MonsterInsights** or **GA Google Analytics**) that make it easy to install the tracking code.
   * For custom-built websites, you’ll need to insert the provided tracking code into the header or footer of every page you want to track.
3. **Set Up Goals and Conversions**:
   * After installation, configure **Goals** to track specific actions on your site, such as form submissions, purchases, or newsletter sign-ups.
   * This will allow you to measure the effectiveness of your website in achieving your business objectives.
4. **Set Up Filters**:
   * Set up **filters** to exclude internal traffic (from your team) and prevent data distortion.
   * You may also set up filters to track subdomains or specific segments of your website for more granular insights.
5. **Set Up E-commerce Tracking (if applicable)**:
   * If your website includes an e-commerce store, enable **E-commerce tracking** in Google Analytics to monitor transactions, revenue, and product performance.
6. **Link Google Search Console to Google Analytics**:
   * To get a comprehensive view of your site’s performance, link your Google Search Console and Google Analytics accounts.
   * This integration allows you to view Search Console data (like impressions, clicks, and CTR) directly within Google Analytics, providing a more complete picture of your site’s performance.

**Post-Migration Google Analytics Checklist:**

* **Check real-time traffic**: Ensure that data is being collected correctly in Google Analytics by checking the real-time traffic.
* **Monitor traffic sources**: After migration, keep an eye on traffic sources to see if organic search traffic is being correctly tracked.
* **Review goal completions**: Ensure that goal tracking is working correctly and that conversions are being accurately measured.
* **Evaluate bounce rates**: A high bounce rate after migration could indicate that users are not finding what they expect on your site. Investigate and address any potential issues.

***

#### Ongoing Monitoring and Troubleshooting

After you’ve set up Google Search Console and Google Analytics, continuous monitoring is key to ensuring that your site is performing optimally. Here’s a quick overview of what to monitor:

* **Google Search Console**: Regularly check for crawl errors, mobile usability issues, and indexation problems. Review the **Performance** report to monitor keyword rankings, click-through rates, and impressions.
* **Google Analytics**: Continuously track user behavior and interactions on your site, monitor traffic sources, and assess conversions. Pay attention to key metrics like average session duration, bounce rate, and pages per session.

If you encounter any issues, both tools offer valuable insights into potential problems. For example, if you notice a drop in traffic or conversions, Google Analytics will show you which pages are underperforming, while Google Search Console can point to indexing issues or crawl errors.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.sitecove.com/how-to-guides/website-migration-and-redesign/post-migration-monitoring-and-troubleshooting/google-search-console-and-analytics-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
