Questions tagged [web-analytics]

Web analytics is the measurement, collection, analysis and reporting of internet data for purposes of understanding and optimizing web usage.

436 questions
212
votes
9 answers

What is the difference between google tag manager and google analytics?

I am reading about web analytic and came across GTM and GA. It seems that GA is a service provided by Google which generates reports and statistics on website traffic. As per my limited understanding in order to generate these reports we need to…
RanRag
  • 48,359
  • 38
  • 114
  • 167
65
votes
3 answers

what are the values in _ga cookie?

I am using universal analytics. universal analytics creates first party cookie _ga _ga=1.2.286403989.1366364567; 286403989 is clientId 1366364567 is timestamp what is 1 and 2 in _ga cookie?
karthick
  • 5,998
  • 12
  • 52
  • 90
51
votes
10 answers

Send HTTP request from PHP without waiting for response?

I want to have an HTTP GET request sent from PHP. Example: http://tracker.example.com?product_number=5230&price=123.52 The idea is to do server-side web-analytics: Instead of sending tracking information from JavaScript to a server, the server…
feklee
  • 7,555
  • 9
  • 54
  • 72
42
votes
4 answers

How to capture if a visitor is from a google adwords click

When a user signs up on my site I want to be able to store whether or not they came to my site via an Adwords campaign. I know google uses javascript to track conversions based on a cookie that is created on the users machine. Is there a way I can…
CeejeeB
  • 3,034
  • 4
  • 25
  • 32
27
votes
8 answers

A privacy app ineffectually tries to block tracking data for our web analytics. Should we detect the failed attempt and not track their users?

My company has a web analytics package which we use for our own and customer marketing campaign tracking. It uses a combination of server logs, JS & image web bugs, cookies, unique cached files, and ETag headers to collect and collate user…
ryandenki
  • 1,859
  • 3
  • 19
  • 30
22
votes
14 answers

When is Google Analytics not good enough?

I'm trying to determine why an enterprise wouldn't want to use Google Analytics. Here are the main reasons I've seen mentioned: Inability to track clients that have Javascript disabled. Lack of ownership of the statistics - Google owns the…
20
votes
5 answers

Alternative to google analytics that runs on ASP.NET and doesn't use IIS logs?

I need a hit counter for my various pages, but I can't use google analytics (my client isn't ready for cloud computing) and I can't use anything that requires access to the IIS logs (the server administrator owns them and doesn't want to give them…
MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
18
votes
3 answers

sendBeacon API not working temporarily due to security issue, any workaround?

I have the following code to send asynchronous HTTP request using sendBeacon method, var data = { name: 'test', uniqueId: Math.random() }; var blob = new Blob([JSON.stringify(data)], {type :…
webblover
  • 1,196
  • 2
  • 12
  • 30
16
votes
2 answers

Command ignored. Unknown target: undefined when setting Custom Dimension in Google Analytics tracking code

I am setting up a Custom Dimension in my Google Analytics Tracking Code, however I am seeing a strange error in the Chrome Console with the Google Analytics Debugger switched on. This is my code which is fired on every page. I am reporting to a…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
10
votes
4 answers

How to measure visiting time of a user

I like to measure the time a user spent on a particualr page of my webapp. First i thought about catching the onunload/onbeforeunload event in the browser and notify the server via a XMLHttpRequest that the user is leaving now like:
Chris
  • 15,429
  • 19
  • 72
  • 74
9
votes
1 answer

Understanding Google Analytics first-party cookies

I have a bit of a trouble understanding cookies used by Google Analytics. I understand that the tracking code included in the website collects certain information about page hits, the duration of the visit, cookies of the first-party domain etc. It…
QPTR
  • 1,620
  • 7
  • 26
  • 47
8
votes
1 answer

How to generate third field in _ga and _gid?

I'm investigate too much on _gid and _ga. And as i know, the definition of them: _ga: used to identify unique users and it expires after 2 years. _gid: used to identify unique users and it expires after 24 hours. Example: _ga: …
Jame H
  • 1,324
  • 4
  • 15
  • 26
8
votes
2 answers

Google Tag Manager tag is fired but event does not show up in Google Analytics Real Time Events Tab

I have created a tag which fires when the click url contains certain words. When I view the website in GTM debug mode the tag is getting fired. But the event is not getting captured on Google Analytics Real Time Events. The following is the…
ledzee
  • 301
  • 2
  • 3
  • 16
8
votes
2 answers

What does heap analytics' script code do?

So Heap Analytics tells me to paste this code in order to use their product -