google-analytics

Google analytics api - get page views by URL

☆樱花仙子☆ 提交于 2019-12-24 16:34:00
问题 I was able to run de "hello" app from google analytics api: function getFirstProfileId($analytics) { // Get the user's first view (profile) ID. // Get the list of accounts for the authorized user. $accounts = $analytics->management_accounts->listManagementAccounts(); if (count($accounts->getItems()) > 0) { $items = $accounts->getItems(); $firstAccountId = $items[0]->getId(); // Get the list of properties for the authorized user. $properties = $analytics->management_webproperties -

Google Analytics Mobile doesn't count

一个人想着一个人 提交于 2019-12-24 15:25:33
问题 Got a strange thing going on, I recently started counting visitors of my app, it was working fine. Ater a while I saw that on Google Analytics, you can point out if it is a website or mobile. I made a new profile with 'mobile' selected, replaced the code in my app, but since then, it isn't counting anymore.. I waited more then 24 hours. I use mGATracker = GoogleAnalyticsTracker.getInstance(); mGATracker.startNewSession("UA-xxxxxxxx-x", this); mGATracker.trackPageView("/About"); And dispatch

Unity Google Analytics v4 works for Editor and iOS, not for Android

£可爱£侵袭症+ 提交于 2019-12-24 15:11:53
问题 I set up Google Analytics v4 for Unity using the provided plugin. It works fine for both editor and on iOS devices and the logged events and so on are received online. However on android I get a series of exceptions at runtime, even though I set up everything like it should (edited the manifest and imported the plugin) and encounter no issues when building. First that the google analytics class can not be found, which seems to be comon: UnityEngine.AndroidJavaException: java.lang

Google Analytics Event Tracking: button listener does not work

一个人想着一个人 提交于 2019-12-24 13:11:58
问题 I need to add an event handler for GA event tracking to a button. I read the documentation thoroughly and spent an hour googling, but I didn't make it work. The session tracking works (I see myself in realtime analytics), but the event tracking doesn't work. This is my code: <html> <head> <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

Android referral removed in analytics v3?

风格不统一 提交于 2019-12-24 13:06:13
问题 I've spent the last two days trying to find a workaround for this. I need to pre-config my app depending on the referral and since google play is broadcasting an Install Referrer intent when an app is installed, I created my own receiver for this task. The code for the manifest declaration and the Receiver is: Manifest declaration: <receiver android:name="my.package.CustomReceiver" android:exported="true" > <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> <

Google Analytics Character encoding of __utm cookies

荒凉一梦 提交于 2019-12-24 11:19:59
问题 I'm trying to figure out what encoding GA uses when it saves cookies. For example, I can use non-western characters when setting the utm_source parameter and they show up fine in the GA reports. However, if I look at the __utmz cookie, it does not match the value for utm_source parameter, instead is seems to be encoded somehow, I know there is URL encoding, but this is something different. Example: 1) Visit www.example.com?utm_source=ХЦЧШЩЬЫЪЭЮЯ 2) View cookies. The __utmz cookie saves

Google Analytics - IP Address as Website URL

北城以北 提交于 2019-12-24 11:13:04
问题 Anybody ever successfully used an IP address as the website URL for a profile in Google Analytics? See my post in the Google Analytics Forum also: http://www.google.com/support/forum/p/Google+Analytics/thread?tid=4551af07a8fce6ac&hl=en 回答1: You can track the data in Google by adding the ip address along with the port number as website url. 来源: https://stackoverflow.com/questions/3407449/google-analytics-ip-address-as-website-url

Google Analytics Tag for Dev vs. Prod

强颜欢笑 提交于 2019-12-24 11:06:09
问题 I run a standard google analytics tracking code (ga.js asynch version) on a website. I am wondering if there is a line of js I can add to the tracking code so that I can segregate dev/prod data? e.g. when I pull in the codebase to do dev work, I can set the tag to DEV. When releasing back to production, DEV tag gets replaced with PROD tag. Is this even possible and if so, how do i implement it? One method I thought of is just to create a new "property" (which would generate a new ua number,

Integrating Google Mobile Analytics with MVVMCross

眉间皱痕 提交于 2019-12-24 10:49:00
问题 The new Google Analytics SDK introduces a new subclass to UIViewController from which you have to inherit: GAITrackedViewController . More info here: https://developers.google.com/analytics/devguides/collection/ios/v2/screens This obviously clashes with MvxBindingTouchViewController , as you can only inherit from one class in C#. What's the recommended way in getting this working? 回答1: MvvmCross's MvxTouchViewController's is special... MvvmCross's MvxBindingTouchViewController is even more

How to check from php/html if website is up?

﹥>﹥吖頭↗ 提交于 2019-12-24 10:42:09
问题 I want the users of my website to check if any other website (http and/or https) is up. There are sites out there that use google analytics for that (if I understood it right). But I don't understand how they do it. Question 1) How do I use google-analytics on my website to check if some other site is up? Question 2 ) How do I do it by myself? Using php or javascript? I wonder if google-analytics might be more reliable in terms if they use multiple server locations to check whether the site