google-analytics

“Track Event” is seen in Console (GA Debug) but network request isn't seen in Network Panel

馋奶兔 提交于 2019-12-04 21:49:17
I am confused with the track event issue. //_gaq.push(['_trackEvent', 'Cat', 'Act', 'Label', 1.1]); _gaq.push(['_trackPageview', '/new']); This is working, I can see this in GA Debugger: _gaq.push processing "_trackPageview" for args: "[]": ga_debug.js:18 Track Pageview ga_debug.js:18 Tracking beacon sent! And I can see the __utm.gif request in Network Panel. But when I changed the code to : _gaq.push(['_trackEvent', 'Cat', 'Act', 'Label', 1.1]); //_gaq.push(['_trackPageview', '/new']); Here is the output in console from GA debugger: _gaq.push processing "_trackEvent" for args: "[Cat,Act,Label

Expand array-of-structs into columns in PySpark

江枫思渺然 提交于 2019-12-04 21:40:16
I have a Spark dataframe, originating from Google Analytics, that looks like the following: id customDimensions (Array<Struct>) 100 [ {"index": 1, "value": "Earth"}, {"index": 2, "value": "Europe"}] 101 [ {"index": 1, "value": "Mars" }] I also have a "custom dimensions metadata" dataframe that looks like this: index name 1 planet 2 continent I'd to use the indexes in the metadata df in order to expand my custom dimensions into columns. The result should look like the following: id planet continent 100 Earth Europe 101 Mars null I have tried the following approach, and it works fine, however it

Google Analytics for Android v2 Campaign Tracking Not Working

╄→尐↘猪︶ㄣ 提交于 2019-12-04 21:36:43
问题 I have spent a ton of time on this, and am now pulling my hair out. I am using the Google Analytics Android SDK v2. I have been using it for months, and have collected data using EasyTracker . No issues there. I recently tried to implement Campaign Tracking, and everything seemed okay, but after weeks in the market even with hundreds of referral downloads, I saw no data. I recently looked into how to test it and found this: stackoverflow.com/questions/5890914/how-to-test-android-referral

Setting Custom Campaign _setCampNameKey not working in Google Analytics ga.js

纵然是瞬间 提交于 2019-12-04 20:50:28
Hello there I want to use some custom campaings created by my application through ga.js . I use some custome campaign and all campaign information and create a hash code of that campaign and put it in the url. My Campaigh URL looks like http://mysite.com/?aff=eyJer5fg4IxOCIsInRleHRfbGlua19pZCI6IjgyIiwiY2FtcGFpZ25faWQiOiIxNCJ9 Now when user landed on mysite.com I check if query parameter aff exists. If yes then I decode the campaign information and try to send it as custom campaign . My tracking code looks like <script> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'my profile id']); _gaq

Why does google recommend putting Analytics Asynchronous code *after* scripts in <head>?

笑着哭i 提交于 2019-12-04 20:26:27
问题 Why does google recommend putting js scripts in before the analytics asynchronous tracking code in your html? http://code.google.com/apis/analytics/docs/tracking/asyncMigrationExamples.html Here's the quote: "Note: To ensure the most streamlined operation of the asynchronous snippet with respect to other scripts, we recommend you place other scripts in your site in one of these ways: before the tracking code snippet in the section of your HTML" 回答1: The asynchronous analytics snippet's job is

How to log Google Analytics calls in Testcafe?

℡╲_俬逩灬. 提交于 2019-12-04 19:57:02
I am trying to automatically test tracking code and I am using the RequestLogger from Testcafé . I succeeded to intercept calls to example.com and localhost but not to https://www.google-analytics.com/ . What could be the reason? Expected This test should be green Test code import { RequestLogger } from 'testcafe'; const logger_ga = RequestLogger('https://www.google-analytics.com/'); fixture `localhost` .page('http://localhost:8000') test .requestHooks(logger_ga) ('logs calls to Google Analytics', async t => { await t.click("#ga-button"); console.log(logger_ga.requests); // is empty due to

Tracking same domains but different environments in Google Analytics

六月ゝ 毕业季﹏ 提交于 2019-12-04 19:52:04
问题 So, say I want to track traffic to different environments, but in the same domain https://portal.mywebsite.net/ and separately track traffic to https://production.mywebsite.net/ Sorry if this is a stupid question, but do you do this through filters, or do you have to setup new properties per environment? thanks in advance, I'm a noob to GA. 回答1: Create two new views one for portal and one for production: Start with applying a filter to your portal view. Go to View > Filters > Create New

Access previously stored Visitor-level custom variable

◇◆丶佛笑我妖孽 提交于 2019-12-04 19:49:40
In Google Analytics, Visitor-level custom variables are stored in cookies. I'm looking to store some data in a GA custom variable only if no data has been stored in this slot before , i.e. never overwrite visitor-level custom variables. Is there any way I can do that, either by testing whether some data has already been stored, or by retrieving the stored value? There's no _getCustomVar , but is there any way I can do something equivalent without "hacking" into the cookies myself? There is _getVisitorCustomVar(index) . eg: _gaq.push(function() { var pageTracker = _gat._getTrackerByName(); //

Can I use Google Analytics to sort out the statistics of my iOS App?

萝らか妹 提交于 2019-12-04 19:45:10
问题 Is this a violation of Apple app development rules? In some forums I just saw that thing. So am afraid of getting rejected by AppStore if I use the same. Help me with this please. And if I can't use Google Analytics SDK then which will be the best analytics method I could implement for my App? 回答1: This is not legal advice, but, as of right now, no apps have been rejected by Apple for using Google Analytics. Google has released an official iOS Google Analytics SDK, and there is no record of

Generate google-services.json for Android

此生再无相见时 提交于 2019-12-04 18:56:39
问题 This might be a stupid question but I am facing an issue when trying to generate my google-services.json file for my app. I am following this guide from the google developers team to setup my project for analytics but when I click on the get configuration file button nothing happens, I just get a loading spinner that never ends. I tried on different browsers, it's still the same. I checked the chrome console and got : Refused to display 'https://accounts.google.com/ServiceLogin?service