Semwatch Question and Answer series: Google Analytics installation Solution

Source: Internet
Author: User
Tags continue variables sub domain subdomain

Thank you for your participation, Semwatch question and Answer series the first: Google Analytics installation question has come to an ending, according to the collected questions, we focus on the question to answer. Thank you to the special guest for the detailed answer given by the blue whale.

  1. Mobile phone version of Baidu M.baidu.com and Baidu image search in the GA statistics is the default as a source of search engine traffic statistics, if not the version, how should be set?

Blue whale: Mobile version of Baidu M.baidu.com and Baidu image search in the GA statistics default is recorded as a referral source, to the two parts of the flow into the Baidu search traffic needs to add a line of code in GATC: _gaq.push ([' _addorganic ', ' Baidu ', ' word ']);

Semwatch: The blue Whale gives the code to add a search engine to the GA, which can be sorted out for other sites in a similar way. Here need to note that, in the m.baidu.com search results, the default in the case of Baidu to the Web page for recoding and paging, resulting in the loss of JS. In this case the GA does not work.

  2. All links are set to _blank in a new window open, will affect the GA on the page stay time, bounce rate, exit rate data accuracy?

Blue whale: Link settings for the original window open and the new window will not affect the statistics of the data, GA use the time stamp of the next page to reduce the time stamp of the previous page to calculate the page stay time, according to a visit to the page in the session to calculate the bounce rate. So the link is set to _blank in the new window does not affect the accuracy of the data.

  3. A bilingual web site, using level two domain name separate: cn.site.com and us.site.com; Is there any good way to detect these two parts? For example, to create two Google Analytics profiles, or create a total, then add filter? What are the pros and cons of these two methods?

Blue whale: Both methods are possible, mainly to see the site's strategy and statistical requirements, such as whether there is a cross-domain behavior or transformation, or two subsites are independent. Cross-domain tracing is advantageous for cross-domain access behavior and transformation. Individual tracking can be a better statistic for the performance of different subdomains. But both have some influence on uv,visits,tos and other indicators. Data that is tracked separately may be slightly larger.

Semwatch: Using two profiles can be problematic when data is aggregated (if needed), and the traffic source for each site may be problematic using the same configuration file. A lazy way to create three profiles, a total profile, installed on two sites, while each site installs a two-level domain name of the site's profile.

  4. Hello, I am now in the Sogou bidding ads, want to statistics Sogou put the keyword conversion rate, I would like to 53 customer service chat consultation record as the goal, how to put the Sogou keyword and 53 customer service consulting records installed in the analytics. Thank you

Blue whale: This requirement can be achieved by following 5 steps:

1-Add the tracking of Sogou traffic to the GATC of all pages.

_gaq.push ([' _addorganic ', ' sogou ', ' query ']);

2-Add tags to the target URL of the paid traffic for Sogou

Http://www.abc.com/?utm_source=sogou&utm_medium=ppc&utm_campaign=paid%2Bsearch

3-Custom Insert code for buttons in 53 customer chat tool

<a href= "Replace with your URL" onclick= "Javascript:_gaq.push

([' _trackpageview ', ' Virtual/53_chat_button ']); " >

4-Set Virtual/53_chat_button as the target in Google Analytics's profile.

5-Visit Google Analytics Report-traffic source-search engine-Pay-sogou, then click on "First target set"

Semwatch: Thank you for the detailed explanation of the blue whale.

  5. If the 53 customer service chat after the third party to pay to complete the purchase, how the GA code should be deployed. Does domain change occur here, GA cookie or first party cookie?

Blue whale: The GA cookie is the first party. If you use a third party shopping cart to complete the payment, make the appropriate settings in the GATC.

_gaq.push ([' _setallowhash ', false]);

Semwatch: In addition to the direct solution given by the blue whale, here we offer another method. In Sitecatalyst there is a tracking method of product finding methods, in GA we can imitate, using the personalization variables of GA to achieve. When a user enters the 53 customer service Chat program, triggers the code:

_gaq.push ([' _setcustomvar ', 1, ' Purchase push ', ' 53Chat ', 1]);

This way, the visitor is associated with the tag 53Chat until it is replaced by another purchase push method. In this way, after defining the set of purchased targets, an item in the 53chat report as a purchase push is automatically combined with the purchase quantity.

Note: Here the purchase push is set to the visitor level, which means that once the tag is triggered, unless its value is replaced, the tag will be associated with all the activities of the visitor at a later time, and if the label is required to take effect only on the current access, the last 1 ' Change to ' 2 ' (session-level)

  The 6.GA cookie is the first party cookie so there is no block problem, but considering that so many sites are using GA, although each site's GA has an ID interval, it should be able to complete the trace on the server side of the GA. For example, the user from a site to B site to C site process, if the three parties are deployed GA code, although a,b,c can not see the other site's GA tracking data, but Google has the ability to complete the user behavior tracking. Is there a problem with that? If there is no problem, is there any security concerns about the data?

Blue whale: Complete user behavior tracking requires complete code implementation, and it's not clear whether Google Analytics can integrate the different site's visitors ' behavior.

Semwatch: This question is really not a good comment. The idea is that no matter how much data Google saves, without a single ID, there's no way to connect the data. Google's AdSense is very powerful for the user's behavior orientation. But the source of its data analysis is not clear to us.

 The 7.Google Analytics code has been installed, but the technical department simply does not use the "cross-subdomain tracking method" To use only the code for sub domain names such as cn.xxxxxx.com. Later want to row weight, carry out the tracking of the domain name, but can not lose the original data, the question is: Can a Web page add a few profile tracking, 1 profiles continue to track the original, 1 profile tracking across the subdomain? If you can, please give a detailed explanation.

Blue whale:

Multiple-segment GATC can be added to a Web page, and different GATC are set separately. So your needs are completely achievable.

Here is an example of sending the data from one page to two different profiles. Where the Ua-11111111-1 account adds a new search

Engine tracking, ua-22222222-1 is set up across the domain.

The following are the referenced contents:

<!–ga Tracking Code begin–>
<script type= "Text/javascript" >

var _gaq = _gaq [];
_gaq.push (
[' _setaccount ', ' ua-11111111-1 '],
[' _addorganic ', ' Soso ', ' W '],
[' _addorganic ', ' Yodao ', ' Q '],
[' _addorganic ', ' sogou ', ' query '],
[' _addorganic ', ' Baidu ', ' word '],
[' _trackpageview '],
[' _setaccount ', ' ua-22222222-1 '],
[' _setallowhash ', false],
[' _trackpageview ']);

(function () {
var ga = document.createelement (' script '); Ga.type = ' Text/javascript '; Ga.async =

True
GA.SRC = 'http://www.google-analytics.com/ga.js';
var s = document.getelementsbytagname (' script ') [0]; S.parentnode.insertbefore (GA, s);
})();

</script>
<!–ga Tracking Code end–>

Semwatch: Blue whale gives a multiple profile tracking method for asynchronous code, where the editor gives multiple profile tracking methods for synchronization code:

The following are the referenced contents:
<script type= "Text/javascript" >
var gaJsHost =1;
</script>
<script type= "Text/javascript" >
var firsttracker = _gat._gettracker ("ua-xxxxxxx-1");
Firsttracker._initdata ();
Firsttracker._trackpageview ();
var secondtracker = _gat._gettracker ("ua-xxxxxxx-2");
Secondtracker._setdomainname ("none");
Secondtracker._setallowlinker (TRUE);
Secondtracker._initdata ();
Secondtracker._trackpageview ();
</script>

More information can participate in the discussion here: Http://goo.gl/l7rqV

In addition, add: After the author's own test, if do not want to toss words,

Direct and parallel placement of different profile but their complete GA code is also feasible.

However, there may be problems if you use personalization variables or event tracking.

  8. The company has more than 60 stations using GA to do statistics are all using a statistical code good or 60 different?

Blue whale: This needs to be determined according to the relationship between the different stations and the statistical needs of the company.

Semwatch: Ibid., it needs to be determined according to the relationship between different stations. The key to the difference is how to share traffic between the 60 stations.

Thanks again to the blue whale's participation and answers (his blog site analyzes notes-google Analytics's application and skills), thank you for your support. If there is a problem, you can continue to ask questions in the comments, you can answer each other. Semwatch editors will stay focused, but because of their limited energy, they may not be able to answer them all, please understand.

Please pay attention to the second issue of Semwatch question and Answer series, now start the topic collection.



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.