google-analytics

How to change data in Google Analytics

吃可爱长大的小学妹 提交于 2019-12-20 04:20:43
问题 I have a big problem and cant find a solution. While working on a project I found some user credentials as GET- Parameters in the URL (some external programmers where sloppy). This should be removed (obviously) but I cant' find a way to change (remove) old data. It would be great to have a solution for removing all GET- Parameters from string containg a @- sign. Is there some way to access the old data in Google Analytics and modify it? It would be great if somebody can point out a solution.

Pulling Google Analytics Multi Channel Funnel data via API

只谈情不闲聊 提交于 2019-12-20 03:26:17
问题 I am trying to pull the multi-channel funnel reports from the Google Analytics API and am getting the following error: Invalid value 'mcf:source'. Values must match the following regular expression: '(ga:.+)?' Here is the code I am using, it works fine when the dimensions & metrics are from the ga:... family, but for some reason it won't let me pull mcf: reports. $analytics = new Google_Service_Analytics($client); $analytics_id = 'ga:XXXXXXXX'; $lastWeek = date('Y-m-d', strtotime('-26 day',

Google Analytics API Returning 401 On Example Code

為{幸葍}努か 提交于 2019-12-20 03:15:16
问题 I am attempting to retrieve the data from our content experiments from google analytics... I am using the following code, my creds are good, and have been censored for this post... <?php require_once 'Google/Client.php'; require_once 'Google/Service/Analytics.php'; session_start(); $client = new Google_Client(); $client->setApplicationName('Hello Analytics API Sample'); // Visit https://cloud.google.com/console to generate your // client id, client secret, and to register your redirect uri.

User ID not showing up in BigQuery

孤街醉人 提交于 2019-12-20 01:39:16
问题 What can be the reason the user_id is null in BigQuery? Data from Analytics is sent to BigQuery but the user_id is not passed along. The user_id is sent to Google Analytics but what could be the reason it is not available in BigQuery? 回答1: I am operating under the assumption that this field is intentionally held out from all Google Analytics -> BigQuery extracts based on the following: https://support.google.com/analytics/answer/6205850?hl=en#limits Of particular note, the line " The User ID

Google Analytics for iOS not dispatching events

自作多情 提交于 2019-12-20 01:06:35
问题 I'm using the latest SDK version, and the basic code to register and send a page view: [[GANTracker sharedTracker] startTrackerWithAccountID:@"UA-MY_ACCOUNT_ID-1" dispatchPeriod:10 delegate:self]; NSError *error; if (![[GANTracker sharedTracker] trackPageview:@"/firstpage" withError:&error]) { NSLog(@"tracker failed: %@",error); } However the events are not dispatched from the device or simulator. There are no errors as well. When i turn on the debug flag, i can see the following: dispatch

track a redirect page with google analytics

血红的双手。 提交于 2019-12-19 19:42:15
问题 I am trying to track a redirect page with google analytics: I have a page called redirect.php ; when I visit an url like redirect.php?c=12345678 , a php function does a query on a sql lookup table to decode the code 12345678 with a previously inserted url, then does a 301 redirect. (I'm doing a 301 redirect to avoid duplicate content.) I wish to track every single visit to redirect.php with analytics, but I can't. For example: redirect.php?c=87654321 redirects to story.php . Obviously in

Setting Google Tag Manager cookies with SameSite and Secure attributes

℡╲_俬逩灬. 提交于 2019-12-19 17:41:41
问题 Chrome is reporting the following warning: A cookie associated with a cross-site resource at https://www.googletagmanager.com/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure . You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature

Why is my Google Analytics callto event tracking code not tracking?

ε祈祈猫儿з 提交于 2019-12-19 11:27:06
问题 I am trying to track a call tel event when a button is clicked. My GA code was provided from the setup wizard. <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id={{site.google_analytics_tracking_id}}"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '{{site.google_analytics_tracking_id}}'); </script> And my button code is: <!--

Google Analytics - Single Page Site - Click Tracking

半城伤御伤魂 提交于 2019-12-19 10:32:29
问题 The site in question is http://getstefan.com Its a single page portfolio site and I have tried using jQuery to add Google Analytics click tracking to every anchor tag on the site hoping to track where people are clicking. There is a script that adds a unique ID to each anchor on the page, so I set a timeout to make sure and place the Google Analytics click tracking after the id has been assigned. Like so: jQuery(window).load(function(){ setTimeout(loadOnClick,8000) }); function loadOnClick()

How to use the Advertising ID in the Google Measurement Protocol

流过昼夜 提交于 2019-12-19 10:26:45
问题 This post replies very well to the question "How to get Advertising ID in android?"... but not how to use it. I would like to know what is the parameter to be used in the Google Measurement Protocol to transfer that advertising ID the Google endpoint and get demographic insights in my GA dashboards (on https://analytics.google.com/). Do I have to send it with the client id ("cid")? Or, to make it simple, what is the parameter used by the SDK on iOS and Android? 回答1: If anyone is looking for