google-analytics

Google.Apis.Requests.RequestError for AdSense/Publisher related metrics

允我心安 提交于 2019-12-11 00:18:01
问题 Since yesterday, we have trouble getting data from the Analytics API for AdSense related metrics ( ga:adsensePageImpressions, ga:adsenseAdsViewed, ga:adsenseCoverage etc. ). Other metric like ga:sessions are still working. Is this some permission problem? From the main account, I can log into Analytics, and I do see current AdSense (Publisher) data. .NET, Google.Apis.Analytics.V3 1.20.0.642 (up to date), Google.Apis.AnalyticsReporting.v4 1.20.0.698. Tried with V3 and V4, same error. We are

Firing 2 google analytics events with an outbound link

让人想犯罪 __ 提交于 2019-12-11 00:04:37
问题 I have outbound links like this in my html: <a href="http://www.example.com" class="gaLink1" target="_blank" onCLick="ga_track_link('action', '123', 'abcde', 'fghij')"> <img src="http://www.example.com/image.jpg" alt="image name" height="180" style="max-width:153px;max-height:150px;" /> </a> So, When there is a click on this image, the link www.example.com should open in a new tab, since there is target="_blank". Also, the onCLick event will call the function ga_track_link which is defined as

Google Analytics - Upgrading to Async Code

你说的曾经没有我的故事 提交于 2019-12-10 23:57:30
问题 We have an older site which still uses the ancient "gat" Analytics tracking code (pre asynchronous); we would like to upgrade it to the current "gaq" asynchronous code. If anyone has done the same switch, a couple questions ... 1) Once we make the switch, will the user cookies carry over from the old code? Or will Analytics now "forget" visitors that have already visited our site and consider everyone that gets the updated asynchronous code snippet a brand new visitor? 2) The site is pretty

Is it possible to post windows form Hit info to Google analytics(track id) using Gdata API C#

假如想象 提交于 2019-12-10 23:52:57
问题 May be this is a very dumb question to many. I have created a Google analytics a/c with a valid track id. Now I have put the javascript code provided by Google analytics to my *.aspx files and could see my Website hit information in Google analytics site. Now can I do same from a Windows form application? I tried simple Http post to GA site but failed. I referred following link: https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#overview Then I came across GData

Where to obtain Google Analytics API access_token?

╄→尐↘猪︶ㄣ 提交于 2019-12-10 23:41:30
问题 According to Google Analytics API Reference OAuth as well as an Access Token can be used to access the stats of an page. Using OAuth is pretty complicated or at least it seems to me like that in php. However according to the docs I should also be able to use access_code as an get parameter. I tried several ways to get the access_token from the google developer console, but neither is working always returning the following error: {"error":{"errors":[{"domain":"global","reason":"required",

GoogleAnalytics android getActivity().getApplication() cannot cast to AnalyticsApplication

為{幸葍}努か 提交于 2019-12-10 22:22:59
问题 this the code where I got the error @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); // Obtain the shared Tracker instance. AnalyticsApplication application = (AnalyticsApplication) getActivity().getApplication(); mTracker = application.getDefaultTracker(); } this is my AnalyticsApplication class package auc.games2.Analytics; /* * Copyright Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version

google-analytic measurement endpoint is ignoring x-forwarded-for header! any solution?

冷暖自知 提交于 2019-12-10 21:37:44
问题 Recently, I began playing with GA Measurement protocol, it has huge potential for custom-made apps, especially for event tracking of webapps. The problem I'm facing is; GA is always using the requester's IP as the source IP! even GA docs says; "IP Address – Is implicitly sent in the HTTP request and is used to compute all the geo / network dimensions in Google Analytics." That's a big problem! Why? As in my case; I'm proxying different tracking calls thru one backend hosted in Heroku. And

Onclick Event Tracking Google Analytics Wordpress Visual Composer Plugin

与世无争的帅哥 提交于 2019-12-10 21:35:19
问题 I'd like to add this code for GA event tracking: onclick="ga('send', 'event', { eventCategory: 'Contact', eventAction: 'ContactRequest'});" on this Call To Action <div class="vc_btn3-container vc_btn3-center vc_custom_1477135392137"><a class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-rounded vc_btn3-style-modern vc_btn3-block vc_btn3-color-grey" href="http://davidetaraborrelli.it/contatti/" title="" target="_blank">CONTATTAMI</a></div> However, I don't know how to do it in Wordpress,

Google Analytics iOS SDK “1 second sessions” (possibly background sessions?)

℡╲_俬逩灬. 提交于 2019-12-10 21:13:56
问题 Google Analytics (using iOS SDK version 3.14 and it's built in sessions tracking) is reporting a significant percentage of app sessions as 1 second. Maybe users are launching an app to view a page and (effectively) then instantly leaving the app, but that seems unlikely (that it should continue as the top use case. You think such users would stop using or uninstall.) Initially I suspected this was related to "background fetch" but when I look at a prior incarnation of the application (that

String capture with new Android Analytics

流过昼夜 提交于 2019-12-10 21:06:14
问题 Im new to Google Analytics. I already have setup an account and I can capture basic data like pageviews. The thing I would like to see in google analytics is Strings that people search for in my app. Is this possible? I cannot do it through trackEvent since it only takes integer as last parameter. Custom vars seem to be predefined. Any hints or direction would be appreciated 回答1: I think there are two basic ways to track search data, as events or pageviews. First, you could put the search