google-analytics

Add Google Analytics to Android app without Firebase

一世执手 提交于 2019-12-18 13:15:47
问题 Has anyone actually tried adding Google Analytics to Android app without using Firebase recently? I can't seem to find the way to get the GA Tracking ID. I actually managed to do it last year by creating the project in Google Developer Console first before adding GA. Now GA doesn't even give the option of importing mobile app project without using Firebase. Anyone with similar experience? The reason I am asking for this is because adding GA with or without Firebase shows different console

Android Using Firebase Analytics along with Google Analytics

回眸只為那壹抹淺笑 提交于 2019-12-18 12:54:39
问题 I'd love to know how I can use Firebase Analytics (FA) and Google Analytics (GA) simultaneously as FA doesn't provide real-time data and my apps already integrated with GA since the beginning. I'd like to continue using GA since all my analytic data started there when I first launched my apps. Meanwhile, I'd like to have my apps have FA integrated to get more info. I followed Using Firebase Analytics and Google Analytics together and setup Google Tag Manager. It doesn't seem to be working for

Google analytics: Tracking Not Installed

不羁的心 提交于 2019-12-18 12:54:11
问题 I am trying to setup Google Analytics on my site, however it will not detect that it is being tracked. I have placed the code they provided in my header.php right before the </head> as recommended: <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

Integrating Google Analytics into GWT application

放肆的年华 提交于 2019-12-18 12:22:03
问题 This should be totally simple but I can't get it working no matter what I try. I'm trying to use Google Analytics with GWT application. From what I understood, there are two way to do it: First is synchronous, by inserting tracking code at the end of <head> section HTML page and then calling this method: public static native void recordAnalyticsHit(String pageName) /*-{ pageTracker._trackPageview(pageName); }-*/; Second is asynchronous, by inserting tracking code just after <body> tag and

google analytics api query a specific url

廉价感情. 提交于 2019-12-18 11:56:28
问题 I am accessing the Google analytics API with PHP which works on my end but I'd love to filter the results a bit further. Right now I am using: $OBJresult = $analytics -> data_ga -> get( 'ga:' . $profilID, '2012-01-01', date( "Y-m-d" ), 'ga:visits', array( 'dimensions' => 'ga:pagePath', 'metrics' => 'ga:pageviews', 'sort' => '-ga:pageviews', 'max-results' => '25' ) ); Currently this returns a set of 25 pages sorted by its hits. I would love to restrict the results to a specific path within the

How can you choose variations for several content experiments?

会有一股神秘感。 提交于 2019-12-18 11:55:36
问题 I'm using the Javascript API for Google Analytics Content Experiments and it seems like you have two choices: Run one experiment at a time and have Google assign the variation, which you can get using chooseVariation() , or Run several experiments at a time and assign the variation yourself using setChosenVariation() (1) lets Google control the number of users assigned to each variation, which I need, but I have several experiments. This seems pretty basic. What am I missing? 回答1: I don't

Google Analytics Event Tracking onClick Code

喜夏-厌秋 提交于 2019-12-18 11:46:43
问题 I'm trying to set up event tracking on my web site but can't get it working correctly. My tracking code: <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-420xxxxxxx', 'mywebsite.org'); ga('send', 'pageview')

How does Google Analytics for Android handle offline app usage?

扶醉桌前 提交于 2019-12-18 11:45:50
问题 I'm currently implementing Google Analytics into my app. The documentation says nothing about how tracking is handled when the user has no internet connection. Does the data get tossed or is it stored somewhere for later upload? 回答1: It's not explicitly stated in the SDK documentation, as far as I can tell, but it implies that it stores the hits and waits until the user is online again to send them. From the Android SDK Documentation: Known Issues - Possible inaccurate timestamps: timestamps

Content Script tracking with Google Analytics

大兔子大兔子 提交于 2019-12-18 11:29:08
问题 I am working on a Google Chrome Extension that modifies certain pages with a content script. In order to understand when and where those changes are applied we were looking into google analytics since we use it for other web properties already. We include the ga.js library via the manifest file, and trigger _trackPageview with a synchronous page call when we apply a change to a page. var pageTracker = _gat._getTracker("UA-our-UA"); pageTracker._setDomainName("none"); pageTracker.

How does the embedded Google Analytics Javascript work?

大城市里の小女人 提交于 2019-12-18 11:12:03
问题 I was just wondering the general idea how the embedded Google Analytics Javascript works? Example, how do they calculate how long you been visiting the site? Does the embedded Javascript calls home every time someone visit a site?... I just need to know the big picture Thanks. Edit: how does the following work? <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost +