Book corrections and typos
GA specific May 26th, 2008Many thanks to those who have provided feedback on the book so far. A couple of typo’s have slipped by me, so I wanted to post them here immediately. Please add if you find more. I will create a separate corrections page if needed.
- page 181/182:
The code pageTracker._addOrganic("images.google", "prev"); should be placed just before the line pageTracker._initData(); - Not after, as mentioned on page 178 (grey box, positioning of GATC hacks).
pageTracker._addOrganic("images.google", "prev"); pageTracker._initData();
- page 191, point a (referring to Figure 9.8a):
The regular expression pattern should be: (\?|&)(q|p)=([^&]*) as shown in Figure 9.8a. Note the change in position of *
Thanks to Bart Geerling, Amsterdam for these two.
Email This Post
Print This Post


May 30th, 2008 at 10:53 pm
Page 205: 6th line of your Modified GATC code has a closed script tag. It should be removed since the script doesn’t end there!
June 2nd, 2008 at 10:19 am
Thanks Larry. You are of course correct.
June 2nd, 2008 at 9:51 pm
line 34- var pageTracker = _gat._getTracker(”UA-XXXXXX-X”)
is giving me an error “_gat is not defined” am I doing something wrong or is this an error in the code?
Yes I replaced the UA-XXXXXX-X with my GA account number.
Thanks,
-Lary
June 4th, 2008 at 4:22 pm
p. 51 figure 4.2 f) and g) in the diagram do not match f) and g) in the descriptions or discussion on p. 53.
p. 78 paragraph 2, line 6 “visitors not viewing the blog area spend spend slightly less time on the site(-20.45%” refers to figure 5.14 next page. This should be “less time on the page”.
Thanks for a great book.
Rita
June 4th, 2008 at 4:38 pm
Brian,
The first referrer code on page 205 is still not working. What is the deal here? Can you give us a working example somewher?
-Lary
June 8th, 2008 at 6:09 pm
Thanks Rita
Lary: I have been testing the script and saw the same error as you. I couldn’t understand why this was, so I simply modified the ’structure’ to remove the error and it now works.
Essentially I just grouped the js code into 3 script tags. The file is listed in: http://www.advanced-web-metrics.com/blog/ga-scripts/
Let me know if you get it working.
June 9th, 2008 at 6:26 pm
Brian,
I changed:
if (newVisitor)
into:
if (newVisitor!=”0″) and can see that the data is now being captured in the _utmz cookie, but for whatever reason the _utmv cookie is not being created…any thoughts?
-Lary
June 10th, 2008 at 5:29 am
Brian, I figured it out! the checkFirst() function needs to be called before the pageTracker script runs. There was also an extra space in the code. I create a link to a correct version here: http://www.freshclicks.net/scripts/initial_referrer.txt
One other strange side effect. When I combined urchin_term and urchin_medium (pageTracker._setVar(urchin_term + “|” + urchin_medium)) it is being set as “CPC” when it is “organic”. Any reason why that would be?
-Lary
June 19th, 2008 at 2:14 pm
Hi there,
I am wondering about a detail of a graph in your book “advanced webmetrics”. On page 5 there is shown how to divide visitors in “bounced” and “nonbounced”. The “nonbounced” are divided into “conversions” and “abandoned” and there is some space left free. (the letters “oned” from abandoned are in that area) Is this accidently or has this space a name?
Thank you for help
June 21st, 2008 at 5:07 pm
Scatterplot: The space doesn’t have a name as this represents visitors who left the site. I agree its not clear with the word “abandoned” overlapping the boundary.
Abandoned in this chart represents those visitors that entered the conversion funnel but did not complete.
HTH. Brian
July 9th, 2008 at 7:28 am
I was wondering why the regexp is written with 3 groups?
You are only referencing one, the third ($A3). So to be more clear it should be written as [\?|&][q|p]=([^&]*) and the the $A3, should be changed to $A1 or am i missing something ?
July 10th, 2008 at 7:40 pm
Hi Brian,
Thanks for the wonderful book - a terrific job!
In page 131
pageTracker._setCampNameKey(”orig_campaign”); // default: utm_medium
I think you meant (default: utm_campaign)
pageTracker._setCampNameKey(”orig_campaign”); // default: utm_campaign
Thank you,
Allaedin
July 11th, 2008 at 2:23 pm
Mad.Photo.World:
Yes, yours will work just as good.
Allaedin: Thanks for the feedback. Well spotted for page 131. You are correct - the joys of cut&paste…
September 5th, 2008 at 5:33 pm
Dear Brian,
As most of the people have mentioned above, THANK YOU for this very useful book on GA. We were very excited with the sub-chapter on event tracking (noted in the book to be in BETA). When trying to implement the recommended technique in the book, we can’t seem to find some of what you speak of in GA. Have they discontinued event tracking? Are we missing something obvious? We did click to edit our profile and “enable” event tracking but this isn’t an option anywhere. We are using the new GA.
Thanks in advance if you have some insight!
–
Ziv