Many people only regard Google Analytics as a website statistics tool. In fact, this is the most basic application of Google Analytics. The name of Google Analytics is Google Analytics, which shows that it is not only a statistical tool, but most importantly, it is a traffic analysis tool. . Today I will start by introducing you to how to use Google Analytics in depth in your WordPress blog, so that Google Analytics can play a greater role.
Expose Google Analytics statistics through SeeTheStats
When advertisers place ads, in addition to the popularity of the website, the most important thing to know is the traffic of the website. There are many ways to understand the traffic of the website. Generally, you can use Alexa and Google Ad Planer, but these are not very accurate, such as An advertiser used Alexa data and thought that my blog had 30,000 traffic a day. The most direct way is to view the report of the statistical tool. The Google Analytics backend has the function of adding users to share the data with users, but doing this every time is very troublesome after all. At this time we can use a service called SeeTheStats, which is a third-party service developed using the Google Analytics API. It allows Google Analytics users to disclose the Google Analytics statistical results of their own websites or blogs.
SeeTheStats is relatively simple to use. You first need to register an account in SeeTheStats and activate it, and then give SeeTheStats permission to read your Google Analytics data. Since it uses the Google Analytics API, it will jump to the Google Analytics page to log in and authorize (OAuth authorization , Google account will not be stolen).
SeeTheStats will create a page for your website, for example, the page I love boiled fish in SeeTheStats is: http://www.seethestats.com/site/fairyfish.net/STSh3zMNsJH . And it also provides a picture of the statistical results. You can embed this picture into your website to show users:
Use virtual clicks to count ad clicks
If your website has ads and you don’t use a third-party ad management system (such as Google DFP) to monitor the ads, you actually have no way of knowing how many times users clicked on the ads on your blog. Of course, you can use something like WordPress plug-ins like WP125 track ads, but each click will read and write to the database. After all, it is a burden. We can use virtual clicks to count clicks on ads.
To track outbound clicks on an animated GIF or other type of static banner ad, add the following code to the <a> tag:
<a href=" http://fairyfish.net " onClick=""_gaq.push(['_trackPageview', '/banner/fairyfish/']);">
The iPad URL navigation website I built uses this method to count which website has the most clicks.
Use Google Analytics’ URL Builder to monitor ad serving
As mentioned before, I placed ads on my blog. Now if you make a lot of money and want to place ads, how do you monitor the effectiveness of the ads? If it is an advertising space, you can see the effect through the referring site. If you put soft articles on a blog, it will be more difficult to monitor, because for blogs, a large part of the traffic comes from RSS readers. If this part of the source goes through When checking the referring site, it is assigned to readers such as Google Reader or Xianguo, so it cannot be clearly monitored.
Google Analytics provides a good tool called the URL builder. By adding some specific parameters to the URL of the target page to be served, the source and attributes of the advertisement can be well identified in Google Analytics.
The traffic generated by the URL constructed through the URL builder will be separately recorded by Google Analytics in the Campaign report in the traffic source section. Traffic can be viewed in various dimensions (landing page, location, etc.) in the campaign report just like in the content report. Or you can operate on any metric in the campaign in advanced groups.
Regarding the use of the URL builder, you can check out my article: http://fairyfish.net/2010/12/10/google-analytics-link-tag/ .
Use Google Analytics to count feed traffic
As mentioned earlier, the largest user group of blogs is in RSS, so can Google Analytics be used to count feed traffic? The answer is yes. Google Analytics without javascript (NoJSStats for short) is a third-party Google Analytics service that can be used to count feed traffic. NoJSStats is a free statistical service deployed on Google Analytics of Google App Engine. It is mainly used in environments that do not support Javascript. Google Analytics statistics service, which counts page traffic by generating a 1-pixel image on the page.
The syntax of NoJSStats is:
http://nojsstats.appspot.com/GoogleAnalytics Account ID/Website Homepage URL Assume that your Google Analytics account ID is UA-123456 and the URL of the website homepage is yourwebsite.com, then insert the following HTML into the webpage.
<img src=" http://nojsstats.appspot.com/UA-123456/yourwebsite.com " alt="" />
For WordPress blogs, we can write by hooking the_content filter.
Analyze your website’s active users with Google Analytics
Which users come the most to the website, and who are your loyal users, is the most concerned issue for website operators. In the same way, through some simple programming skills, we can use Google Analytics to analyze the active users of the website.
Google Analytics provides a
The _setCustomVar function is used to count custom user variables and is used to classify user behavior from a specific source. For example, you can set a value for users who log in to browse, and then view their browsing attributes in the visitor/user definition in the Google Analytics backend. For example, we can use the following function to count which users have visited the blog.
_gaq.push(['_setCustomVar', 1,'UserName','<?php echo $user_login; ?>',1]);
Summarize
This article mainly introduces some basic usage methods of Google Analytics. I hope that everyone will make good use of Google Analytics in future website operations. It will be of great help to website operations.
The author of this article is Denis, the webmaster of the well-known domestic website I Love Boiled Fish, and is now a special writer for 36Kr.
Original link address: http://www.36kr.com/8129
The article comes from 36Kr. Please indicate the source of the article when reprinting.