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
82
Other Decks in Programming
See All in Programming
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
170
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
20
6.6k
2026年 エンジニアリング自己学習法
yumechi
0
130
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
380
Vibe codingでおすすめの言語と開発手法
uyuki234
0
220
高速開発のためのコード整理術
sutetotanuki
1
380
CSC307 Lecture 01
javiergs
PRO
0
680
Apache Iceberg V3 and migration to V3
tomtanaka
0
150
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
370
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.4k
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
187
22k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
62
How to Ace a Technical Interview
jacobian
281
24k
Scaling GitHub
holman
464
140k
For a Future-Friendly Web
brad_frost
182
10k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.2k
Mobile First: as difficult as doing things right
swwweet
225
10k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
400
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.8k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Automating Front-end Workflow
addyosmani
1371
200k
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]