google-analytics

Converting two-dimensional array to an object c#

本小妞迷上赌 提交于 2020-01-03 05:35:06
问题 This all originates from querying Google Analytics data. For a basic query the main factors that change are the dimensions and the metrics . The object that is returned is of a type called GaData, and the actual results that you need reside in GaData.Rows. The format of GaData.Rows looks like this: There will first be a row for each dimension, in this example there is a row for "New Visitor" and a 2nd row for "Returning Visitor". Within those rows will be another set of rows that contain the

How to track internal redirect links as well on Google Analytics User Explorer?

笑着哭i 提交于 2020-01-03 04:27:06
问题 I'm trying to see the internal links that our wordpress users clicked on G analytics user explorer section's each user report. The report only shows the wordpress posts they surf but not the internal redirect urls (which are attached to images). The internal redirect urls are like : www.example.com/download/234234jjk/file.html on download images. I've used below php and javascript to track clicks: <?php if (is_user_logged_in()) { $user = wp_get_current_user(); $userName = $user->user_login; }

analytics.js event not working properly

為{幸葍}努か 提交于 2020-01-03 03:57:10
问题 I implemented analytics.js (new version) in my ASPX webapplication. I got pageview working just fine, but events is very often not being send. In my example, I tried pushing 3 different buttons, but only one of them fired the event. I added an alert-box to each event, to verify that it actually is fired, and these all show. This is my js, placed just before the </head> (function(i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push

Removing spam referrals in Google Analytics doesn't work anymore for some referrers

Deadly 提交于 2020-01-03 03:16:05
问题 I set up some filters in Google Analytics to remove spam referrals. It works great for the majority of the referral links but since last week, three websites are showing up again. What's the reason for this and how to make them disappear again? Filter 1 darodar\.com|priceg\.com|semalt\.com|buttons\-for\-website\.com|makemoneyonline\.com|blackhatworth\.com|hulfingtonpost\.com|bestwebsitesawards\.com|simple\-share\-buttons\.com Filter 2 econom\.co|ilovevitaly\.com|ilovevitaly\.ru

Google App Invites: Tracking Invites

不羁的心 提交于 2020-01-03 01:41:09
问题 I'm trying to understand this part of the guide (https://developers.google.com/app-invites/android/guides/app): Tracking Invitations After your app has received an invitation and taken the intended actions, it should call the updateInvitationOnAppInstalled method to mark the invitation as successful: private void updateInvitationStatus(Intent intent) { String invitationId = AppInviteReferral.getInvitationId(intent); // Note: these calls return PendingResult(s), so one could also wait to see /

Lan network website using google Analytics

﹥>﹥吖頭↗ 提交于 2020-01-02 23:17:08
问题 we have inner website (not on the wan network) , we using this website on our company, but we have route to to wan network . can google Analytics can track this website? im getting "Tracking Not Installed" and it not track nothing . 回答1: If you can load the URLs http://google-analytics.com/ga.js and http://google-analytics.com/__utm.gif from within your LAN network inner website (ie, access the outside, open internet), then Google Analytics will work without a problem. @Giddy is also

Querying Google Analytics API for 30-day active users

泪湿孤枕 提交于 2020-01-02 20:59:16
问题 I'm having trouble getting data on 30-day active users when I query Google Analytics in python. My code is below. My problem is that I need to specify a date or day as dimension. "At least one of ga:nthDay, ga:date, or ga:day must be specified as a dimension to query this metric." I'm just not sure what the proper syntax is for this. from oauth2client.service_account import ServiceAccountCredentials from apiclient.discovery import build import httplib2 #create service credentials #this is

How to upload cost to Google Analytics using Google SpreadSheet

断了今生、忘了曾经 提交于 2020-01-02 15:45:31
问题 I know it is possible to upload data cost to Google Analytics via the web interface. I, however, want to make this process a bit more automatic, so I thought about using google spreadsheet and google app script to short this processes. My ideia is to get the data I want to upload to Google Analytics on a spreadSheet and then use Google Apps Script Advanced Services to upload the data cost to my google Analytics Property. Unfortunately the documentation on Google App Script Advanced Services

Flurry Session data vs Google Analytics

白昼怎懂夜的黑 提交于 2020-01-02 09:10:53
问题 We have Flurry and GA running on both Android and iOS apps. However, seeing 30% more sessions on Flurry than on GA for the same period of time. Has anyone experienced this as well? Ideally don't want to run both. 回答1: In Flurry, you notify the Flurry SDK every time one activity starts/stop. If once the activity has been stopped, it is not started in more than 10 seconds, Flurry considers the new interaction as a new session. http://support.flurry.com/index.php?title=Analytics/FAQ In Google

cxApi.chooseVariation() always returning 0

不问归期 提交于 2020-01-02 07:57:08
问题 My site is a single page webapp. I'm loading the experiment code with my experiment id: <script src="//www.google-analytics.com/cx/api.js?experiment={@ js_settings.analytics.experimentid @}"></script> After all is loaded, at the moment I display the page, I select the right template by calling a function which does the following: ga('set', 'expId', experiment_id); var variation = cxApi.getChosenVariation(experiment_id) || cxApi.chooseVariation(); cxApi.setChosenVariation(variation, experiment