google-analytics

What is Google Analytics traffic from “Mozilla Compatible Agent”

让人想犯罪 __ 提交于 2019-12-02 02:12:13
问题 At work we recently made some changes to our URL structure (permanent redirects to new urls), redirecting various routing rules to a consistent format/page. This effectively changed 90% of our URL structure. In Google Analytics, we've seen a bump of "visitors" of nearly 30%, but our bounce rate has seen a similar spike. Where is this coming from? 回答1: Upon inspecting further, when drilling into the "network" and location of the visitors from "Mozilla Compatible Agent" in Google Analytics, the

Google Analytics API error 403: “User does not have permission to access profile”

六眼飞鱼酱① 提交于 2019-12-02 01:36:38
I've been trying to learn how to use the Google Analytics API to get site traffic data. I keep running into an error saying that the user does not have permission to access the profile. I added the email address from the service account to the users and tried making it both a user with access to all profiles and an administrator and neither worked. This is my code, which I got from here : string scope = AnalyticsService.Scopes.AnalyticsReadonly.GetStringValue(); string clientId = "xxxxxxxx@developer.gserviceaccount.com"; string keyFile = @"C:\Users\emorris\Downloads\xxxxxxxxxx-privatekey.p12";

Google Analytics Event Tracking - Minimal Interval between the events

心已入冬 提交于 2019-12-02 01:30:32
问题 I want to track multiple events using GA _trackEvent method across multiple domains. Because of the nature of the report I want to generate, I must do something like this: for (var i=0; var < books.length; i++) { //showing values for current books[i] _gaq.push(['_trackEvent', 'Books Displayed', 'Fantasy', 'Lord of The Rings']); } So, when my books list is populated I want to send appropriate GA event. It is important that I send each item separately so I can drill-down on Event Dashboard to

Google Analytics throws 403 error

对着背影说爱祢 提交于 2019-12-02 01:14:40
I am attempting to download metric data from Google Analytics using C# and am performing user authentication with OAuth 2.0. I'm using the Installed Application authorisation flow, which requires logging into Google and copy-and-pasting a code into the application. I'm following the code taken from google-api-dotnet-client : private void DownloadData() { Service = new AnalyticsService(new BaseClientService.Initializer() { Authenticator = CreateAuthenticator(), }); var request = service.Data.Ga.Get(AccountID, StartDate, EndDate, Metrics); request.Dimensions = Dimensions; request.StartIndex = 1;

Google Analytics for Shiny Dashboard App

时光总嘲笑我的痴心妄想 提交于 2019-12-02 00:49:47
I have a well sorted out R shiny (shinydashboard) app that runs on a server. I want to be able to track its usage and know that google analytics is a good solution for this. But I have run into an issue setting it up. I have tried following the directions described here https://shiny.rstudio.com/articles/google-analytics.html They suggest the creation of a google-analytics.js script containing the global site tag from google: <!-- Global Site Tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-4XXXXX5-2"> </script> <script> window.dataLayer =

Using Google Analytics to track the same session in client javascript and server side tracking calls?

拈花ヽ惹草 提交于 2019-12-02 00:31:17
问题 We are implementing a 3rd party payment system into our site (Barclays CPI). We want to use Google Analytics to track where paying customers came from eg; keywords, email campaigns etc. However, the Barclays CPI returns the payment authorisation result via a server-to-server http request, not a normal web page with google analytics code. This breaks the analytics chain, we lose the client cookie that identifies the visitor. On the Barclays CPI confirmation screen the user can press a Continue

Firebase - log events from server side cloud functions [duplicate]

二次信任 提交于 2019-12-02 00:19:47
问题 This question already has an answer here : Firebase analytics from remote REST API? (1 answer) Closed last year . We've developed a mobile app using Firebase and we want to add analytics. We want to add to the analytics several system events that are triggered from existing cloud functions. I do not see any way to log an event from a cloud function and the only way I see is from the client side. Is there a way we can log event from the server side ? 回答1: There is no server side logging for

Using Google Analytics to track the same session in client javascript and server side tracking calls?

无人久伴 提交于 2019-12-01 23:08:07
We are implementing a 3rd party payment system into our site (Barclays CPI). We want to use Google Analytics to track where paying customers came from eg; keywords, email campaigns etc. However, the Barclays CPI returns the payment authorisation result via a server-to-server http request, not a normal web page with google analytics code. This breaks the analytics chain, we lose the client cookie that identifies the visitor. On the Barclays CPI confirmation screen the user can press a Continue button to return to our site, where we could put javascript tracking code in, but pressing the

Analytics API returns: Bad request - invalid_grant

丶灬走出姿态 提交于 2019-12-01 22:37:37
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 on the link he authenticates. Afterwards, with the code, I'm getting the access and refresh token. I'm

Google Analytics Event Tracking - Minimal Interval between the events

人走茶凉 提交于 2019-12-01 22:24:36
I want to track multiple events using GA _trackEvent method across multiple domains. Because of the nature of the report I want to generate, I must do something like this: for (var i=0; var < books.length; i++) { //showing values for current books[i] _gaq.push(['_trackEvent', 'Books Displayed', 'Fantasy', 'Lord of The Rings']); } So, when my books list is populated I want to send appropriate GA event. It is important that I send each item separately so I can drill-down on Event Dashboard to preview all items in 'Fantasy' category and so on. Note, books list is never longer than about 10 items.