SlideShare a Scribd company logo
1 of 25
Download to read offline
Tracking across devices with
From a technical point of view by Marga Rodríguez
Developer at feelunique.com
margaferrez@gmail.com - @margaferrez
Cross device tracking -> What’s my User journey?
User id & Ecommerce
#1 The usage of user-id feature makes cross device measurement possible in GA. This is the biggest benefit of
using the user id.
#2 Through user id feature, GA can more accurately identify the number of unique users and their engagement
activities (click on links, page navigation, screen navigation etc) across multiple devices and/or sessions, as unlike
client ID, the user ID can exist on multiple devices.
#3 You can attribute user engagement spread across multiple devices and sessions to a single user in your GA reports.
Thus user id helps in fixing attribution modelling issues.
#4 Through user id feature, you can get a holistic view of the users’ purchase journey.
#5 User id is a great feature to segment and analyze the logged-in users, as these users generally engaged with your
website very differently than those who are not logged in.
source: http://www.optimizesmart.com/complete-guide-cross-device-tracking-user-id-google-analytics/
How we can implement that?
Web
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXX-Y', { 'userId': 'USER_ID' });
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
source: http://developers.google.com/analytics
App
public void onUserSignIn(User user) {
Tracker t = GoogleAnalytics.getInstance(context).newTracker("UA-XXXX-Y");
t.set("&uid", user.getId());
t.send(new HitBuilders.EventBuilder().setCategory("UX").setAction("User Sign In").build());
}
source: http://developers.google.com/analytics
Measurement Protocol
POST:
Host: www.google-analytics.com
v=1 // Version.
&tid=UA-XXXX-Y // Tracking ID / Property ID.
&cid=555 // Anonymous Client ID.
&t= // Hit Type.
GET:
http://www.google-analytics.com/collect?v=1&tid=UA-XXXX-Y&cid=555&t=pageview
source: http://developers.google.com/analytics
MP Example in php and Curl
GET
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://www.google-analytics.com/collect?
v=1&tid=UA-XXXX-Y&cid=555&t=pageview',
));
$resp = curl_exec($curl);
curl_close($curl);
?>
POST
<?php
$data = array(
'v' => 1,
'tid' => 'UA-XXXX-Y';
'cid' => 555,
't' => 'pageview'
);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://www.google-analytics.com/collect',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $data,
));
$resp = curl_exec($curl);
curl_close($curl);
?>
Tracking Your Home with Google Analytics
http://nicomiceli.com/tracking-your-home-with-google-analytics/
How difficult is to implement all that?
- Web tracking is much more easy, because the analytics.js by default is
doing a lot of calculations and we only have to send it once during the
session.
- The App tracking is a bit more complex, because we need to configure the
basic data and then send them, good news are that we only need to send
them once per session, and we can keep them in the app memory.
- The Measurement Protocol is the more complex implementation,
because we need to fill in all the fields we need to be tracked in every single
hit.
- You would need a developer to implement App & MP, but if you are handy,
you won’t have a lot of problems implementing web tracking.
Look So Nice!!!
You need to be logged in to access to
the content
You can access to the content as a
visitor
Limitations?
- Can track only users already identified
- First visits, without being logged in, are not
tracked as part of the journey.
My proposed solution? -> Cookies
Proposed Solution?
- Create a long life cookie with a hashed identifier
- If the user signs in, we do the link between this hashed identifier
and the customer id
- When user logs out, the cookie is keeped on the browser
- If user logs in in different device, we’re going to store the same
user hash id at the device
- Add the hashed identifier to our GA hits as a userid.
Does it solves everything?
- Users that are not registered in our site
- Users that don’t log in at every device they use
- Users that really love removing cache & cookies
- Devices used for many customer of our site
Other ideas?
- Try to encourage the user to log in
(BestPractices)
- Autologin user when lands our site
(social media - custom system)
Is it worth all this work to analyse all devices?
Thanks
Marga Rodríguez
Developer at feelunique.com
https://github.com/margaferrez
margaferrez@gmail.com - @margaferrez

More Related Content

Viewers also liked

Digital jewellery by SH
Digital jewellery by SHDigital jewellery by SH
Digital jewellery by SHshhajira
 
Digital jewellery ppt
Digital jewellery pptDigital jewellery ppt
Digital jewellery pptNida Khan
 
trendwatching.com’s MINI TRENDS
trendwatching.com’s MINI TRENDStrendwatching.com’s MINI TRENDS
trendwatching.com’s MINI TRENDSTrendWatching
 
Social Media Trends for 2014 by Vanksen
Social Media Trends for 2014 by VanksenSocial Media Trends for 2014 by Vanksen
Social Media Trends for 2014 by VanksenVanksen
 
Montreal Girl Geeks: Building the Modern Web
Montreal Girl Geeks: Building the Modern WebMontreal Girl Geeks: Building the Modern Web
Montreal Girl Geeks: Building the Modern WebRachel Andrew
 
Future Social: 10 Key Trends in Social Media
Future Social: 10 Key Trends in Social MediaFuture Social: 10 Key Trends in Social Media
Future Social: 10 Key Trends in Social MediaWe Are Social Singapore
 

Viewers also liked (8)

Digital jewellery by SH
Digital jewellery by SHDigital jewellery by SH
Digital jewellery by SH
 
Digital jewellery ppt
Digital jewellery pptDigital jewellery ppt
Digital jewellery ppt
 
Elisa
ElisaElisa
Elisa
 
trendwatching.com’s MINI TRENDS
trendwatching.com’s MINI TRENDStrendwatching.com’s MINI TRENDS
trendwatching.com’s MINI TRENDS
 
Social Media Trends for 2014 by Vanksen
Social Media Trends for 2014 by VanksenSocial Media Trends for 2014 by Vanksen
Social Media Trends for 2014 by Vanksen
 
Digital Portfolios
Digital Portfolios Digital Portfolios
Digital Portfolios
 
Montreal Girl Geeks: Building the Modern Web
Montreal Girl Geeks: Building the Modern WebMontreal Girl Geeks: Building the Modern Web
Montreal Girl Geeks: Building the Modern Web
 
Future Social: 10 Key Trends in Social Media
Future Social: 10 Key Trends in Social MediaFuture Social: 10 Key Trends in Social Media
Future Social: 10 Key Trends in Social Media
 

Similar to Tracking across devices

Evolution or Extinction: Survive and Thrive with New Google Analytics Features
Evolution or Extinction:Survive and Thrive with New Google Analytics FeaturesEvolution or Extinction:Survive and Thrive with New Google Analytics Features
Evolution or Extinction: Survive and Thrive with New Google Analytics Features4Ps Marketing
 
All about engagement with Universal Analytics @ Google Developer Group NYC Ma...
All about engagement with Universal Analytics @ Google Developer Group NYC Ma...All about engagement with Universal Analytics @ Google Developer Group NYC Ma...
All about engagement with Universal Analytics @ Google Developer Group NYC Ma...Nico Miceli
 
Usando metodologías ágiles en UX
Usando metodologías ágiles en UX Usando metodologías ágiles en UX
Usando metodologías ágiles en UX Paradigma Digital
 
SEMNE Google Analytics Master Class - 15 Oct 2014
SEMNE Google Analytics Master Class - 15 Oct 2014SEMNE Google Analytics Master Class - 15 Oct 2014
SEMNE Google Analytics Master Class - 15 Oct 2014Jay Murphy
 
Google Analytics Workshop 2013
Google Analytics Workshop 2013Google Analytics Workshop 2013
Google Analytics Workshop 2013Milad Safarzadeh
 
Google Analytics & UX
Google Analytics & UXGoogle Analytics & UX
Google Analytics & UXKatrin Mathis
 
Google Analytics for Beginners - Training
Google Analytics for Beginners - TrainingGoogle Analytics for Beginners - Training
Google Analytics for Beginners - TrainingRuben Vezzoli
 
Google analytics and google data studio
Google analytics and google data studioGoogle analytics and google data studio
Google analytics and google data studioBrian Pichman
 
Google Analytics - OptSus Marketing
Google Analytics - OptSus MarketingGoogle Analytics - OptSus Marketing
Google Analytics - OptSus MarketingFrank Jones
 
Google Analytics Conference and Product Releases
Google Analytics Conference and Product ReleasesGoogle Analytics Conference and Product Releases
Google Analytics Conference and Product ReleasesBen Brooks
 
Web Security Report
Web Security ReportWeb Security Report
Web Security ReportAdarsh
 
Google Analytics with an Intro to Google Tag Manager for Austin WordPress Meetup
Google Analytics with an Intro to Google Tag Manager for Austin WordPress MeetupGoogle Analytics with an Intro to Google Tag Manager for Austin WordPress Meetup
Google Analytics with an Intro to Google Tag Manager for Austin WordPress MeetupRich Plakas
 
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.pptDevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.pptVinoaj Vijeyakumaar
 
Innovative AdMedia Design with Google Gadgets
Innovative AdMedia Design with Google GadgetsInnovative AdMedia Design with Google Gadgets
Innovative AdMedia Design with Google Gadgetsauexpo Conference
 
How To Promote Your Online Visibility Using Web Analytics. How To Promote You...
How To Promote Your Online Visibility Using Web Analytics. How To Promote You...How To Promote Your Online Visibility Using Web Analytics. How To Promote You...
How To Promote Your Online Visibility Using Web Analytics. How To Promote You...Overalia
 
Digital Body Language
Digital Body Language  Digital Body Language
Digital Body Language Michael King
 
GTUG Philippines - Implementing Google Analytics - 2011-10-11
GTUG Philippines - Implementing Google Analytics - 2011-10-11GTUG Philippines - Implementing Google Analytics - 2011-10-11
GTUG Philippines - Implementing Google Analytics - 2011-10-11Vinoaj Vijeyakumaar
 

Similar to Tracking across devices (20)

Evolution or Extinction: Survive and Thrive with New Google Analytics Features
Evolution or Extinction:Survive and Thrive with New Google Analytics FeaturesEvolution or Extinction:Survive and Thrive with New Google Analytics Features
Evolution or Extinction: Survive and Thrive with New Google Analytics Features
 
All about engagement with Universal Analytics @ Google Developer Group NYC Ma...
All about engagement with Universal Analytics @ Google Developer Group NYC Ma...All about engagement with Universal Analytics @ Google Developer Group NYC Ma...
All about engagement with Universal Analytics @ Google Developer Group NYC Ma...
 
Usando metodologías ágiles en UX
Usando metodologías ágiles en UX Usando metodologías ágiles en UX
Usando metodologías ágiles en UX
 
SEMNE Google Analytics Master Class - 15 Oct 2014
SEMNE Google Analytics Master Class - 15 Oct 2014SEMNE Google Analytics Master Class - 15 Oct 2014
SEMNE Google Analytics Master Class - 15 Oct 2014
 
Google Analytics Workshop 2013
Google Analytics Workshop 2013Google Analytics Workshop 2013
Google Analytics Workshop 2013
 
Google Analytics & UX
Google Analytics & UXGoogle Analytics & UX
Google Analytics & UX
 
Google Analytics for Beginners - Training
Google Analytics for Beginners - TrainingGoogle Analytics for Beginners - Training
Google Analytics for Beginners - Training
 
Google analytics and google data studio
Google analytics and google data studioGoogle analytics and google data studio
Google analytics and google data studio
 
Google Analytics - OptSus Marketing
Google Analytics - OptSus MarketingGoogle Analytics - OptSus Marketing
Google Analytics - OptSus Marketing
 
Google’s tridente
Google’s tridenteGoogle’s tridente
Google’s tridente
 
Google Analytics Conference and Product Releases
Google Analytics Conference and Product ReleasesGoogle Analytics Conference and Product Releases
Google Analytics Conference and Product Releases
 
Web Security Report
Web Security ReportWeb Security Report
Web Security Report
 
Google Analytics with an Intro to Google Tag Manager for Austin WordPress Meetup
Google Analytics with an Intro to Google Tag Manager for Austin WordPress MeetupGoogle Analytics with an Intro to Google Tag Manager for Austin WordPress Meetup
Google Analytics with an Intro to Google Tag Manager for Austin WordPress Meetup
 
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.pptDevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
DevFest Kuala Lumpur - Implementing Google Analytics - 2011-09-29.ppt
 
Innovative AdMedia Design with Google Gadgets
Innovative AdMedia Design with Google GadgetsInnovative AdMedia Design with Google Gadgets
Innovative AdMedia Design with Google Gadgets
 
How To Promote Your Online Visibility Using Web Analytics. How To Promote You...
How To Promote Your Online Visibility Using Web Analytics. How To Promote You...How To Promote Your Online Visibility Using Web Analytics. How To Promote You...
How To Promote Your Online Visibility Using Web Analytics. How To Promote You...
 
Python Development - V2STech Corporate presentation
Python Development - V2STech Corporate presentationPython Development - V2STech Corporate presentation
Python Development - V2STech Corporate presentation
 
Google Analytics tutorial by Jay Murphy
Google Analytics tutorial by Jay Murphy Google Analytics tutorial by Jay Murphy
Google Analytics tutorial by Jay Murphy
 
Digital Body Language
Digital Body Language  Digital Body Language
Digital Body Language
 
GTUG Philippines - Implementing Google Analytics - 2011-10-11
GTUG Philippines - Implementing Google Analytics - 2011-10-11GTUG Philippines - Implementing Google Analytics - 2011-10-11
GTUG Philippines - Implementing Google Analytics - 2011-10-11
 

Recently uploaded

Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 

Recently uploaded (20)

Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 

Tracking across devices

  • 1. Tracking across devices with From a technical point of view by Marga Rodríguez Developer at feelunique.com margaferrez@gmail.com - @margaferrez
  • 2. Cross device tracking -> What’s my User journey?
  • 3. User id & Ecommerce #1 The usage of user-id feature makes cross device measurement possible in GA. This is the biggest benefit of using the user id. #2 Through user id feature, GA can more accurately identify the number of unique users and their engagement activities (click on links, page navigation, screen navigation etc) across multiple devices and/or sessions, as unlike client ID, the user ID can exist on multiple devices. #3 You can attribute user engagement spread across multiple devices and sessions to a single user in your GA reports. Thus user id helps in fixing attribution modelling issues. #4 Through user id feature, you can get a holistic view of the users’ purchase journey. #5 User id is a great feature to segment and analyze the logged-in users, as these users generally engaged with your website very differently than those who are not logged in. source: http://www.optimizesmart.com/complete-guide-cross-device-tracking-user-id-google-analytics/
  • 4. How we can implement that?
  • 5.
  • 6. Web <!-- Google Analytics --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXX-Y', { 'userId': 'USER_ID' }); ga('send', 'pageview'); </script> <!-- End Google Analytics --> source: http://developers.google.com/analytics
  • 7. App public void onUserSignIn(User user) { Tracker t = GoogleAnalytics.getInstance(context).newTracker("UA-XXXX-Y"); t.set("&uid", user.getId()); t.send(new HitBuilders.EventBuilder().setCategory("UX").setAction("User Sign In").build()); } source: http://developers.google.com/analytics
  • 8. Measurement Protocol POST: Host: www.google-analytics.com v=1 // Version. &tid=UA-XXXX-Y // Tracking ID / Property ID. &cid=555 // Anonymous Client ID. &t= // Hit Type. GET: http://www.google-analytics.com/collect?v=1&tid=UA-XXXX-Y&cid=555&t=pageview source: http://developers.google.com/analytics
  • 9. MP Example in php and Curl GET <?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'http://www.google-analytics.com/collect? v=1&tid=UA-XXXX-Y&cid=555&t=pageview', )); $resp = curl_exec($curl); curl_close($curl); ?> POST <?php $data = array( 'v' => 1, 'tid' => 'UA-XXXX-Y'; 'cid' => 555, 't' => 'pageview' ); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => 'http://www.google-analytics.com/collect', CURLOPT_POST => true, CURLOPT_POSTFIELDS => $data, )); $resp = curl_exec($curl); curl_close($curl); ?>
  • 10. Tracking Your Home with Google Analytics http://nicomiceli.com/tracking-your-home-with-google-analytics/
  • 11. How difficult is to implement all that? - Web tracking is much more easy, because the analytics.js by default is doing a lot of calculations and we only have to send it once during the session. - The App tracking is a bit more complex, because we need to configure the basic data and then send them, good news are that we only need to send them once per session, and we can keep them in the app memory. - The Measurement Protocol is the more complex implementation, because we need to fill in all the fields we need to be tracked in every single hit. - You would need a developer to implement App & MP, but if you are handy, you won’t have a lot of problems implementing web tracking.
  • 13. You need to be logged in to access to the content You can access to the content as a visitor
  • 14. Limitations? - Can track only users already identified - First visits, without being logged in, are not tracked as part of the journey.
  • 15. My proposed solution? -> Cookies
  • 16. Proposed Solution? - Create a long life cookie with a hashed identifier - If the user signs in, we do the link between this hashed identifier and the customer id - When user logs out, the cookie is keeped on the browser - If user logs in in different device, we’re going to store the same user hash id at the device - Add the hashed identifier to our GA hits as a userid.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. Does it solves everything? - Users that are not registered in our site - Users that don’t log in at every device they use - Users that really love removing cache & cookies - Devices used for many customer of our site
  • 23. Other ideas? - Try to encourage the user to log in (BestPractices) - Autologin user when lands our site (social media - custom system)
  • 24. Is it worth all this work to analyse all devices?
  • 25. Thanks Marga Rodríguez Developer at feelunique.com https://github.com/margaferrez margaferrez@gmail.com - @margaferrez