google-analytics

jQuery indexOf error for xdomain.js cross-domain link script

99封情书 提交于 2019-12-12 04:57:49
问题 I'm using a script to detect cross-domain links for google analytics cross-domain tracking. The original script (xdomain.js) was provided by the great folks at Luna Metrics. Here is the script with my modifications, hat-tip to educardocereto here on StackOverflow for the suggested changes to enable setAllowAnchor in the GATC (I've commented line 40 where the console error first points to): var jQueryXD = jQuery.noConflict(); /* I added var because page loads 2 versions of jquery - not the

Not receiving Fragment in Google Analytics

断了今生、忘了曾经 提交于 2019-12-12 04:56:13
问题 I have a website like this: https://example.com/path1/path2/#!portal/1 I've inserted the script of ga and I've made the next modification in the code to receive the fragment (after hash #): ga('send', 'pageview', { 'page': location.pathname + location.search + location.hash }); But when I check the ga page, in "Behavior/Behavior Flow/Site Content/All Pages" I only have: https://example.com/path1/path2/ I'm new in ga, am I doing something wrong? 回答1: The code you have in your question will

Page sequence paths Google Analytics data in BigQuery

。_饼干妹妹 提交于 2019-12-12 04:55:37
问题 I am working in BigQuery with Google Analytics data on a topic to understand the page sequence paths. The pages are scoped to the custom dimension (hit level) with is grouping a set of pages. Furthermore, TimeStamp is included to gain more insights about the sequence. Query (legacy sql): SELECT date, STRFTIME_UTC_USEC(SEC_TO_TIMESTAMP(visitStartTime + hits.time/1000),"%Y-%m-%d %H:%M:%S") AS TimeStamp, concat(fullvisitorid,".", string(visitId)) as sessionsid, MAX(IF(hits.customDimensions.index

Real Time Reporting API with demographics

不想你离开。 提交于 2019-12-12 04:54:56
问题 i am developing a new project where I need to get demographics stats like gender and age group from each one visitor who just arrives to a webpage. I cannot find any documentation from Google about Real Time Reporting API giving demographics. I would like to ask you if this is possible to be done ? Is there any way to achieve that ? 回答1: Demographics data is not included in the Real Time API: https://developers.google.com/analytics/devguides/reporting/realtime/v3/. Please also not that Real

How can I set a custom user id upon a button click so that it tracks a person after a button click in google analytics

匆匆过客 提交于 2019-12-12 04:48:28
问题 Is there a way to start tracking just people who click a certain button on my website and see where they go? If so how would I do this? 来源: https://stackoverflow.com/questions/43920535/how-can-i-set-a-custom-user-id-upon-a-button-click-so-that-it-tracks-a-person-af

Custom Metrics not working | Google Analytics

亡梦爱人 提交于 2019-12-12 04:19:47
问题 Here is my Java file that defines my tracker : package com.example.anantchowdhary.simpletodo; import android.app.Application; import android.content.pm.ApplicationInfo; import com.google.android.gms.analytics.GoogleAnalytics; import com.google.android.gms.analytics.HitBuilders; import com.google.android.gms.analytics.Logger; import com.google.android.gms.analytics.Tracker; /** * Created by anantchowdhary on 18/09/16. */ public class MyApplication extends Application { public Tracker mTracker;

Adding ga:pagePath dimension to get page views for a particular URL using Google Analytics Reporting API v4

帅比萌擦擦* 提交于 2019-12-12 04:19:45
问题 The query explorer(https://ga-dev-tools.appspot.com/query-explorer/) specifies to add filter ga:pagePath with the URL as value to get the page views for a particular URL. For the new Reporting API, I tried adding ga:pagePath as a dimension, but it returns no results. Here is the code: $dateRange = new Google_Service_AnalyticsReporting_DateRange(); $dateRange->setStartDate("7daysAgo"); $dateRange->setEndDate("today"); // Create the Metrics object. $sessions = new Google_Service

Android webview JavaScript loadurl set variable sdk 24+ issue Google Analytics

霸气de小男生 提交于 2019-12-12 04:14:17
问题 In my App I need to set a JavaScript variable on webviews for tracking purposes that the javascript will use for keeping the native analytics tracking and web tracking synced. It currently is working when I have compiledSdkVersion and targetSdkVersion set to 23. In OnPageStarted I have this code. String javaScript = String.format("javascript: var clientId = '%s';", nativeClientId); webView.loadUrl(javaScript); When I increase the compileSdkVersion and targetSdkVersion to 24, this no longer

Cant validate tracking code for demographic reports using Google Analytics iOS SDK with IDFA

和自甴很熟 提交于 2019-12-12 04:11:21
问题 I'm trying to gather Demographics and Interest Reports for my iOS app users using the Google Analytics iOS SDK . I have enabled Demographics and Interest Reports in my Google Analytics dashboard. I also installed the GoogleIDFASupport pod (Cocoapods), and set the following code in my app delegate: #if DEBUG #else let gAnalytics = GAI.sharedInstance() gAnalytics.defaultTracker.allowIDFACollection = true #endif I have been testing the app multiple times, and running in Release scheme on my

Events sent to Google Analytics with Gabba don't have a hostname

倾然丶 夕夏残阳落幕 提交于 2019-12-12 03:56:49
问题 I'm using Gabba to send events to Google Analytics from my rails back-end. When I send events, the "hostname" is not set (in Content > Events > click on an event > set "Second dimension" to hostname). Here's a simplified version of how I send my events: gabba ||= Gabba::Gabba.new(Settings.google_analytics.ua_code, "none") gabba.identify_user(cookies[:__utma], cookies[:__utmz]) gabba.event("Submissions", "submit_for_review") My question is: where does Google Analytics pick up the hostname from