google-analytics

How to remove a web site from google analytics

人盡茶涼 提交于 2019-12-20 08:05:23
问题 I am Administrator of several web sites on google analytics. Can i delete some of them? If yes, how? Many of you suggested me to remove my profile. So my doubts are: 1. I am administrator of several items. I want remove just some of them. 2. If I remove my profile I will lost all items? 回答1: Here's an updated answer, as of Sept. 2013. This took me awhile to figure out. Go to the Admin tab. In the middle column, select the web property that you want to delete from the dropdown. In the right

How to set up Google Analytics for React-Router?

爱⌒轻易说出口 提交于 2019-12-20 08:03:12
问题 I'm trying set up Google Analytics on my react site, and have come across a few packages, but none of which has the kind of set up that I have in terms of examples. Was hoping someone could shed some light on this. The package I'm looking at is, react-ga. My render method on my index.js looks like this. React.render(( <Router history={createBrowserHistory()}> <Route path="/" component={App}> <IndexRoute component={Home} onLeave={closeHeader}/> <Route path="/about" component={About} onLeave=

How to set up Google Analytics for React-Router?

人走茶凉 提交于 2019-12-20 08:03:12
问题 I'm trying set up Google Analytics on my react site, and have come across a few packages, but none of which has the kind of set up that I have in terms of examples. Was hoping someone could shed some light on this. The package I'm looking at is, react-ga. My render method on my index.js looks like this. React.render(( <Router history={createBrowserHistory()}> <Route path="/" component={App}> <IndexRoute component={Home} onLeave={closeHeader}/> <Route path="/about" component={About} onLeave=

Find a specific line of script using JS/jQuery in GTM

好久不见. 提交于 2019-12-20 07:46:02
问题 I want to use Google Tag Manager (GTM) to identify if a virtual page view has been set within the Google Analytics (GA) script (which sits in the <head> ). The GA code is NOT set via GTM. The virtual page view looks like this: ga('send', 'pageview', '/virtual/example1/'); I want GTM to search specifically on every page for just ga('send', 'pageview', '/virtual Is there a line of JS or jQuery I can use to identify this line. Things like getElementById() don't work because there is no ID.

Google analytics Ecommerce value is not updating in google analytics console

*爱你&永不变心* 提交于 2019-12-20 07:27:06
问题 I am doing the google analytics e-commerce tracking. And when I do any product shipping or any transaction.That value is not updating in my google analytics console. Here my code : static func sendGAEvent(_ categoty: String, params: [String : NSObject]){ let tracker = GAI.sharedInstance().tracker(withTrackingId: UA 234234-4) if let tracker = tracker { for (k, _) in params{ let key = k let value = params[k] if let val = value as? String { tracker.set(key, value: val) } } if let screenTitle =

Formatting a Date in BigQuery

一个人想着一个人 提交于 2019-12-20 07:10:10
问题 I am querying 365 days worth of Google Analytics data and the data is exported as: 20170726 What I want is it parsed in some form: 2017-07-26 07/26/2017 07/26/2017 I believe I should be using the FORMAT_DATETIME clause/method to be using accomplishing this, and am have it like this: SELECT FORMAT_DATETIME(%m/%d/%Y, date) date being the field in Google Analytics. 回答1: Below is for BigQuery Standard SQL and assumes your date field is of STRING type #standardSQL WITH `project.dataset.table` AS (

Javascript: Increment count by 5 for a variable inside a setInterval() function

百般思念 提交于 2019-12-20 06:27:30
问题 I'm trying to use Google Analytics events to track time spent on site more accurately (without relying on delta time between visits to another page on site). I'm using setInterval() to continuously trigger that GA even every 5 seconds. How do I properly increment seconds elapsed to send along with the GA event data? var count = 0; setInterval(function(){ // increment "count" by 5 each time setInterval is run ga('send', 'event', 'time', 'tracking', 'seconds', count); }, 5000); 回答1: var count =

Google tag manager not firing event in Firefox

偶尔善良 提交于 2019-12-20 05:50:51
问题 I integrated the Google Tag Manager for use with Google Analytics with Angulartics 2 and Angular 4. In Chrome everything works perfectly fine but in Firefox (v59.0.2) I can see, that the analytics scripts are loaded but the page navigation events never show up in the network view. Accordingly, in the analytics realtime view I can see the user interactions which come from Chrome, but nothing from Firefox. The strangest of all things is, that if I deploy my page locally and open it in Firefox,

Extract part of URL with Google tag manager

非 Y 不嫁゛ 提交于 2019-12-20 05:47:24
问题 So i have this url "https://www.site.be/pand/titel-van-het-pand-t8500-17082-4" and i have to extract the reference number at the back of the url. In this example "t8500-17082-4" with GTM to put into a custom dimension like this: var dimensionValue = 'REFERENCE_CODE_HERE'; ga('set', 'dimension1', dimensionValue); The reference codes at the eind of the url could start with either -t8... or t9... 回答1: In GTM go to "Variables" -> "NEW" -> "Custom JavaScript" and type: function(){ var myRegexp = /

Google Api get users Email Address

守給你的承諾、 提交于 2019-12-20 05:32:10
问题 I am using the Google Api PHP client to Log the user in. I want to get the Users Email address. I have the following code. Scope: $client->setScopes('https://www.googleapis.com/auth/userinfo.profile'); Code: $request = new apiHttpRequest("https://www.googleapis.com/oauth2/v2/userinfo?alt=json"); $userinfo = $client->getIo()->authenticatedRequest($request); $response = $userinfo->getResponseBody(); print "<pre>" . print_r(json_decode($response, true), true) . "</pre>"; This give me only the