google-analytics

Why does Google Analytics use __utm.gif?

ε祈祈猫儿з 提交于 2019-12-03 05:51:36
问题 Just trying to understand why they didn't use a REST API. 回答1: In REST, clients initiate requests to servers for resources; servers process those requests and return appropriate responses. The utm.gif is not involved in server-to-client data transfer, but instead it's involved in moving data in the other direction. Of course REST has HTTP methods for the client to communicate with servers (GET and POST) and indeed, Google Analytics directs the client's browser to send all analytics data to

Async Google Analytics [Javascript Golf]

心已入冬 提交于 2019-12-03 05:51:16
问题 Unfortunately, this may not be a valid Code-Golf question as it is likely Javascript only; however, since this is likely to be the only useful-in-the-real-world code-golf contest I'm going to go ahead and post it. The Google Analytics Asyncronous Tracking snippet is used by many websites. The script goes a little something like this: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document

Analytics.js: What does 'auto' argument do on tracking object creation?

坚强是说给别人听的谎言 提交于 2019-12-03 05:49:25
I've just switched to the new Google Analytics Universal Analytics platform, using the new javascript API - Analytics.js In the first example code snippet from the docs a tracking object is created, then a pageview of the current page is logged using that tracking object. ga('create', 'UA-XXXX-Y', 'auto'); ga('send', 'pageview'); Notice the 'auto' argument - I can't work out what that's there for . I had a look at the method reference and it seems that the relevant parameter is optional and should contain configuration key/value pairs. Examples can be found in the field reference . If the

Display Google Analytics data on my web site?

五迷三道 提交于 2019-12-03 05:41:30
问题 I'm trying to figure out a way to display data collected from Google Analytics on my web site. I'm using NopCommerce, and I want to display this information/statistics in a view in the Admin Section. There might be many ways to achieve this, and after searching the web I found some examples using JavaScript, but I couldn't find a good tutorial for this. I have also looked into integrating Google Analytics with C#, and I found this example: http://biasecurities.com/2012/02/using-the-google

Can’t select a different Google Analytics account when generating configuration file for Google Analytics

本小妞迷上赌 提交于 2019-12-03 05:40:04
问题 I have two Google Analytics accounts A and B, each with their own properties which I am attempting to generate configuration files for (more specifically, google-services.json files) in order to use Google Analytics with my Android app. I'm using the Enable Google Services for your app wizard. When you reach the Choose and configure services step, it should allow you to choose both a Google Analytics account and an Analytics Property from their associated selection boxes every time you run

What happens with iphone google analytics calls when there's no internet connection?

a 夏天 提交于 2019-12-03 05:22:51
Hey Fellow Developers! I'm doing a little research about Analytics products for iphone apps. I came across google analytics which seems pretty good. Somehow I'm not finding lot's of documentation about it. Basically my concern is: What happens to a trackPageview or event tracking call when there's no Internet connection? Are these method calls persisted for future dispatch when there's a connection available or do they generate an error and that's it? Thank you in advance for your help! The GA SDK has batching possibility, which is als recommended to use. "To save on connection and battery

What is the best way to track facebook comment widget in google analytics?

萝らか妹 提交于 2019-12-03 05:17:54
问题 I would like to apply event tracking in google analytics to facebook comments made on our website via the facebook social plugin (iframe widget), but I can't seem to find a way to attach the event. I would prefer if the solution was jquery based, but honostly I'm open to most any suggestion. 回答1: You can use the Facebook JS SDK Event Subscriptions, specifically comment.create event callback. FB.Event.subscribe('comment.create', function(response){ _gaq.push(["_trackEvent", "Facebook Comment",

Accurately reporting referrer from payments made with PayPal in Google Analytics

二次信任 提交于 2019-12-03 05:16:05
问题 In our Google Analytics ecommerce PayPal is getting credit as the referrer. I've found many articles outlining use on the utmnooveride to ensure PayPal transactions pass the data so that the original referrer gets credit. We use PayPal to process our credit cards as well as allow people to pay with their PayPal account. When a visitor pays with credit card they never leave our site, so we are only seeing this inaccuracy when a user leaves our site to pay with their PayPal account. More

Test Google Analytics on Localhost

橙三吉。 提交于 2019-12-03 04:55:26
I need to test some custom firing events using Google Analytics. I'd like to test in a local environment. I've set up my test site using apache with server name: my-ga-test.localhost/ According to Can you test google analytics on a localhost address? and Google Analytics docs , I'm able to adjust my GA code to use: ga('create', 'UA-XXXX-Y', { 'cookieDomain': 'none' }); I tried to set up a new account to get a tracking ID for this site, but I'm getting the following error: URL ends with an invalid top-level domain name How do I generate the code using localhost domain so I can alter the

Tracking Individual Users with Google Analytics Custom Variables

会有一股神秘感。 提交于 2019-12-03 04:54:08
问题 I've been working on a support center for my company and we need to track individual users when they login. If possible we would like to track details as well such as pages visited and time spent on the site as well. I'm able to track how many people login to the site using a custom variable, but I am unable to track individual users. Here is the code I've been using to try to grab the individual user id: $(document).ready( function() { var welcomeEmail = document.getElementById('welcome