How to add a counter code to a Web site

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Add a counter code to a Web site

Put the counter code into the Web page to count the site's access. One thing to note here is that each page needs to be placed in order to be able to count each page. So how do you place this code on each page? It will be easy to do in the background of our website system.

The steps are as follows:

1, login system, in front of the introduction of how to log in to the system backstage, here is not repeated.

2, click the "tag" in the navigation menu.

  

3. Under the Open page, select the {my:copyright} tag encoded as "5", which is used to display the "copyright notice" at the bottom of the page, "modify" and "delete" after "Copyright", click "Modify" here.

  

4, in the open page, see three options, respectively, "tag code" "Label description" and "HTML code", we in the "HTML code" inside the replacement code can be.

  

"<script src=" Http://s51.cnzz.com/stat.php?id=1301500&web_id=1301500&show=pic "language=" JavaScript. charset= "gb2312" ></script> "This code is deleted, sticking to the statistical code we mentioned in the previous section, if we forget which code, please click here to view.

5, in fact, each piece of code only that ID number changed, each account ID number is unique. After replacing the statistic code, remember to click "Save".

6, after the save, it is necessary to "static release" operation, this and the previous action, respectively, click "Generate Home" "Generate Column Page" "Generate content page", the specific operation can refer to the previous chapter.

Common:

1, why save the code after the need to operate static publishing it?

Because the site is divided into static pages and dynamic pages, static pages have to make the site open faster, search engines included more easily. This website system uses the whole station to generate the static, therefore, once involves the page changes all needs to carry on the static release.

2, why modify a place can be the whole station statistics?

This system is to solve the label of the same text or code, in different pages call the problem, because the bottom of each page is the same, there is no need for each place to repeat the changes, so the concept of a label. In short, by replacing a place with a label, you can change the content of the label later, and the page that calls the label changes, not every place.

Related Article

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.