Book errata – corrections & typos, 2nd edition

Thankfully my writing ability has improved since the first edition(!) Subsequently, I have only come across four typos so far, as described below.

Please add a comment if you find others. First edition errata is here.

  • Ch 7, page 206 and 207: Controlling Timeouts

The timeout values are shown as seconds, but should be changed to milliseconds. Change:






  • Ch 9, page 269: Implementing Custom Variables

The following code (half way down the page) should be changed from:


pageTracker._setCustomVar(1, “Section”, “Sports Pages”, 3);


pageTracker._setCustomVar(1, “Section”, “Sports Pages”, 3);

}catch(err) {}</script>

Note the order of the lines has changed and the additional closure of the ‘try’ block and </script>

Thanks to Gilles Porlier (Montréal, Canada) for his eagle eyes at spotting this.

  • Ch 9, page 290: Capturing the First and Last Referrer of a Visitor

The highlighted code _setVar(term) should be:


  • Ch11, page 409 and 410: Special Case: Pseudo E-Commerce:

The e-commerce field values should be in single (‘) quotes as these are already nested within double quotes.

Thanks to Andy Hoover for spotting this.

Looking for a keynote speaker, or wish to hire Brian…?

If you are an organisation wishing to hire me and my team, please view the Contact page. I am based in Sweden and advise organisations in Europe as well as North America.

You May Also Like…

Sayonara Universal Analytics

Sayonara Universal Analytics

My first Google Analytics data point was 15th May 2005 for UA-20024. If you are of a certain age, that may sound off...

1 Comment

  1. michaeldhealy

    Page 102, Second Paragraph
    ‘. . . in order words . . . ‘
    Should be
    ‘. . . in other words . . . ‘


Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share This