Numion homepage Measure your speed Measure your website Measure the time it takes to download any page on the internet. A collection of bandwidth calculators. SiteSpeed statistics for this website Copyright 2005 J.C. Kessels Goto Numion homepage Frequently asked questions Interesting Links Contact page, to report a problem or ask a question Copyright 2005 J.C. Kessels


Step 3: add lines

The "Links" version of SiteSpeed is meant for applications such as databases and cgi-scripts. It expands the measurement of the "Basic" and "Frames" versions to include the time it takes to jump. The clock starts ticking when visitors click. The measurement therefore includes the time it takes to connect to the server, wait for the reply (script processing), and receive the results, in addition to all other things measured such as html and images.

All you have to do is add a parameter to the link (text link, clickable images, imagemap, etc.) on which visitors click. The method uses a cookie to store an intermediate time and will only work for visitors that have working cookies.

If people jump into the measured page from places beyond your control (other websites, searchengines, bookmarks, etc.) then they will only measure the images on the page, not all the rest, and thus faul up your statistics.

Step 3.1: page to be measured

Follow the instructions for the  *  Basic or the  *  Frames version of SiteSpeed. Return to this page when finished.

Step 3.2: page with link

The following changes must be made to all links on your website (text link, clickable images, imagemap, etc.) that jump to the page you're measuring. There are two changes to be made. First you have to add a single line to the <HEAD> of every page with the link. Then you have to add a parameter to the link itself.

The example only shows how to add the parameter to a text link. Other kinds of links are similar and are left as an excercise to the reader. Certain kinds of links are not supported, such as jumps from within Java applets and plugins like Flash.

Add this line to the <HEAD> of the page:

<script src="/SiteSpeed/SiteSpeed.php"></script>

Add this parameter to the link that jumps to the page to be measured:

ONCLICK="SiteSpeedLink()"

The source of your page should now look like this:

<html>
<head>
<script src="/SiteSpeed/SiteSpeed.php"></script>
....
</head>
<body>
....
<a href="...." ONCLICK="SiteSpeedLink()">....</a>
....
</body>
</html>

Note: The SiteSpeed icon will not become visible on this page. Not this page is measured but the page jumped to.

Step 4: finish

Upload all the pages you've changed to your webserver and open with a browser. Turn the cookie-warning of your browser on and click the link. Your browser should now inform you twice in quick succession that SiteSpeed wishes to set a cookie that will be sent back only to itself. You should then see the SiteSpeed icon inside the page beiing measured. When the page has finished loading the icon will start animating, and you can click it to see your statistics.

That's all! You're done!