google-analytics

Android referral tracking does not work

南笙酒味 提交于 2019-12-03 09:27:06
问题 I am attempting to get Android Referral tracking to work. I am following the only documentation I have found here http://code.google.com/mobile/analytics/docs/android/#referrals I have the following in my android manifest file <receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> <receiver android:name="com.package.Receiver" android

Google Analytics says “Tracking Not Installed” but I see it working?

纵饮孤独 提交于 2019-12-03 09:24:27
My site www.katievb.com is a blog hosted by blogspot.com. I've created a Google Analytics account and registered a "Universal Analytics" property. It provided a unique UA ID and some code to embed in the HTML that looks similar to this: <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-XXXXXXXX-X', 'katievb

Google Analytics Universal Event Tracking

和自甴很熟 提交于 2019-12-03 09:10:34
We are using the new Google Analytics Universal code, but our event tracking code does not seam to be working. Any ideas on what is wrong? Thank you. <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', 'mywebsite.com'); ga('send', 'pageview'); </script> <a href="http://www.outbound.com" onclick="ga(

Send event to Google Analytics using API server sided

杀马特。学长 韩版系。学妹 提交于 2019-12-03 09:06:21
问题 I have a website where I send events to Google Analytics using javascript function: ga('send', 'event', 'showphone', 'feedback', 'result'); However I also need to send some similar events from server-side using PHP. I tried this quick start tutorial: Hello Analytics API: PHP quickstart for service accounts and reporting works like a charm, but I have no idea how to send event. Could you please show me step-by-step what I should code to send exactly same event like mentioned above. 回答1: Hello

Google Analytics API in C# -Execution of request failed: https://www.google.com/analytics/feeds/accounts/default

浪尽此生 提交于 2019-12-03 09:00:58
i want to access Google analytic data and i got samples from Google data API SDK. but these coding does not working and throws exception Execution of request failed: https://www.google.com/analytics/feeds/accounts/default so i found the reason for this is Google updated it's to v3.0. i searched updated coding for the C#, but i couldn't find solution for this. i have same problem as this, but with C#. Exception thrown when using GData .NET Analytics API i tried coding with doing changes as follows as it says in Google developer - https://developers.google.com/analytics/resources/articles/gdata

Javascript Overlay/Dialog Tracking with Google Analytics

旧城冷巷雨未停 提交于 2019-12-03 08:47:26
Using javascript (jQuery to be precise in my case) I need to enable a dialog box to be tracked in Google Analytics as a unique page view, despite it being only a modal overlay. For context purposes I dont want the user leaving the page and the dialog content is loaded in via an ajax call. Yahel Assuming you're using Google Analytics new async code, all you need to do is place this code in the JavaScript block where you render your modal dialog. _gaq.push(['_trackPageview', '/fake/modal/path/here']); If you're using the old code, pageTracker._trackPageview('/fake/modal/path/here'); The basic

Google Universal Analytics custom dimensions and trackpageview

蓝咒 提交于 2019-12-03 08:42:12
I'm trying to migrate from Google old Analytics to Universal Analytics. I have code below and from universal - developers guide I couldn't find solution. Inside my analytics code I had these lines. Part 1: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-123456-1']); _gaq.push(['_trackPageview','/tools/one'); _gaq.push(['_setCustomVar', 1, 'name', 'michael', 1]); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s =

Google analytics.js and Content Security Policy

梦想与她 提交于 2019-12-03 08:27:00
问题 I have a web app using the default html5boilerplate Content Security Policy. However, we have the new Google analytics.js snippet on the page, which is being blocked by the CSP. I've been trying to find an example of a CSP and JS include structure that will allow Google analytics.js, but haven't had any luck. The closest SO post is Google Analytics and Content-Security-Policy header, but this is using the older ga.js. Unfortunately the Google Docs don't mention CSP. I've reached the following

Prevent Google analytics from gathering data in development environment, ASP.NET MVC

大城市里の小女人 提交于 2019-12-03 08:16:49
I have an ASP.NET MVC (3) app and I've set Google analytics up. The problem is that every time I run from Visual Studio the Google script starts gathering data, which of course, skews the real results. What's the best way to prevent Google Analytics from gathering data on the development environment other that using ugly #if compiler directives on every page I want analysed? What would be a best practice? Thanks. The best-practice advised by Google is to use a filter to remove the data from your GA profiles. This can either be done by filtering based on the IP address of development machines

How to export complete Google Analytics historical data? [closed]

假装没事ソ 提交于 2019-12-03 08:15:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . I was given a few days to export all the historical data from a Google Analytics account before access will be shutoff. Important to note that you cannot migrate historical data (at the time of this post) from one Google Analytics account to another. I would specifically like to program this for Excel or better