Google Analytics-10 useful tutorials

Source: Internet
Author: User
Tags wordpress blog

Almost every website collects statistics on its browsing status: daily IP address, PV, bounce rate, conversion rate, and viewer attributes. Understanding this data helpsIt is helpful to better understand the attributes of the browser and where the website is defective, so as to provide better services and increase website revenue.

For most websites, Google Analytics is the most widely used solution, because Google Analytics provides very powerful functions, and most importantly, it is free, andAs with some statistical websites, website owners are not required to indicate on the websites that they use for statistics..

However, many people simply put the Statistics Code provided by Google into the website when using Google Analytics. In factGoogle Analytics has many little-known practical skills, This article will introduce some of them.

 

I. Place the code at the bottom of the page

Unless you want to call the Google Analytics function in the middle of the page (this is required in some examples below), You 'd better place the GA statistics code at the bottom of the page.Usually located before </body>.

For a Wordpress blog, you can put the code before footer. php </body>.

GA's statistical code is a piece of JavaScript. If you place it in the header or center of the page, it will affect the loading speed of the page to a certain extent, especially when you are using IE, not Firefox or chrome.

2. Track outbound clicks

In addition to counting the clicks on the site, Google Analytics also collects statistics on the links clicked by visitors and leaves the website. To count these links, you need to make changes to the link code. The general link code is as follows:

<A href = "http://www.kenengba.com"> maybe </a>

To calculate outbound clicks by GA, the Code must be changed to the following format:

<A href = "http://www.kenengba.com" onclick = "javascript: pagetracker. _ trackpageview ('/outgoing/kenengba.com');"> maybe </a>

In this way, when a visitor clicks the "maybe" link on your website, the clicks will be counted."Outgoing/kenengba.com", The data can be found in the Google Analytics report.

Note that you need to track outbound clicks,Google Analytics statistics code must be placed before the statistics LinkFor example, under <body>, otherwise the link statistics code is invalid.

If you place third-party website ads on the page, you can obtain more detailed click reports in this way.

3. Track download (video and music) clicks

Google Analytics code is embedded into webpages. If your website provides video and music downloads, how can you count the clicks of these files that cannot be embedded?

You may wish to look up the line of sight. Refer to the "Tracking outbound click" method. We can also use GA to count the download status in the site.

For example, if there is a link on your website (for example, kenengba.com) pointing to kenengba.com/av.avi, the general link is like this.

<A href = "http://kenengba.com/av.avi"> download Av. Avi </a>

To download ga statistics, the code can be changed to the following format:

<A href = "http://kenengba.com/av.avi" onclick = "javascript: pagetracker. _ trackpageview ('/download/Av. avi');"> download Av. av </a>

In this way, the number of download clicks is calculatedDownload/Av. Avi.

Like the above example,The GA Statistical Code must be placed before the statistical link..

4. Do not count your clicks

Sometimes in order to test different effects, we often refresh our website, but these clicks will have a certain impact on the overall click status of the website, because in most cases, we only need to know the browsing status of other visitors,Statistics on your browsing status make the data appear untrue..

Google Analytics provides powerful filter functions, including the features of filtering certain clicks.

1. IP address filtering

If the webmaster's IP address is a fixed IP address, you can add the IP address to the filter list as follows:

(1) Open google analytics and go to the configuration file of a website.

(2) In the configuration file, the second to the last is "filter". Click "Add filter"

(3) set the filter to: exclude all clicks from an IP address, and fill in the IP address in the form.

(4)Note that the IP address is not directly entered. You need to add "\" before each "."For example, 63 \. 212 \. 171 \. 3

(5) You can alsoShield an IP segmentFor example, 63 \. 212 \. 171 \.*

2. Cookie Filtering

If the IP address to be filtered is not a static IP address, you need to use cookies to filter the IP address. The method is as follows:

(1) create a new page on the website

(2) Add the following code to the page:

<Body onload = "javascript: pagetracker. _ setvar ('test _ value');">

"Test_value" is a customizable character.

(3) access this page once and leave this cookie in your computer

(4) Open google analytics and go to the configuration file of a website. In the configuration file, the second to the last is "filter". Click "Add filter ".

(5) Add a filter as shown in:

5. view the income with AdSense

Google provides analytics to count AdSense ad clicks. To enable this function, go to the AdSense background homepage and combine the AdSense account with the Analytics account.

With analytics data, we can easily obtain the geographical location, browser, search keyword, click source, browsed page, bounce rate of AdSense ad Clickers .......

What is the use of this data? Here are two simple examples:

1. Find out which pages or keywords attract the highest click rate and unit price of the advertisements,In the later stages of the website development, many content that can be converted into revenue is provided..

2. Find out which browsers have the best ad click value. 99% of the website's Adsense revenue comes from IE users.Consider displaying ads only for IE users.

I used the possible AdSense click condition as an example and wrote the "AdSense click Analysis and Optimization suggestions for Chinese original blog", which contains more detailed analysis.

6. view the statistics of specific groups

In general, the audience in the Google Analytics datagram table is"All viewers", That is, the" Browser "project lists the browser status of all viewers, and the" Operating System "project lists the operating system status of all viewers.

So can we look at the data of a specific group? For example,What Browser do ads mostly use??"

The answer is yes. Google provides a feature named "advanced group:

You can use this function to filter some specific users, such as "people who click AdSense ads ":

Next, you can select the new group in the main panel of the report. You can also select other groups to compare data, it is a curve comparison between "AdSense income brought by IE viewers" and "Total AdSense income:

It can be seen that IE users are the main groups of ad clicks.

VII. Comparison with peers

Google Analytics provides the "benchmarking" data comparison function. You can use the "benchmarking" function as long as you share your website statistics (anonymously) in your account settings.

Click the "visitor" tab and select "benchmarking ":

Find "Open Directory List" on the right. Here you can select the website type to be compared with your website. Maybe, select "social networks and online communities> blog resources and services". Then you can see yourComparison between the average value of a website and other websites.

This is probably a benchmark chart for comparing "page views" with other blog websites:

The blue line indicates the possible data, and the gray line indicates the baseline data.

8. Identify non-mainstream search engines

Although Google Analytics is easy to use, its support for Chinese search engines remains to be improved. Friends who use Ga may find that,Google Analytics does not include "Soso", "yodao", and "sogou" in its "Search Engine" statistics.Users who search from these search engines will be considered to be from the "recommendation website (referrel)". We need to manually tell Google, although "Soso", "yodao", and "sogou" have a small share, they are also search engines.

The method is very simple.Pagetracker. _ trackpageview ();"BeforeAdd code to identify non-mainstream search engines, such as Soso. The Code is as follows:

Pagetracker. _ addorganic ("Soso", "W ");

"Soso"Is the name of the search engine,"W"Is the search code. Where do these two characters come from? By studying the search URL of Soso, we can conclude that this is the general search URL of Soso:

Http://www.soso.com/Q? PID = S. idx & W = kenengba

Pay attention to the"SosoAndW", You should understand"W.

Similarly, add other non-mainstream Chinese search engines:

  • Pagetracker. _ addorganic ("3721", "name ");
  • Pagetracker. _ addorganic ("yodao", "Q ");
  • Pagetracker. _ addorganic ("vnet", "kW ");
  • Pagetracker. _ addorganic ("sogou", "query ");

You can also open any possible page to find the content.

9. Search for "website name" traffic as direct traffic

To a certain extent, the search engine replaces favorites. For example, if you want to search for "maybe" or "kenengba.com" on Google, you may not enter pinyin directly in the address bar.

Should the traffic from the search site name and domain name to the website be counted as "search traffic" or "direct traffic?

I think it should be counted as "direct traffic ". However, Google Analytics regards the traffic as "search traffic ".You need to manually tell Google that the traffic is "direct traffic". The method is similar to the "identifying non-mainstream search engines" mentioned above.

In the call code of Google Analytics,Pagetracker. _ trackpageview ();"BeforeAdd the code to identify "direct traffic for search". For example, I want to classify the page views that may be accessed by "kenengba.com" or "maybe" as direct pages. The Code is as follows:

  • Pagetracker. _ addignoredorganic ("kenengba.com ");
  • Pagetracker. _ addignoredorganic ("probably ");
10. intuitively View data changes

Google Analytics provides an intuitive view of data changes. To use this function, you must first set your Google Analytics to the English version (EN (US). Then, in some projects, you can see that there is a button named "Visualize" on the top of the report:

Click in to view the project'sData is displayed in an animation on a timeline.. This is a little abstract, and you can try it to understand the meaning.

With "Visualize", you can intuitively view the changes in the page views of an article within a period of time, or the changes in a browser user base, which is very practical.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.