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
SwiftDataを使って10万件のデータを読み書きする
akidon0000
0
240
Goで実践するドメイン駆動開発 AIと歩み始めた新規プロダクト開発の現在地
imkaoru
4
900
AIと人間の共創開発!OSSで試行錯誤した開発スタイル
mae616
2
810
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
190
Software Architecture
hschwentner
6
2.3k
TransformerからMCPまで(現代AIを理解するための羅針盤)
mickey_kubo
7
5.3k
Introduce Hono CLI
yusukebe
6
3.1k
Devvox Belgium - Agentic AI Patterns
kdubois
1
150
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
920
Go言語の特性を活かした公式MCP SDKの設計
hond0413
2
530
Webサーバーサイド言語としてのRustについて
kouyuume
1
4.9k
はじめてのDSPy - 言語モデルを『プロンプト』ではなく『プログラミング』するための仕組み
masahiro_nishimi
4
16k
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
116
20k
Stop Working from a Prison Cell
hatefulcrawdad
272
21k
GraphQLとの向き合い方2022年版
quramy
49
14k
How STYLIGHT went responsive
nonsquared
100
5.9k
Building a Modern Day E-commerce SEO Strategy
aleyda
44
7.8k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Being A Developer After 40
akosma
91
590k
Why Our Code Smells
bkeepers
PRO
340
57k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
The Straight Up "How To Draw Better" Workshop
denniskardys
238
140k
Building Applications with DynamoDB
mza
96
6.7k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.6k
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]