Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Google Analytics for Developers
Search
thomasbachem
March 15, 2013
Programming
7
3.1k
Google Analytics for Developers
Presented at
http://startupcampberlin.de/2013/
thomasbachem
March 15, 2013
Tweet
Share
More Decks by thomasbachem
See All by thomasbachem
CODE – Educating the Digital Pioneers of Tomorrow
thomasbachem
0
81
Other Decks in Programming
See All in Programming
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
240
AIプログラマーDevinは PHPerの夢を見るか?
shinyasaita
1
210
A full stack side project webapp all in Kotlin (KotlinConf 2025)
dankim
0
110
おやつのお供はお決まりですか?@WWDC25 Recap -Japan-\(region).swift
shingangan
0
130
RailsGirls IZUMO スポンサーLT
16bitidol
0
180
High-Level Programming Languages in AI Era -Human Thought and Mind-
hayat01sh1da
PRO
0
770
Flutterで備える!Accessibility Nutrition Labels完全ガイド
yuukiw00w
0
160
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
52
33k
生成AI時代のコンポーネントライブラリの作り方
touyou
1
180
Webの外へ飛び出せ NativePHPが切り拓くPHPの未来
takuyakatsusa
2
540
Modern Angular with Signals and Signal Store:New Rules for Your Architecture @enterJS Advanced Angular Day 2025
manfredsteyer
PRO
0
210
#QiitaBash MCPのセキュリティ
ryosukedtomita
1
1.1k
Featured
See All Featured
Writing Fast Ruby
sferik
628
62k
The Straight Up "How To Draw Better" Workshop
denniskardys
234
140k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
5.9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Code Review Best Practice
trishagee
69
18k
GitHub's CSS Performance
jonrohan
1031
460k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.9k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
5
280
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Transcript
for
None
None
None
None
None
Analytics
Page Views
_trackPageview( path )
_trackPageview( "/ratgeber" )
None
Social Interactions
_trackSocial( network, socialAction, target, pagePath )
_trackSocial( "facebook", "like", "//fb.com/foo", document.URL )
None
None
Events
_trackEvent( category, action, label, value, nonInteraction )
_trackEvent( "Editor", "Theme.Select", "Elegant.Gray", null, false )
None
None
User Timings
_trackTiming( category, variable, time, label )
_trackTiming( "Editor", "Upload.Photo", 23.5, "JPG" )
None
None
Transactions
_addTrans( orderId, affiliation, total, tax, shipping, city, state, country )
_addTrans( "123456789", "xing", 2.99, 0.19 * 2.99, 0, "Köln", "NRW",
"de" )
_addItem( orderId, sku, name, category, price, quantity )
_addItem( "123456789", "pdf", "PDF", "Elegant.Gray", 2.99 * (1 / 1.19),
1 )
None
None
Goals & Funnels
None
_trackPageview( "/#modified" )
Custom Variables
_setCustomVar( slot, name, value, scope )
_setCustomVar( 1, "HasFacebook", true, 1 // Visitor )
Page Scope: → Segment traffic into page sections
Advanced Segments: → Analyze users that use Facebook
Advanced Segments
None
Error Tracking
_trackEvent( "Error", "Javascript", "Exception at…", null, true )
None
Advanced Segments: → Analyze users who experienced errors
Boss Exclusion
document.cookie = "Do-‐Not-‐Track=1, expires=2038"
php-ga code.google.com/p/php-ga/
None
use UnitedPrototype\GoogleAnalytics as Ga; $tracker = new Ga\Tracker('UA-‐12345678-‐9', 'example.com'); $visitor
= new Ga\Visitor(); $visitor-‐>setIpAddress($_SERVER['REMOTE_ADDR']); $visitor-‐>setUserAgent($_SERVER['HTTP_USER_AGENT']); $visitor-‐>setScreenResolution('1024x768'); $session = new Ga\Session(); $page = new Ga\Page('/page.html'); $page-‐>setTitle('My Page'); $tracker-‐>trackPageview($page, $session, $visitor);
Soon: Measurement Protocol developers.google.com/analytics/devguides/collection/protocol/v1/
Thanks for listening! fb.com/thomasbachem
[email protected]