Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

17

  • Loading branch information...
commit 8a078fca1e0d9f55d218721565eae26f67bbd368 1 parent 1f34df0
alexanderfabry authored

Showing 1 changed file with 46 additions and 132 deletions. Show diff stats Hide diff stats

  1. +46 132 _posts/2011-01-22-all.textile
178 _posts/2011-01-22-all.textile
Source Rendered
@@ -7,7 +7,7 @@ slide: true
7 7
8 8 <div class="slide">
9 9
10   -h1. Analytics?
  10 +h1. Analytics
11 11
12 12 h2. We need information to make product decisions. We get this information from a variety of sources
13 13
@@ -104,7 +104,6 @@ h2. There are a few main types of things we track with Google
104 104
105 105 </div><div class="slide">
106 106
107   -
108 107 h1. Page Views
109 108
110 109 h4(code_heading). ga.js
@@ -127,7 +126,34 @@ var _gaq = _gaq || [];
127 126
128 127 </div><div class="slide">
129 128
130   -h1. Page Views
  129 +h1. _gaq.push
  130 +
  131 +* You'll see _gaq.push and _kmq.push all over our tracking
  132 +* _gaq is an array into which tracking commands are pushed
  133 +* The ga.js script is fetched from Google servers
  134 +* This script looks for elements in _gaq and executes the associated tracking command
  135 +
  136 +</div><div class="slide">
  137 +
  138 +h1. _gaq.push
  139 +
  140 +h2. ga.js then send a requests for a single pixel gif to google's servers
  141 +h2. This gif requests includes variables which encode things like:
  142 +
  143 +* Cookies that have been set by Google
  144 +* Browser and OS settings
  145 +* Type of requests and associated data
  146 +* Transactional information...
  147 +
  148 +{% highlight html %}
  149 +
  150 +http://www.google-analytics.com/__utm.gif?utmwv=4&utmn=769876874&utmhn=example.com&utmcs=ISO-8859-1&utmsr=1280x1024&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=9.0%20%20r115&utmcn=1&utmdt=GATC012%20setting%20variables&utmhid=2059107202&utmr=0&utmp=/auto/GATC012.html?utm_source=www.gatc012.org&utm_campaign=campaign+gatc012&utm_term=keywords+gatc012&utm_content=content+gatc012&utm_medium=medium+gatc012&utmac=UA-30138-1&utmcc=__utma%3D97315849.1774621898.1207701397.1207701397.1207701397.1%3B...
  151 +
  152 +{% endhighlight %}
  153 +
  154 +</div><div class="slide">
  155 +
  156 +h1. Type of Request: Page View
131 157
132 158 h4(code_heading). client.coffee
133 159
@@ -240,6 +266,7 @@ h2. We use these parameters like this:
240 266
241 267 {% endhighlight %}
242 268
  269 +<br>
243 270
244 271 h2. This means that if you're on the homepage and you click the center artwork in the carousel, then an event is tracked with the parameters (Home, Artwork clicked, Carousel)
245 272
@@ -268,10 +295,10 @@ bq.
268 295
269 296 </div><div class="slide">
270 297
271   -h1. Many of these can happen from any route
  298 +h1. Many can happen from any route
272 299
273 300 bq.
274   - Routes:
  301 + <b>Routes:</b>
275 302 'home'
276 303 'tour'
277 304 'tastetest'
@@ -288,140 +315,27 @@ bq.
288 315 </div><div class="slide">
289 316
290 317
291   -h1. What is a variable
292   -
293   -h4(code_heading). Javascript
294   -
295   -{% highlight js %}
296   -
297   - var cheese = "brie"
298   - cheese
299   - cheese = "cheddar"
300   - cheese
301   - cheese = "wensleydale"
302   -{% endhighlight %}
303   -
304   -</div><div class="slide">
305   -
306   -h1. Why are they variables useful?
307   -
308   -* The official answer, to retain state.
309   -* A better answer, so the computer can remember things, not us
310   -* Lets make a cooking example, keeping track of how many apples we have
311   -
312   -h4(code_heading). Javascript
313   -
314   -{% highlight js %}
315   -
316   - var number_of_apples = 5
317   - "Oh look more apples!"
318   - number_of_apples = number_of_apples + 10;
319   - "Oh... orta ate a lot"
320   - number_of_apples = number_of_apples - 20;
321   - "wait, how do we have minus apples?"
322   -{% endhighlight %}
323   -
324   -or we could ask as the program is running
325   -
326   -h4(code_heading). Ruby
327   -
328   -{% highlight ruby %}
329   -
330   - number_of_pies = 200
331   - puts "you have " + number_of_pies.to_s + " pies"
332   - puts "how many were lunched?"
333   - number_of_pies = number_of_pies - gets.to_i
334   - puts "you now have " + number_of_pies.to_s + " pies"
335   -{% endhighlight %}
336   -
337   -</div><div class="slide">
338   -
339   -h1. Methods how do they work?
340   -
341   -* Methods are ways to name bits of code
342   -* We've been using a few methods
343   -* puts, gets, print, goto, to_s, to_i
344   -
345   -h2. We can use and make our own methods.
346   -
347   -</div><div class="slide">
348   -
349   -h1. page intentionally blank
350   -
351   -</div><div class="slide">
352   -
353   -
354   -h1. Objects
355   -
356   -* The world is full of objects
357   -* Therefore it makes sense to simulate objects
358   -
359   -* I'm a person, I am of the same type as you, but I'm not you.
360   -
361   -* A Person is a class, I am an instance of a class.
362   -* An object has methods, and variables. As best to model them.
363   -
364   -h4(code_heading). Javascript
365   -
366   -{% highlight js %}
  318 +h1. You can analyze each of these parameters separately
367 319
368   - var orta = { name: "orta", hair:"brown" }
369   - orta.do_dishes = function(){
370   - console.log("dishing up")
371   - }
372   - orta.do_dishes();
373   - orta
374   -{% endhighlight %}
375   -
376   -</div><div class="slide">
377   -
378   -
379   -h1. Objects are representational
380   -
381   -h1. ( though some can be abstract )
382   -
383   -The simple idea is that an object can represent something.
384   -To use the Artsy website as an example
385   -
386   -bq.
387   - Class -> Artist
388   - Instance -> Jackson Pollock
389   -
390   - Or
391   -
392   -bq.
393   - Class -> Artwork
394   - Instance -> Number 1
  320 +* For instance, what do users do when they get to the homepage?
  321 +* Where do users open the browse menu most often from?
  322 +* Where do users search from?
  323 +* Where do users follow from?
395 324
396 325 </div><div class="slide">
397 326
398   -h1. This allows us to share code between objects, because sharing is caring.
399   -
400   -h4(code_heading). Ruby
401   -
402   -{% highlight ruby %}
403   -
404   - class Human
405   - def dance
406   - puts "dances!"
407   - end
408   - end
409   -
410   - class Nerd < Human
411   - def put_on_glasses
412   - puts "check these specs out"
413   - end
414   - end
415   -
416   - orta = Nerd.new
417   - orta.put_on_glasses()
418   - orta.dance()
419   -{% endhighlight %}
420   -
  327 +h1. Examples
421 328
422 329 </div><div class="slide">
423 330
  331 +h1. Future
424 332
425   -<iframe width="853" height="480" src="http://www.youtube.com/embed/2fVvfEPWk8M" frameborder="0" allowfullscreen></iframe>
  333 +* Better event tracking
  334 +* Track scrolling
  335 +* Better user segmentation / custom variables
  336 +* A/B testing
  337 +* Refactor to make analytics more maintainable
  338 +* Better testing of analytics
  339 +* Internal analytics -- inquiry requests, search logs, etc
426 340
427 341 </div>

0 comments on commit 8a078fc

Please sign in to comment.
Something went wrong with that request. Please try again.