Set Up Google Analytics and Search Console
These two free Google tools let you track your website visitors and monitor how your site appears in Google search results.
Traffic & Visitors
GA4 tracks how many people visit your site, which pages they view, how long they stay, and where they come from (Google, social media, direct).
Search Rankings
Search Console shows which Google searches bring people to your site, your average ranking position, and how many clicks you get per keyword.
Page Indexing
Search Console alerts you if any pages have errors or are not being indexed by Google, so you can fix issues quickly.
Core Web Vitals
Google measures your page speed and user experience. Search Console shows your scores and flags any pages that need improvement.
Track visitors, page views, and conversions
- 1
Create a Google Analytics 4 account
Go to analytics.google.com and sign in with your Google account. Click "Start measuring" and follow the setup wizard.
Open Google Analytics - 2
Create a new GA4 Property
Enter your business name (CP Tours and Charters), set your timezone to Australia/Adelaide, and currency to AUD.
- 3
Copy your Measurement ID
After setup, go to Admin, then Data Streams, then your stream. Copy the Measurement ID - it looks like G-XXXXXXXXXX.
- 4
Add the ID to your website
Open the file src/components/Analytics.tsx and replace the empty string next to GA_MEASUREMENT_ID with your ID. Example: const GA_MEASUREMENT_ID = "G-ABC123XYZ"
Monitor your Google search rankings and fix indexing issues
- 1
Open Google Search Console
Go to search.google.com/search-console and sign in with your Google account.
Open Search Console - 2
Add your property
Click "Add property" and enter your full website URL. Choose the "URL prefix" option.
- 3
Verify using HTML tag
Select "HTML tag" as the verification method. Copy the content value from the meta tag shown (a long string of letters and numbers).
- 4
Add the code to your website
Open src/components/Analytics.tsx and replace the empty string next to SEARCH_CONSOLE_CODE with your verification code. Then click Verify in Search Console.
- 5
Submit your sitemap
Once verified, go to Sitemaps in Search Console and submit: https://yoursite.com/sitemap - this helps Google find all your pages faster.
Bonus - Link GA4 and Search Console together
In Google Analytics, go to Admin > Property Settings > Search Console Links and connect your Search Console property. This lets you see search keyword data directly inside Analytics.
Current Status - GA4 Active (G-F6DED4P1J3)
Google Analytics 4 is now tracking your visitors using Measurement ID G-F6DED4P1J3. To also activate Search Console, add your verification code to src/components/Analytics.tsx.