google-analytics

Analytics API returns: Bad request - invalid_grant

不想你离开。 提交于 2020-01-11 09:41:45
问题 I'm using the Google Analytics API v3. I'll explain the flow of my application now I used this documentation here: https://developers.google.com/accounts/docs/OAuth2WebServer First, an OAUTH-URL is generated for the user. The URL looks like this https://accounts.google.com/o/oauth2/auth? client_id={CLIENT-ID}& redirect_uri={REDIRECT-URL}& state={CUSTOM-NUMBER}& response_type=code& access_type=offline& approval_prompt=force& scope=https://www.googleapis.com/auth/analytics When the user clicks

Analytics API returns: Bad request - invalid_grant

↘锁芯ラ 提交于 2020-01-11 09:41:09
问题 I'm using the Google Analytics API v3. I'll explain the flow of my application now I used this documentation here: https://developers.google.com/accounts/docs/OAuth2WebServer First, an OAUTH-URL is generated for the user. The URL looks like this https://accounts.google.com/o/oauth2/auth? client_id={CLIENT-ID}& redirect_uri={REDIRECT-URL}& state={CUSTOM-NUMBER}& response_type=code& access_type=offline& approval_prompt=force& scope=https://www.googleapis.com/auth/analytics When the user clicks

RegExp alternative to negative lookahead match for Google Analytics

这一生的挚爱 提交于 2020-01-10 19:35:10
问题 I'm setting up some conversion funnels on Google Analytics. One is to analyse traffic going from the main site to a secondary promotional site running on a virtual directory (on the same domain though) I should add, this is a setup form in Google Analytics, I can't using another other code (PHP, JS, C# etc) and it has to be done in one step So for example something like: /default.aspx or /directory/default.aspx or /somedirname/default.aspx [to >] /promotion/default.aspx In regular expression

Combining similar URLs in Google Analytics

依然范特西╮ 提交于 2020-01-10 05:30:05
问题 I have various articles that come in different format types (ex: pdf, html). I'd like to create a filter in my Google Analytics account that will simply take off file types at the end of the article URLs and then combine the same article URLs together, so that I would be able to view the total pageviews for that article from all of its forms. For example, I have several articles, and they may be listed like so: /site/42/5/1234.html /site/28/12/5555.pdf /site/42/5/1234 /site/42/5/1234.pdf

Google Analytics API - get Access Token without authenticate with the “consent screen”

耗尽温柔 提交于 2020-01-10 03:18:04
问题 I'm developing a website that uses Google Analytics API. I followed this tutorial -> https://developers.google.com/analytics/solutions/articles/hello-analytics-api?hl=pt-PT and everything works fine. I get the "consent screen", I give "permissions" and I'm redirected to my website, with all information. But, I want to change the things a little. I want to get all info of Google Analytics, without using the "consent screen", i.e. , using just the Google Analytics code (UA-XXXXXXXX-X) or any

Google Analytics Async: Events Tracking Callback?

我怕爱的太早我们不能终老 提交于 2020-01-10 01:03:09
问题 I wish to use event tracking to record clicks on a specific type of link to another website. I am using jQuery, and the code I currently have is: $('a.website').click(function(event) { var href = $(this).attr('href'); try { _gaq.push(['_trackEvent', 'website', 'click', href]); } catch(err) {} }); However, after seeing referrer information from the other site, I don't belive this is accurately tracking the clicks, probably because _gaq.push is asynchronous, and the request has not been

Google Analytics API: “User does not have sufficient permissions for this account.”

最后都变了- 提交于 2020-01-09 06:53:01
问题 I'm writing a Ruby app that accesses the Google Analytics API to pull down some experiment information. The app connects and authenticates using a Google Service Account via the following function: def connect ... @@client = Google::APIClient.new(:application_name => 'My Service App', :application_version => '1.0.0') key_file = Rails.root.join('config', 'privatekey.p12').to_s key_secret = 'somesecret' key = Google::APIClient::PKCS12.load_key(key_file, key_secret) asserter = Google::APIClient:

How to add Google Tag Manager firing rule for Backbone Marionette site?

一世执手 提交于 2020-01-07 07:26:18
问题 I have already built a site with backbone marionette and now I am trying to use Google Tag manager to add the tracking. But I have no idea how to configure GTM, in order to listen page change and button click event. 回答1: Clicks are up to you to set up listening events and track manually from views. Page views can be tracked like this: Backbone.history.on('route', function() { // Send Backbone.history.fragment to your page view tracker }); 回答2: There is a bit of fiddling required there. Tag

Google Custom Site Search Not Tracking in Universal Analytics

强颜欢笑 提交于 2020-01-07 07:11:14
问题 We upgraded to Universal Analytics about a year ago and since upgrading our Site Search isn't displaying the keywords within our Analytics account, or even tracking the number of times it is used. This is a problem as a marketer as I like to know what people are looking for so that I can provide them relevant content. All I can find on the Google blog is this: https://support.google.com/customsearch/answer/2715510 'At this time, Google Custom Search Engine, is not compatible with Universal

Google Custom Site Search Not Tracking in Universal Analytics

核能气质少年 提交于 2020-01-07 07:11:11
问题 We upgraded to Universal Analytics about a year ago and since upgrading our Site Search isn't displaying the keywords within our Analytics account, or even tracking the number of times it is used. This is a problem as a marketer as I like to know what people are looking for so that I can provide them relevant content. All I can find on the Google blog is this: https://support.google.com/customsearch/answer/2715510 'At this time, Google Custom Search Engine, is not compatible with Universal