Questions tagged [analytics]

For questions related to analytics methods and tools. Use it together with the programming language used

Analytics is typically the application of descriptive statistical methods to large data sets. This is usually in contrast to predictive methods, which relate to unseen data or to tasks that are dependent on the outcome of a model. Analytics is often related to reporting on databases and frequently arises in the context of "web analytics" - a field that encompasses analysis of site traffic, online revenue, site usage, and other interests.

Typical languages used for analytics are R , Python (especially Pandas), SPSS and SAS

4895 questions
17
votes
8 answers

How to aggregate analytics from Google, Twitter, YouTube, Facebook, etc

I have a video blog for which I would like to track certain statistics, including stats from Google Analytics, Twitter, YouTube, Facebook, etc. The problem is that the various stats are on different websites, which require different logins, etc. It…
user245587
17
votes
2 answers

how to implement number of views of a particular page

So basically I want to implement the same functionality as StackOverflow's: viewed 59344 times So here is some background information: I want to count only unique visits. The assumption that registered users will read the article many times (it is…
Salvador Dali
  • 214,103
  • 147
  • 703
  • 753
16
votes
2 answers

MongoDB Approaches for storing large amounts of metrics / analytics data

We are planning on using MongoDB to store large amounts of analytics data such as views and clicks. I'm unsure on the best way to structure the documents within MongoDB to aid querying and reduce database size. We need to record actions agains a…
Tom
  • 33,626
  • 31
  • 85
  • 109
16
votes
1 answer

HTTP request beforeunload: sendBeacon vs img.src

In the context of a beforeunload handler, what is the functional difference between fetch(keep-alive: true) and setting the src attribute of an img tag, and which of these is the preferred method for making GET requests? Background: I want to send…
Emmett Butler
  • 5,969
  • 2
  • 29
  • 47
16
votes
3 answers

Getting client ID with gtag.js

Google released gtag.js a couple of months ago as the new way of tracking with Google Analytics, eventually replacing analytics.js as far as I understood. gtag.js is the default when setting up a new Google Analytics account, so the code snippet…
ba0708
  • 10,180
  • 13
  • 67
  • 99
16
votes
2 answers

Google Analytics gtag.js ready callback

I try to update my Google Analytics implementation from analytics.js to the new gtag.js. In the old implementation I am using the ready callback function. ga(function() { console.log('Google analytics is ready'); }); How can I implement a…
xela84
  • 262
  • 2
  • 10
16
votes
1 answer

Change the loglevel of GoogleTagManager v5 on iOS

I've integrated GoogleTagManager v5 in an iOS project. It's working fine, but now I see these logmessages in the Xcode console: 2017-07-14 09:09:19.285 App[23194:15302685] GoogleTagManager info: Loading container: GTM-XXX 2017-07-14 09:09:19.286…
Mac_Cain13
  • 3,611
  • 2
  • 24
  • 38
16
votes
2 answers

Android - Google tag Manager with Google Analytics and Firebase Analytics

I am working with a shopping app and would like to track so events occuring on my mobile application. My objective is to track the events using Firebase Analytics and Google Tag manager and push the same events to Google analytics. My event >…
Ajith M A
  • 3,838
  • 3
  • 32
  • 55
16
votes
3 answers

Ad Blocker w/ Segment.io

I'm considering using segment.io for several of my client-side 3rd party API needs, but I'm a little concerned about ad-blockers. My app has no ads, but I do a lot of event-tracking for product analytics, as well as error tracking. Segment.io…
Brandon
  • 7,736
  • 9
  • 47
  • 72
16
votes
5 answers

How can I tell if a web client is blocking advertisements?

What is the best way to record statistics on the number of visitors visiting my site that have set their browser to block ads?
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
16
votes
5 answers

Firing the Facebook Conversion Pixel

I'm still pretty new to Javascript, but I was wondering what would be the best way to fire the Facebook conversion pixel (below) without actually loading a "confirmation"/"Thank You" page?