ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
#wawCPT
a challenging tracking solution
@blakey
#firstworldproblems       #developingeconomy

Client: ¡°Tell me how my   Web analyst: ¡°Do you
billboard / TVC /         think we might get
homepage takeover is      analytics tracking on
driving search and        your shopping cart
sales.¡±                   pages?¡±

> Exciting challenges     > Surely we should be
                          winning? We can so
                          easily offer value!
So, why aren¡¯t
we rocking it?
A challenge
Quirk.biz	
 ?   Quirk.co.za	
 ?   Go.aQuirk.com	
 ?
Quirk.biz	
 ?    Quirk.co.za	
 ?      Go.aQuirk.com	
 ?




                Quirk	
 ?GLOBAL	
 ?
Quirk.biz	
 ?    Quirk.co.za	
 ?      Go.aQuirk.com	
 ?


                                                          Two	
 ?
                                                          repor8ng	
 ?
                                                          pro?les	
 ?¨C	
 ?
                                                          double	
 ?
                Quirk	
 ?GLOBAL	
 ?                       tracker	
 ?
Quirk.biz	
 ?         Quirk.co.za	
 ?       Go.aQuirk.com	
 ?


                                                                  Two	
 ?
                                                                  repor8ng	
 ?
                                                                  pro?les	
 ?¨C	
 ?
                                                                  double	
 ?
                     Quirk	
 ?GLOBAL	
 ?                          tracker	
 ?




    Crossing	
 ?domains	
 ?¨C	
 ?cross	
 ?domain	
 ?tracking	
 ?
Some favourite
resources
Helping us on the way

?? Google Code Documentation:
   http://code.google.com/apis/analytics/docs/
   tracking/home.html
?? Lunametrics:
   http://www.lunametrics.com/blog
?? GACP forum


                @jeanduplessis	
 ?
A solution
Tracking code
 <script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-4753136-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/
javascript'; ga.async = true;
    ga.src = /slideshow/waw-cape-town-deck/9660142/(& == document.location.protocol ? 'https://
ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
  })();

</script>
var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-4753136-1']);
 _gaq.push(['_trackPageview']);
Asynchronous ¡ª an array
var _gaq = _gaq || [];
_gaq.push(
    ['_setAccount', 'UA-4753136-1¡¯],
    ['_trackPageview']
    );
Standard customisations
var _gaq = _gaq || [];
_gaq.push(
    ['_setAccount', 'UA-4753136-1¡¯],
    ['_trackPageview']
    ['_trackPageLoadTime'],
    ['_setAllowAnchor', true ]
    );
Standard customisations
var _gaq = _gaq || [];
_gaq.push(
    ['_setAccount', 'UA-4753136-1¡¯],
    ['_trackPageview']       PAGESPEED	
 ?REPORTING	
 ?
    ['_trackPageLoadTime'],
    ['_setAllowAnchor', true ]
    );
                                       CAMPAIGN	
 ?TRACKING	
 ?
Double tracker - basic
 var _gaq = _gaq || [];
 _gaq.push(
     ['_setAccount', 'UA-4753136-1¡¯],
     ['_trackPageview']
     ['t2._setAccount', 'UA-12352734-1¡¯],
     ['t2._trackPageview']
     );
Double tracker - basic
 var _gaq = _gaq || [];
 _gaq.push(
     ['_setAccount', 'UA-26225633-1¡¯],
     ['_trackPageview']
     ['t2._setAccount', 'UA-12352734-1¡¯],
     ['t2._trackPageview']
     );
                 t2	
 ?¨C	
 ?iden8?es	
 ?my	
 ?second	
 ?
                          account	
 ?/	
 ?pro?le	
 ?
Double tracker + customisations
var _gaq = _gaq || [];
_gaq.push(
    ['_setAccount', 'UA-26225633-1¡¯],
    ['_trackPageview']
    ['_trackPageLoadTime'],
    ['_setAllowAnchor', true ]
    ['t2._setAccount', 'UA-12352734-1¡¯],
    ['t2._trackPageview']
    ['t2._trackPageLoadTime'],
    ['t2._setAllowAnchor', true ]
    );
Erm, the cross
domain thing
Standard cross domain tracking
 var _gaq = _gaq || [];
 _gaq.push(
  ['_setAccount', 'UA-4753136-1¡¯],
  ['_setDomainName', 'quirk.biz'],
  ['_setAllowLinker', true],
  ['_trackPageview']
  );

<a href="www.gottaquirk.com"
onclick="_gaq.push(['_link',
'www.gottaquirk.com']); return false;">View
our blog</a>
Standard cross domain tracking
 var _gaq = _gaq || [];
 _gaq.push(
  ['_setAccount', 'UA-4753136-1¡¯],   Rewrites	
 ?the	
 ?domain	
 ?
                                      hash	
 ?value	
 ?so	
 ?I	
 ?can	
 ?
  ['_setDomainName', 'quirk.biz'],   access	
 ?cookies	
 ?across	
 ?
  ['_setAllowLinker', true],               domains.	
 ?

  ['_trackPageview']
                                       Lets	
 ?me	
 ?pass	
 ?my	
 ?
  );                                 cookie	
 ?parameters	
 ?as	
 ?
                                       I	
 ?cross	
 ?domains.	
 ?

<a href="www.gottaquirk.com"
onclick="_gaq.push(['_link',
'www.gottaquirk.com']); return false;">View
our blog</a>
Putting it all together
var _gaq = _gaq || [];
_gaq.push(
  ['_setAccount', 'UA-26225633-1¡¯],
  ['_setDomainName', 'quirk.biz'],
  ['_setAllowLinker', true],
  ['_trackPageview']
  ['_trackPageLoadTime'],
  ['_setAllowAnchor', true ]
  ['t2._setAccount', 'UA-12352734-1¡¯],
  ['t2._setDomainName', 'quirk.biz'],
  ['t2._setAllowLinker', true],
  ['t2._trackPageview']
  ['t2._trackPageLoadTime'],
  ['t2._setAllowAnchor', true ]
  );
www.slideshare.net/sblakey

More Related Content

WAW Cape Town Deck

  • 2. #firstworldproblems #developingeconomy Client: ¡°Tell me how my Web analyst: ¡°Do you billboard / TVC / think we might get homepage takeover is analytics tracking on driving search and your shopping cart sales.¡± pages?¡± > Exciting challenges > Surely we should be winning? We can so easily offer value!
  • 3. So, why aren¡¯t we rocking it?
  • 5. Quirk.biz ? Quirk.co.za ? Go.aQuirk.com ?
  • 6. Quirk.biz ? Quirk.co.za ? Go.aQuirk.com ? Quirk ?GLOBAL ?
  • 7. Quirk.biz ? Quirk.co.za ? Go.aQuirk.com ? Two ? repor8ng ? pro?les ?¨C ? double ? Quirk ?GLOBAL ? tracker ?
  • 8. Quirk.biz ? Quirk.co.za ? Go.aQuirk.com ? Two ? repor8ng ? pro?les ?¨C ? double ? Quirk ?GLOBAL ? tracker ? Crossing ?domains ?¨C ?cross ?domain ?tracking ?
  • 10. Helping us on the way ?? Google Code Documentation: http://code.google.com/apis/analytics/docs/ tracking/home.html ?? Lunametrics: http://www.lunametrics.com/blog ?? GACP forum @jeanduplessis ?
  • 12. Tracking code <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-4753136-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/ javascript'; ga.async = true; ga.src = /slideshow/waw-cape-town-deck/9660142/(& == document.location.protocol ? 'https:// ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>
  • 13. var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-4753136-1']); _gaq.push(['_trackPageview']);
  • 14. Asynchronous ¡ª an array var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-4753136-1¡¯], ['_trackPageview'] );
  • 15. Standard customisations var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-4753136-1¡¯], ['_trackPageview'] ['_trackPageLoadTime'], ['_setAllowAnchor', true ] );
  • 16. Standard customisations var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-4753136-1¡¯], ['_trackPageview'] PAGESPEED ?REPORTING ? ['_trackPageLoadTime'], ['_setAllowAnchor', true ] ); CAMPAIGN ?TRACKING ?
  • 17. Double tracker - basic var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-4753136-1¡¯], ['_trackPageview'] ['t2._setAccount', 'UA-12352734-1¡¯], ['t2._trackPageview'] );
  • 18. Double tracker - basic var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-26225633-1¡¯], ['_trackPageview'] ['t2._setAccount', 'UA-12352734-1¡¯], ['t2._trackPageview'] ); t2 ?¨C ?iden8?es ?my ?second ? account ?/ ?pro?le ?
  • 19. Double tracker + customisations var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-26225633-1¡¯], ['_trackPageview'] ['_trackPageLoadTime'], ['_setAllowAnchor', true ] ['t2._setAccount', 'UA-12352734-1¡¯], ['t2._trackPageview'] ['t2._trackPageLoadTime'], ['t2._setAllowAnchor', true ] );
  • 21. Standard cross domain tracking var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-4753136-1¡¯], ['_setDomainName', 'quirk.biz'], ['_setAllowLinker', true], ['_trackPageview'] ); <a href="www.gottaquirk.com" onclick="_gaq.push(['_link', 'www.gottaquirk.com']); return false;">View our blog</a>
  • 22. Standard cross domain tracking var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-4753136-1¡¯], Rewrites ?the ?domain ? hash ?value ?so ?I ?can ? ['_setDomainName', 'quirk.biz'], access ?cookies ?across ? ['_setAllowLinker', true], domains. ? ['_trackPageview'] Lets ?me ?pass ?my ? ); cookie ?parameters ?as ? I ?cross ?domains. ? <a href="www.gottaquirk.com" onclick="_gaq.push(['_link', 'www.gottaquirk.com']); return false;">View our blog</a>
  • 23. Putting it all together var _gaq = _gaq || []; _gaq.push( ['_setAccount', 'UA-26225633-1¡¯], ['_setDomainName', 'quirk.biz'], ['_setAllowLinker', true], ['_trackPageview'] ['_trackPageLoadTime'], ['_setAllowAnchor', true ] ['t2._setAccount', 'UA-12352734-1¡¯], ['t2._setDomainName', 'quirk.biz'], ['t2._setAllowLinker', true], ['t2._trackPageview'] ['t2._trackPageLoadTime'], ['t2._setAllowAnchor', true ] );