Full width home advertisement

Building Online Business

Post Page Advertisement [Top]

How to Add Google Analytics to Wordpress

How to Add Google Analytics to Wordpress 2018

How to Add Google Analytics to Wordpress Adding Google Analytics to WordPress is not easy. There are several ways to do this. Today we will add some simple steps. The WordPress Plugin Repository has a plugin that not only adds Google Analytics code but also loads the plugin in a way that passes the Google PageSpeed Insights test. By default, the Google Analytics script uses a flag in Google PageSpeed Insights because it has a low 2-hour cache time. With the plugin mentioned above, you can add a tracking ID, Add Google Analytics to Wordpress  load the tracking code in the footer, and load the script locally. When the script is loaded locally, Google will ignore the two hour cache limit by removing the flag set in our Page Speed test.

However, there is one caveat. Google does not support local storage of scripts.

We do not like the local serving of scripts because they can become obsolete when upgrades happen. However, the plug-in that stores it does not need to worry because it automatically updates the script using WP Cron. In this tutorial you will learn: How to add a site to Google Analytics. Learn how to link Google Analytics to Google Search Console (assuming you've already added your site to Google Search Console).
  • Resources mentioned in the tutorial:
  • Google Analytics
  • Google Search Console
  • Full Analytics Optimization Suite Plugin
  • Before continuing:
  • <String> Make sure you have a Google Account. If you have a Gmail email address or YouTube account, you are eligible.
Make sure you've already added your website to Google Search Console. This process is covered in the video, but not in the written instructions below. Visit google.com/analytics in your web browser.
Click Sign in at the top right, then click Analytics. Add Google Analytics to Wordpress When prompted, please sign in with your primary Google Account.

Click the Subscribe button.

  • Please enter an account name that is similar to your website name.
  • Please enter your website name.
  • Select a protocol for your website: http or https
  • Paste into the website URL.
  • Choose the industry category that best suits your site.
  • Change your time zone to match your local time.
  • Please specify the data sharing settings you are interested in. Read on to see if your data sharing settings are important.
  • Click the Get Tracking ID button.
  • If you are prompted to accept the terms of service, select your country, read and accept the terms, and click the I Accept button.
  • Copy the tracking ID for future use.
  • Assuming you've already set up your website in Google Search Console, go to the next step.

How to link Google Analytics and Google Search Console.

  • Click Set Properties on the left.
  • Scroll down, click the Search Console Adjust button, and scroll up.
  • Click the Edit link.
  • Choose a basic version of your site (with or without https, www, or none). Then click the Save button.
  • Now we will land on Search Console. You can close this window and return to Analytics.
  • Click the Done button. When you refresh the page, you'll see a link between Analytics and Search Console.
  • Now use the Analytics tracking ID to get back to your WordPress dashboard.
If you have not yet copied the tracking ID, you can find it by clicking the tracking info and tracking code link in the Analytics dashboard.

How to add Google Analytics to WordPress.

  • In the WordPress dashboard, click Plugins, and then click Add New.
  • Search for: Complete Analytics Optimization Suite
  • Click Install Now, and then click Activate.
  • Click Settings, then Analytics Optimization.
  • Paste the tracking ID into the top box.
  • Choose a footer for the location unless you have a specific reason to select the header.
  • Select Anonymize IP, if applicable.
  • Click the Save Changes button.
  • To test placements, do one of the following:
Google Analytics waits for data to be reported. You can check it by visiting the Google Analytics dashboard. You can also configure the GA to send test traffic. Or, in the Complete Analytics Optimization Suite, Add Google Analytics to Wordpress  enable the 'Login History Manager' feature, then visit the site, right-click, click View Source, and perform a search by tracking ID.

No comments:

Post a Comment

Bottom Ad [Post Page]