google-analytics

Error installing google analytics on iOS app

瘦欲@ 提交于 2019-12-06 09:33:37
I was trying to integrate google analytics into my project, and I was surprised that it requires cocoapods to install google analytics now. I followed the documentation here: https://developers.google.com/analytics/devguides/collection/ios/v3/?hl=en I called pod init on terminal, and then I've edited by podfile to # Uncomment this line to define a global platform for your project # platform :ios, '6.0' target 'Unity-iPhone' do pod 'Google/Analytics', '~> 1.0.0' end target 'Unity-iPhone Tests' do end and I get the following error on terminal when I call pod install. Updating local specs

change view ga_realtime_sessions_view_YYYYMMDD to standard sql

*爱你&永不变心* 提交于 2019-12-06 09:27:34
I activated the streaming export from Google Analytics to BigQuery about a year ago but I'm having troubles changing the SQL syntax of the real-time view (ga_realtime_sessions_view_YYYYMMDD) to STANDARD SQL. How can I change the SQL of this view? The view is defined as: SELECT * FROM [XXX.ga_realtime_sessions_20180424] where exportKey in ( SELECT exportKey FROM ( SELECT exportKey, exportTimeUsec, MAX(exportTimeUsec) OVER (PARTITION BY visitKey) AS maxexportTimeUsec FROM [XXX.ga_realtime_sessions_20180424] ) WHERE exportTimeUsec >= maxexportTimeUsec ); You can create a standard SQL view of this

Uncaught TypeError: Cannot read property 'sub' of null in Google Analytics API

Deadly 提交于 2019-12-06 08:57:38
i created one application which uses google analytics api ie https://apis.google.com/js/client.js?onload=load and i was using nicely but suddenly now one error is coming Uncaught TypeError: Cannot read property 'sub' of null after popup comes for username and password, it was working fine before but now it is showing this error. can anyone please help me out with this. Thanks, Mayank This is a bug in the Google API Javascript Client, and my production site is being affected as well. A bug report was filed at https://code.google.com/p/google-api-javascript-client/issues/detail?id=110 , and it

Issues in Google Tag Manager plugin in Cordova

╄→尐↘猪︶ㄣ 提交于 2019-12-06 08:49:25
问题 Am trying to use GTM plugin for Cordova - https://github.com/kraihn/cordova-plugin-tag-manager. Am facing issues on the iOS version of my cordova app. I get warnings that the binary resource file and plist file are not found. GoogleTagManager warning: Cannot find binary resource file 'GTM-XXXXXX'. GoogleTagManager warning: Cannot find resource file 'GTM-XXXXXX.plist' GoogleTagManager verbose: loading default container from GTM-XXXXXX.json I downloaded the json file from GTM account - Admin,

Catching UTM Params in Rails

折月煮酒 提交于 2019-12-06 08:37:17
问题 I am trying to catch the UTM Params in the URL to add Source, Campaign etc to a User Account. Sadly, I can't seem to figure out how to catch those params. As of know I following the Blog Article http://www.matthuggins.com/articles/tracking-new-user-registrations-by-source-search-terms So, in my Application Controller I have following: ApplicationController.class_eval do before_filter :capture_referrer protected def capture_referrer session[:referrer] = request.env['HTTP_REFERER'] if !session[

GTM data layer eventCallback function

雨燕双飞 提交于 2019-12-06 08:23:36
So i have Ecommerce code setup in GTM data layer, but after that is sent to Analytics i want the page to be redirected so i know i should be using eventCallback but it is not working for some reason. <body> <script> dataLayer = [{ 'transactionId': '56833', 'transactionAffiliation': 'TestName', 'transactionTotal': 1540.00, 'transactionTax': 385, 'transactionShipping': 0, 'transactionProducts': [{ 'sku': 'FFSS44HH', 'name': 'test', 'category': 'TestCategory', 'price': 1540.00, 'quantity': 2 }], 'eventCallback': function() { document.location.href='https://www.paypal.com/something'; } }]; <

How to programmatically set ga_trackingId property?

断了今生、忘了曾经 提交于 2019-12-06 08:07:06
问题 I have a single app, but depending of user's choice, it will be monitored totally separated in google analytics, so I NEED to set "ga_trackingId" for EasyTracker programmatically. I've tried EasyTracker.getTracker().setAppId(id) with no luck. 回答1: For changing the id for the EasyTracker, do this: onStart() EasyTracker.getInstance(this).set(Fields.TRACKING_ID, "<your_ga_id"); EasyTracker.getInstance(this).activityStart(this); onStop() EasyTracker.getInstance(this).activityStop(this); 回答2: The

How to get “Seconds Played” and “Percentage Played” events from JW Player 6 in GA

北城余情 提交于 2019-12-06 08:03:54
I see the new JW Player 6 Enterprise has lost the capability to report Seconds Played and Percentage Played as Google Analytics Events. Has anyone developed a method to produce something like this? I imagine the JW Player API and some JavaScript could support these events. [We made great use of the Seconds Played and Percentage Played capabilities in JW Player 5, and I'm sad to see it go. If anyone from JWPlayer is listening: it would be great to have those events back!] I think you could recreate the seconds played tracking on your own with the onTime callback. Try this: var currentDuration =

How to exclude self-traffic in google code from google analytics reports?

▼魔方 西西 提交于 2019-12-06 07:55:08
问题 I'm currently using Google Analytics to get reports for my project hosted on code.google.com. I'd like to exclude the traffic generated by myself. I know that Google Analytics basically offers two way to filter my traffic: by IP address and by cookies. The ISP gives me a dynamic IP address so I can't filter by IP address. I should then use the cookies method. I read I should add some javascript code to my site to set the cookie. My question is: how can I add into the wiki pages of google code

Show Google Analytics dashboard on my site

拜拜、爱过 提交于 2019-12-06 07:09:39
问题 I have an ASP.NET website set up, and I'm using Google Analytics for page tracking. The only thing I don't like is that I have to go away from my site (to the Google Analytics site) to see the report. Is there any way to show the Google Analytics data on my own site with all the AJAX that they have? 回答1: From my understanding, GoogleAnalytics doesn't have an API that supports this yet. It's something many would love, and hopefully will be available in the future. For now, just open a tab and