The traffic statistics of the Flash website

Source: Internet
Author: User
Tags count html page
Traffic | statistics

Flash Total Station Technology application series :
(i)as+js flash site without the refresh location technology
(ii)Flash website seo (search engine optimization )
(iii)Flash website Traffic Statistics ( this article )
(iv) let the flash website have ie forward back function

Objective

A period of time before the two Flash total station of the technical application of the article, some netizens said, asked me to write an article, explains how to achieve IE's forward back function. But this is not in my plan, nor has it been studied. Find a heap of things about the history of the stack, a lot of Ajax, look dizzy, and copy the code to run the other people can not achieve. Then, also took 2AD JS to study, never found anything related to the historical record, and the history is not saved to my machine. Even if, first write out this article. But when I was testing this statistic, I found that my IE was able to move forward and back, but Flash did not respond.
Later, after Digi 's point, unexpectedly found that this is the same principle as the forward retreat. So the statistics are written first, and then follow the way forward, back to tell you the method.

At first, want to do a traffic statistics for their website, so the search tutorial, the results found that the tutorial is not much, those free code is a lot of. So to sign up for a try, found that people's statistical content is very complete (especially for those with low traffic), feel that their writing is not necessary. The statistic code provided by a http://www.51.la/ is then used.
This statistic code is similar to the code of other statistical sites, first registered an account, and then the site will give you a section of statistical code, you put that piece of code into your Web page, and only when open or refresh the page, this code will give you a brush browsing volume, if there is a new IP login, then brush an IP.
So, if it is flash whole station, and the browsing process does not occur page jump, then, browse volume (PV) only brush once. On the other hand, you don't know which pages your visitors are looking at. Once in the Webmaster Exchange Hall asked this question, people have replied that flash can not be counted.
After thinking about it, I finally figured out a way in 3 seconds. With the frame or IFRAME, in Flash through the Geturl to refresh the other frame or IFRAME not just? So there is a train of thought.

Effect preview:
Http://hbro.cincn.com/cindex.htm

You order every news, statistics code on the refresh once, please observe the status bar changes, but Flash did not refresh.

PS: I this person is relatively not kind, sometimes, for example now this, put the statistical Code of the page in theory will display a statistical code icon, and link to provide statistical services site, and I have to hide it, do not advertise it. Also because of this, some time ago was affected by a number of bugs, can not count the source and search engine traffic, making me this visit is not high on the site, the day IP count out only about 30.

If this is not very clear, look at this simple demo document:
Http://hbro.cincn.com/hbro/cours ... cs/index_flash.html
You order every news, the statistic code is refreshed once, but Flash is not refreshed.

This production can be used back to my previous article's demo document:
Http://www.blueidea.com/tech/multimedia/2006/3967.asp

If you've done it before, you can do it next, otherwise you'll just press the above article to make the content.

First of all, the station's traffic statistics are combined with free statistical code, so we first to apply for a statistical account. The address I applied for is:http://www.51.la/
Let's take a look at its description and understand a little bit about its statistical principles.

Next, we're going to put the statistic code in the index_flash.html. However, if you put it directly inside this HTML file, you have to refresh the page to brush the second PV. Therefore, I use the IFrame method I mentioned above. So, the </body> tag in the current HTML file adds:

<iframe noscroll border= "0" src= "statistics.html" width= "height=" "Name=" "Stat" id= "></iframe>

Creates a new HTML document, named Statistics.html, where the statistic code is placed.

In a regular HTML page, when the page is opened, the PV is counted once, so in Flash, imitate the process, Let the HTML page be loaded into Flash (when the onload or OnData event is triggered) to refresh the statistics.html in the IFRAME. So, open the last completed Index_flash.fla file and append in the OnData function:
GetURL ("statistics.html", "stat")//So you can refresh the IFRAME for statistical purposes, but not flash.

At this point, the brush PV work has been completed.
However, the statistical code that I use, is can obtain the visitor to see which page, to the Visit Quantity low website, like me that, this aspect information provides specially detailed. But now, are exclusively statistics.html, see what page, do you want a page with a statistic code? The answer is in the negative. Since we used to identify the address through the parameters, this time can also be used AH. So, Geturl's sentence could be replaced by:

GetURL ("statistics.html?") +href, "stat");

This will allow visitors to see more of those pages, thus playing the function of statistical code.



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.