Skip to main content
PHP Blog

Back to all posts

How to Add Google Analytics to A WordPress Site?

Published on
9 min read
How to Add Google Analytics to A WordPress Site? image

Best Google Analytics Tools to Buy in October 2025

1 Google Analytics Breakthrough: From Zero to Business Impact

Google Analytics Breakthrough: From Zero to Business Impact

BUY & SAVE
$25.85 $49.95
Save 48%
Google Analytics Breakthrough: From Zero to Business Impact
2 Advanced Web Metrics with Google Analytics

Advanced Web Metrics with Google Analytics

  • AFFORDABLE PRICES FOR QUALITY READS-SAVE MONEY ON GREAT BOOKS!
  • ECO-FRIENDLY CHOICE: REDUCE WASTE BY BUYING USED OVER NEW!
  • TRUSTED QUALITY: EACH BOOK IS CAREFULLY INSPECTED FOR CONDITION!
BUY & SAVE
$26.91 $39.99
Save 33%
Advanced Web Metrics with Google Analytics
3 Attribution Modelling in Google Analytics and Beyond

Attribution Modelling in Google Analytics and Beyond

BUY & SAVE
$49.59 $69.00
Save 28%
Attribution Modelling in Google Analytics and Beyond
4 Software Engineering at Google: Lessons Learned from Programming Over Time

Software Engineering at Google: Lessons Learned from Programming Over Time

BUY & SAVE
$36.49 $65.99
Save 45%
Software Engineering at Google: Lessons Learned from Programming Over Time
5 Google Review NFC & QR Tap Card by Capture 360, NFC Instant Review card, All Phones Compatible, Friendly Dashboard, Live Analytics, Reusable Card, Boost Business Feedback (Blue, 2-Pack Google Cards)

Google Review NFC & QR Tap Card by Capture 360, NFC Instant Review card, All Phones Compatible, Friendly Dashboard, Live Analytics, Reusable Card, Boost Business Feedback (Blue, 2-Pack Google Cards)

  • EFFORTLESS FEEDBACK: TAP NFC CARD FOR QUICK GOOGLE REVIEWS!
  • SIMPLE SETUP: GET STARTED IN 1 MINUTE-NO TECH SKILLS NEEDED!
  • VERSATILE DESIGN: PERFECT FOR ANY BUSINESS-BOOST CUSTOMER INTERACTIONS!
BUY & SAVE
$11.99
Google Review NFC & QR Tap Card by Capture 360, NFC Instant Review card, All Phones Compatible, Friendly Dashboard, Live Analytics, Reusable Card, Boost Business Feedback (Blue, 2-Pack Google Cards)
6 Tap NFC Review Plate for Google by NUUBIZ - Boost Reviews & SEO Instantly– Real-Time Analytics–Compatible with All Phones–Reusable NFC & QR– Adhesive/Stand– Ideal for Retail & Service Businesses

Tap NFC Review Plate for Google by NUUBIZ - Boost Reviews & SEO Instantly– Real-Time Analytics–Compatible with All Phones–Reusable NFC & QR– Adhesive/Stand– Ideal for Retail & Service Businesses

  • EFFORTLESS INSTALLATION ANYWHERE WITH RESIDUE-FREE ACRYLIC TAPE
  • NO EXTRA COSTS: ENJOY FLEXIBLE USE WITHOUT SUBSCRIPTIONS
  • INSTANT REVIEWS: TAP OR SCAN FOR QUICK CUSTOMER FEEDBACK
BUY & SAVE
$32.90
Tap NFC Review Plate for Google by NUUBIZ - Boost Reviews & SEO Instantly– Real-Time Analytics–Compatible with All Phones–Reusable NFC & QR– Adhesive/Stand– Ideal for Retail & Service Businesses
7 Marketing Analytics Dashboards Design: Mastering Data Visualization with Figma and Google Looker Studio: A Comprehensive Guide to Creating Engaging and Insightful Visual Analytics

Marketing Analytics Dashboards Design: Mastering Data Visualization with Figma and Google Looker Studio: A Comprehensive Guide to Creating Engaging and Insightful Visual Analytics

BUY & SAVE
$14.99
Marketing Analytics Dashboards Design: Mastering Data Visualization with Figma and Google Looker Studio: A Comprehensive Guide to Creating Engaging and Insightful Visual Analytics
8 Data Analytics Made Easy: Analyze and present data to make informed decisions without writing any code

Data Analytics Made Easy: Analyze and present data to make informed decisions without writing any code

BUY & SAVE
$32.99
Data Analytics Made Easy: Analyze and present data to make informed decisions without writing any code
9 Counter Plate by Revuzee | Tap Plate with QR Code for Google Reviews | NFC and Custom QR Code Sign for Business | Includes Analytics and Customizable Landing Page | Adhesive Backing | 4.7"x 4.7" | Black

Counter Plate by Revuzee | Tap Plate with QR Code for Google Reviews | NFC and Custom QR Code Sign for Business | Includes Analytics and Customizable Landing Page | Adhesive Backing | 4.7"x 4.7" | Black

  • NFC TAP PLATE FOR INSTANT FEEDBACK COLLECTION FROM CUSTOMERS.
  • CUSTOM QR CODE FOR EASY ACCESS TO YOUR GOOGLE BUSINESS PAGE.
  • BOOST REVIEWS AND RATINGS EFFORTLESSLY WITH MODERN TECH SOLUTIONS.
BUY & SAVE
$29.95
Counter Plate by Revuzee | Tap Plate with QR Code for Google Reviews | NFC and Custom QR Code Sign for Business | Includes Analytics and Customizable Landing Page | Adhesive Backing | 4.7"x 4.7" | Black
+
ONE MORE?

To add Google Analytics to a WordPress site, you need to follow these steps:

  1. Sign up for a Google Analytics account: Go to the Google Analytics website and log in using your Google account. If you don't have an account, create one.
  2. Create a new property: Once logged in, click on the "Admin" tab and select "Create Property" in the "Property" column. Fill in the website information and click "Get Tracking ID."
  3. Obtain the tracking code: You will be provided with a unique tracking ID and a tracking code snippet. Copy this code as you'll need it later.
  4. Install a plugin: In your WordPress dashboard, go to "Plugins" and click on "Add New." Search for the "Google Analytics" plugin and choose one from the search results. Install and activate the plugin.
  5. Configure the plugin: After activation, go to the plugin settings. Normally, you'll find it under "Settings" or in a separate "Google Analytics" menu tab. Enter your tracking ID in the appropriate field.
  6. Save changes and verify: Click on the "Save Changes" button, and the plugin will automatically add the Google Analytics tracking code to your site. Verify the installation by visiting your website and checking if the tracking code is present in the source code.
  7. Set up goals and filters (optional): If desired, you can configure goals and filters in your Google Analytics account to track specific actions or filter out unwanted traffic.

That's it! You have successfully added Google Analytics to your WordPress site. You can now track and analyze various aspects of your website's performance using the data provided by Google Analytics.

How to exclude internal traffic from Google Analytics tracking for a WordPress site?

To exclude internal traffic from Google Analytics tracking on a WordPress site, you can follow these steps:

  1. Identify your IP address: Go to Google and search for "What is my IP address?" Click on one of the search results to find your public IP address.
  2. Log in to your Google Analytics account: Navigate to analytics.google.com and log in using your credentials.
  3. Access the Admin settings: Once logged in, click on the Admin button located at the bottom left corner.
  4. Select the appropriate property and view: Under the Account, Property, and View columns, select the appropriate website for which you want to exclude internal traffic.
  5. Enable the IP address filter: In the View column, click on Filters, then on the "+ Add Filter" button.
  6. Set up the IP address filter: Name your filter (e.g., "Exclude Internal Traffic"), and select "Predefined" under the Filter Type section. Choose "Exclude," then "traffic from the IP addresses," and "that are equal to." Enter your IP address in the provided field.
  7. Add a filter for each internal IP address: If you have multiple internal IP addresses to exclude, you can add additional filters by clicking on the "+ Add Filter" button again.
  8. Verify your filter settings: Go through the filter settings and make sure they are correct. Click on the "Verify this filter" button to double-check.
  9. Save your filter: Once you're satisfied with the filter settings, click on the "Save" button.

From now on, when you or others with the excluded IP addresses visit your WordPress site, their visits will not be tracked by Google Analytics.

What is the site speed report in Google Analytics and how to analyze it on a WordPress site?

The Site Speed Report in Google Analytics provides insights into how quickly your website loads its pages for visitors. It offers data on various speed metrics like page load time, server response time, and page rendering time. Analyzing this report can help you identify areas where you need to optimize your WordPress site's performance to provide a better user experience.

To analyze the Site Speed Report on a WordPress site:

  1. Sign in to your Google Analytics account and select the website you want to analyze.
  2. In the left-hand menu, navigate to Behavior > Site Speed > Overview.
  3. You will see an overview of the average page load time and other speed metrics for your website.
  4. To delve deeper into the report, you can explore different sections like Page Timings, Speed Suggestions, and User Timings under the Site Speed menu.

To integrate Google Analytics with your WordPress website, you can use a plugin like MonsterInsights or Google Site Kit. Here's a general process:

  1. Install and activate the plugin of your choice from the WordPress plugin repository.
  2. Follow the plugin's setup wizard or settings to connect your website with your Google Analytics account.
  3. Complete the authorization process by granting the plugin access to your Google Analytics data.
  4. Once the plugin is successfully connected, it will start tracking your website's data.
  5. After a few hours or a day, the data will be available in your Google Analytics account, including the Site Speed Report.

Remember to properly configure the caching, minification, and optimization settings on your WordPress site to improve its loading speed, as this can significantly impact the data shown in the Site Speed Report.

How to track conversions in Google Analytics for a WordPress site?

To track conversions in Google Analytics for a WordPress site, follow these steps:

  1. Set up Google Analytics: Go to the Google Analytics website and sign up for an account or sign in to your existing account. Once signed in, create a new property for your WordPress site and obtain the tracking ID.
  2. Install a Google Analytics plugin: In your WordPress dashboard, go to "Plugins" and click on "Add New." Search for a Google Analytics plugin, such as "MonsterInsights" or "Google Analytics Dashboard for WP." Install and activate the plugin.
  3. Connect Google Analytics: After installing the plugin, go to the plugin's settings page (usually found under "Settings" or "Analytics") in your WordPress dashboard. Enter your Google Analytics tracking ID and save the changes.
  4. Enable conversion tracking: Depending on the plugin you installed, there may be a specific section for enabling conversion tracking. Look for options related to goals or conversions and click on them.
  5. Set up goals in Google Analytics: Open your Google Analytics account and navigate to the "Admin" section. Under the "View" column, click on "Goals." Create a new conversion goal, such as a completed purchase or form submission, and set the required details.
  6. Set up tracking for specific conversions: In the WordPress dashboard, go to the plugin's settings page again. Look for options to track specific conversions, such as sales or form submissions. Configure the relevant settings and save the changes.
  7. Test the conversions: Perform a test conversion on your website, such as making a purchase or submitting a form. Wait for a few minutes, then go back to Google Analytics and check if the conversion is being tracked.
  8. Analyze your conversions: Once conversions are being tracked, you can access reports in Google Analytics to analyze the data. Look for the "Conversions" or "Goals" section to view conversion reports and analyze the performance of your website.

Note that the specific steps may vary depending on the Google Analytics plugin you choose and its configuration options.

How to track social media referrals in Google Analytics for WordPress?

To track social media referrals in Google Analytics for WordPress, follow these steps:

  1. Install and activate the Google Analytics by MonsterInsights plugin on your WordPress site.
  2. Connect your website to Google Analytics by going to Insights » Settings and clicking on the 'Authenticate with your Google account' button. Follow the prompts to authorize the plugin to access your Google Analytics data.
  3. Once connected, go to Insights » Settings and click on the 'Tracking' tab.
  4. Scroll down to the 'Enhanced Link Attribution' section and enable it. This feature helps track social media referrals more accurately.
  5. Click on the 'Save Changes' button at the bottom of the page.
  6. Next, go to Insights » Reports and click on 'Publisher' to view your site's referral traffic.
  7. Scroll down to the 'Top Landing Pages' report and click on the 'Advanced' link to expand the options.
  8. From the 'Filter' dropdown menu, select 'Social Networks' to filter the report for social media referrals.
  9. You can further customize the report by selecting a specific social network from the 'Segment' dropdown menu.

Note: The exact steps may vary slightly depending on the version of the Google Analytics by MonsterInsights plugin you are using.

What is Google Analytics and why is it important for a WordPress site?

Google Analytics is a free web analytics service provided by Google that tracks and reports website traffic and user behavior. It provides valuable insights into various aspects of a website, including the number of visitors, their demographics, their behavior on the site, the source of traffic, and much more.

For a WordPress site, Google Analytics is important for several reasons:

  1. Track website performance: It helps to understand how users interact with the website, what content they find engaging, and where there may be room for improvement.
  2. Identify audience demographics: By analyzing user data, Google Analytics provides information about the age, gender, interests, and location of the website visitors. This data can be used to tailor content and marketing strategies to target specific demographics.
  3. Monitor website traffic and sources: It shows how users find the website, whether it is through search engines, social media, referrals, direct visits, or other sources. This information can help prioritize marketing efforts and identify areas for improvement.
  4. Measure conversion goals: Google Analytics allows the setup of goals, such as newsletter sign-ups, purchases, or form submissions, to track conversions. This helps to understand the effectiveness of marketing campaigns and identify areas for optimization.
  5. Optimize website performance: It provides data on page load times, bounce rates, and user engagement, enabling website owners to identify and address issues that may be impacting the site's performance.

Overall, Google Analytics for a WordPress site is crucial as it helps to measure and analyze the effectiveness of marketing strategies, improve user experience, and optimize the website for better performance.