Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Google Analytics for Developers
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
thomasbachem
March 15, 2013
Programming
3.1k
7
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Google Analytics for Developers
Presented at
http://startupcampberlin.de/2013/
thomasbachem
March 15, 2013
More Decks by thomasbachem
See All by thomasbachem
CODE – Educating the Digital Pioneers of Tomorrow
thomasbachem
0
86
Other Decks in Programming
See All in Programming
JIS keyboard support in Omarchy
lef237
0
110
contenteditable と日本語入力に向き合う
colorful12
0
200
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
Event is what happens
moro
2
780
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
R8 の設定見直しでアプリサイズ削減
andpad
0
220
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
From π to Pie charts
rasagy
1
400
HDC tutorial
michielstock
2
960
GitHub's CSS Performance
jonrohan
1033
470k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
Visualization
eitanlees
153
17k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
Done Done
chrislema
187
17k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
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]