google-analytics

Retrieving data from Google Analytics API using .NET/C#

南楼画角 提交于 2019-12-04 08:56:40
I'm trying to retrieve data from google analytics with a local console app. Im able to extract some data without having to log in to google account and only using the API. The problem is i'm not getting the right values and im not sure how to format the code to extract the correct values. I wan't to retrieve all visitors within a certain time frame, in this case "2012-01-01" - "2014-02-20". The real number of visitors is like 10 times larger when looking in the Google Analytics dashboard. I'm getting a number of 15000 when debugging the code. I'm displaying d.TotalResults in the console wich

Why aren't results from Google Analytics Content Experiments showing?

别来无恙 提交于 2019-12-04 08:53:54
First of all let me quickly run-down my setup for you. We have multiple domains and for that reason I use tracking code which sends the traffic to 2 different profiles at the same time. One profile tracks that specific domain, and the other is a multi-domain profile which collects data from all the domains. This is what the tracking code looks like for the pages on my domain. The UA-XXXXX-11 is the multi-domain account: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-1']); _gaq.push(['_setDomainName', 'none']); _gaq.push(['_trackPageview']); _gaq.push(['t2._setAccount', 'UA-XXXXX-11

Running Google Analytics in iframe?

瘦欲@ 提交于 2019-12-04 08:43:31
问题 Our company runs a web site (oursite.com) with affiliate partners who send us traffic. In some cases, we set up our affiliates with their own subdomain (affiliate.oursite.com), and they display selected content from our site on their site (affiliate.com) using an iframe. Example of a page on their site: <html> <head></head> <body> <iframe src="affiliate.example.com/example_page.html"> ...content... [google analytics code for affiliate.oursite.com] </iframe> [google analytics code for

Google Analytics Hits sent but not visible on Analytics console

删除回忆录丶 提交于 2019-12-04 08:41:00
I have been trying to implement Google Analytics in my app by following the steps on the official documentation by Google. After completing the coding part, I moved on to the analytics console to see if I received any hits. I waited for almost 2 days but did not see any progress. I then tried to debug the problem by using GAv4 tag in my logcat. I got the following log, 07-14 11:11:22.734 31016-31016/com.dhinchek.user I/GAv4: Google Analytics 9.0.80 is starting up. To enable debug logging on a device run: adb shell setprop log.tag.GAv4 DEBUG adb logcat -s GAv4 07-14 11:11:22.760 31016-31016/com

Google Analytics - can it collect form data?

夙愿已清 提交于 2019-12-04 08:27:39
Simple scenario: I have a signup form, with user name, password, email address, may be credit card number. At the bottom of the page, I implement the Google Analytics code. when user clicks submit, it goes to a page wihtout google analytics. question is.. can GA get the data (user naem, password..email..etc) in the first form after user input the data? Do they say anything about it in their TOS or Privacy policy? Yes. Any <script> you include in the page has complete access to alter the user's interaction with the site due to the Same Origin Policy. Google, if they were feeling Evil today,

Google Analytics Setting Up A PageView On Hash Change

梦想的初衷 提交于 2019-12-04 08:13:26
I'm trying to get a home page that has a bunch of content under Isotope to show each hash change as a pageview in Google Analytics. Originally, I was going to do this as events, but it really should be pageviews. So I setup the modified GA: (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-XXXXXXXX-X', {'allowAnchor':

Google Analytics shows real time visitors but reflects 0 visitors historically

偶尔善良 提交于 2019-12-04 08:12:36
问题 In my Google Analytics account, I can see data (like pageviews, visitors) in my real time stream, but all of the non-real time data (Standard Reporting) shows 0 pageviews, 0 visitors ever. Has anyone else had this problem or know of a possible issue/solution? Thanks in advance. 回答1: Data in Standard Reporting can take up to 24 hours to display. According to Google, site statistics update every 24 hours, but the company doesn't specifically state how long it takes to update other information

iFrames + Google Analytics + Cookies + P3P

佐手、 提交于 2019-12-04 07:56:51
问题 I am working on a website that generates traffic for partner sites. When a partner site's logo is clicked on our site we open the partner site in a page that contains our basic header and the partner site within an iframe. Earlier we were simply opening the partner site in new window. All cool so far. Most partner sites use google analytics to track the traffic that we send them and soon after we started opening sites within iframe our partners reported that google analytics does not track

Does Google Analytics have a “heartbeat” function for long running web applications?

我的梦境 提交于 2019-12-04 07:53:10
I'm making a web application that's focused around watching embedded content. I would like the application client to send a "heartbeat" type of signal to GA (Google Analytics) to keep the session going. It seems now that if the visitor watches a video for 5-10 minutes GA assumes that he has left the page and registers an action from the user as a new session. I'm making this assumption after I got a few hundred people to test the application and the GA Real-time beta registered ~100 people on the page. After a few minutes the numbers started to drop drastically, even though almost all the

Multiple properties in one universal Google Analytics code

╄→гoц情女王★ 提交于 2019-12-04 07:52:00
I am trying to embed a GA code in my website that is based on the new Universal Analytics method. What I am trying to achieve is to send data to multiple properties from one page. So I have checked the official GA documentation on the new universal GA code and specifically the section about "Working with multiple tracking objects". https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced#multipletrackers But so far without success. I have one domain for the standard website www.website.de and another one for the mobile website de.website.mobi. My GA code for my