Add Google Analytics feature to WordPress page
QuanTriMang - Google recently added a new feature to their Analytics software, allowing users to track the speed at which they load the current website. Google also offers many tools to help administrators improve the speed of their website. For example, with Google Instant internet users can find all they want before typing the keyword; Instant Preview feature allows users to preview web pages from search results; Page Speed Chrome extension helps to test the performance of running websites based on a set of best known methods to reduce page load time, and now is Site Speed Report .
Why does a website need to be browsed faster?
Instead of talking about the benefits, let's talk about the disadvantages. A website that has a slow loading speed will affect the user's experience after visiting that website. Most people usually do not wait more than 10 seconds for downloading web pages. If your site is not uploaded in about 3 seconds, chances are they will leave.
In addition, a slow landing page can also affect your conversion speed and ranking order on Google's search engine. If you want a high ranking (in Google search results), first create a website with download speeds as quickly as possible.
Manually add Analytics site tracking
Analytics will add a feature to monitor page loading speed for users, thereby allowing administrators to know which pages load quickly / slowly to find ways to fix on the geographic area or browser.
If you are using WordPress and have added Google Analytics manually, you just need to insert the code to perform the speed tracking feature of the website.
Open your theme file, which contains the Google Analytics code (such as header.php ) and add the following code:
_gaq.push (['_ trackPageLoadTime']);
insert the above line of code right below the line
_gaq.push (['_ trackPageview']);
As a result, you will have the following code:
Then you overwrite this file on the server.
Add Analytics features using Plugin
In case you use a plugin to add Google Analytics code, most will not be updated with new features. You have to wait for developers to add features or disable those plugins and add code manually.
To manually add the code, just go to Appearance -> Editor and download the header.php file. Add Google Analytics code (with site speed tracking feature) before the card.
See website speed analysis information
By default, the speed tracking feature of the website is disabled. Once you've added the above code, it will take several hours to display on your Google Analytics page. Click My Site > select Reports > Content . Here you will see a new entry called ' Site Speed ' under the Content section.
You should read it
- 20 tips and tricks for mastering Google Analytics data (Part 2)
- Enhance the effectiveness and security of Website with CloudFlare
- The best website load testing tools available today
- What are bounce rates and how to improve them?
- 6 powerful features of Google Analytics
- How to enable speed limits on Google Maps
- Guide to speed up website loading in a simple way
- Compare Google Chrome and Microsoft Edge after improvements, which browser is better in 2018
May be interested
- Which platform is better for WordPress.com and WordPress.org?a commonly asked question is between wordpress.com and wordpress.org, which is the better platform. to help answer that question, today's article will conduct a comprehensive comparison of these two platforms
- Why is WordPress free?today's article will discuss why wordpress is free, the cost of running a wordpress website and what users get from a wordpress site?
- The guide to turning Blogger into WordPress does not worry about losing Google rankingsblogger is one of the great free tools for bloggers. however, when developing blogs to a more professional level or converting to another purposeful website rather than simply writing and sharing content, then many users will want to switch to wordpress. this is not difficult to understand.
- What's new in WordPress 5.4?on march 31, the latest version of wordpress 5.4 was released and named after nat adderley, a trumpet player, continuing the tradition of naming wordpress releases after jazz artists.
- Enhance the effectiveness and security of Website with CloudFlarewebsite load time and security are two essential factors for success in online business. not only is it necessary for e-commerce, but also any type of business, including personal blogs.
- How to set up Google Analytics 4 (GA4)using google's advanced machine learning models, ga4 delivers superior performance in tracking the latest market trends and customer behavior across multiple devices and platforms.
- Google Drive Supports Video Analytics with Geminigoogle's popular cloud storage service, google drive, is getting a very interesting ai feature based on the gemini artificial intelligence model.
- 10 most popular WordPress errors and how to fix themfor a tool that owns 50 percent of the entire database management system (content management system - cms), wordpress has become its own standard. however, just like any other tool, you may encounter problems while using. some problems are caused by user error and some problems are caused by software, server, web host.
- Squarespace and WordPress - Which one is better?this article will compare squarespace and wordpress, listing the advantages and disadvantages of each platform. hopefully, after this comparison, you can choose which platform is more suitable to use.
- Adding dynamic widgets to WordPress blogs without using codeif you own a wordpress site, do you want to display different widgets on every page in your blog? how to do this in wordpress?