5

Chapter Text and Javascript - Google Analytics … mandolin!! trumpet!! harpist!! harpsichord!! Page!79! same!aspriorlist!! Page!80! autoharp!! autoharps!! harpsichord!! harpsichords!!

Embed Size (px)

Citation preview

Chapter Text and Javascript      Chapter  13    Page  78   oboe     oboes     clarinet     harp     harps     mandolin     trumpet     harpist     harpsichord    Page  79   same  as  prior  list    Page  80   autoharp     autoharps     harpsichord     harpsichords     harpist     harpists     harp     harps     vibraharp    Page  81   bicycle     bicycles     bike     bikes     biking     motorbike     motorbikes     biker     tricycle     tricycles     bicyclist     bicyclists     bicycl     cycl     bikr     tricycl    Page  82   grandfather     grandmother     grandson     granddaughter     mother     father      

Page  83   www.mysite.com/control     www.mysite.com/content/history     www.mysite.com/content/math     www.mysite.com/history     www.mysite.com/math    Chapter  14    Page  86   art artist smart cart apart mart dart darts artists chart artistry artful cup teacup cupcake cupcakes cups  Page  87   mankind man*kind population population* history historical *historical history250 history248 history557 history263 history448 history571 med249 59 78 159  Chapter  17    Pages  110  and  111    The  regex  expressions  have  been  updated  since  publication  of  the  book.  Please  copy  and  paste  the  expressions  developed  by  Ben  Travis  at:      https://viget.com/advance/removing-­‐referral-­‐spam-­‐from-­‐google-­‐analytics.    

Scroll  down  to  the  text  boxes  in  the  Solutions  section  of  the  page.  The  expressions  are  labeled  “Featured”  and  “Update.”    Create  one  filter  for  each  expression.  Chapter  47    Page  375   <script>    

function  download(file)    {        ga('send',  'pageview',  file);        alert("Thanks  for  your  download.");          (window.location="YOUR  FULL  URL  HERE"+file);    }      </script>  

 Chapter  51    Page  403     <script>         function  redir(category,  action,  label,  value,  where)         {           ga('send',  'event',  category,  action,  label,  value);               alert("Redirecting");               (window.location=where);           }           </script>    Chapter  53    Page  419     <body  onload  ="ga('send',  'event',  'Written_By','Davis',{'nonInteraction':  1});           ga('send',  'event',  'Topic','Solo  Travel',{'nonInteraction':  1});  ga('send',           'event',  'Presentaton','Image  dominant',{'nonInteraction':  1})">      Chapter  54    Page  421   <script>    

function  redir(category,  action,  label,  value,  where)    {      ga('send',  'event',  category,  action,  label,  value);          alert("Taking  you  to  your  special  offer");          window.location=where);      }      </script>    

     Page  425     <a  href="javascript:redir('Chapter  54',  'Click',  'Get  an  extra  day  free',               0,'purchase.html')">Get  an  extra  day  free</a>           <a  href="javascript:redir('Chapter  54',  'Click',  'All  meals  paid',       0,'purchase.html')">All  meals  paid</a>    

    <a  href="javascript:redir('Chapter  54',  'Click',  'Free  room  upgrade',       0,'purchase.html')">Free  room  upgrade</a>    Chapter  60    Page  456 To  obtain  the  scripts  and  video  play  instructions  on  a  “starter”  HTML  page       download,  unzip  and  view  the  HTML  source  code  in  this  file:       http://www.googleanalyticsdemystified.com/resources/video_monitor.zip