Archive | April, 2008

Google Analytics

There are many statistics programmes which track web visitors. Google analytics is one of the best free statistics programmes.

To add Google analytics

  1. Visit Google analytics – you will be instructed to get a google account.
  2. Add your site and then add the code they give you into your web pages.

Blogger Template.

If you have a blogger (blogspot.domain). You would edit the blogger template and add the code.

WordPress Template.

In a wordpress, it is good to add the analytic code into the footer file

It will look like:

<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-17xxxxxx-6");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>

6. Giving Access to Others

Click on access manager, when you have logged in. This allows others to have access to your stats.

With Google Analytics You Can

  1. Track unique visitors, page loads.
  2. Find sites sending you traffic.
  3. Find the keyword searches that are sending people to your site.
  4. Find which countries people are coming from.
  5. Where People enter your site, how long they stay and where they exit.
  6. Many other features.
Comments { 0 }

Embedding Quicktime videos with preview picture

To embed a quicktime video, use the following code:

<object width="400" height="274">
<embed src="video.mp4" type="application/quicktime"
  wmode="transparent" width="400" height="274" autoplay="true">
</embed></object>

The autoplay argument determines whether the video plays or not immediately the page is loaded.

There are also other arguments you can add just like autoplay:

  • loop="true"/"false"— the movie plays once or continuously.
  • controller="true"/"false" — toggles the playback controls e.g. pause, fast forward, or mute.

The full range of options are available on the Apple Quicktime site:

http://www.apple.com/quicktime/tutorials/embed2.html

Preview Picture

With the above, what you get is basically a black box with a grey control bar below. Perhaps you would like to have a preview picture that loads the film when it is clicked on, just like Youtube embeds

The first thing you need to do is create the picture to be the same size as the video + 16px height to allow for the controllers. If you don’t do this the image gets squeezed/expanded to fit the video screen.

Then you need to save your image as something quicktime can deal with (eg .mp4). For this you need Quicktime Pro (costs $30) or for Mac you can use QTAmateur, available here:

http://www.mikeash.com/?page=software/qtamateur/index.html

Open up your image with either of these and then click File -> Export, and save to MPEG-4 (mp4), I think .mov also works

You can then use this code to embed

 <object width="400" height="274">
<embed src="images/preview_image.mp4" href="video.mp4" target="myself"
  type="application/quicktime" wmode="transparent" width="400" height="274"
  autoplay="false"></embed></object>

where preview_image.mp4 is your created image and video.mp4 is your video

Comments { 0 }