google-analytics

How to track my Facebook share button with Google analytic or any other tracking measure

青春壹個敷衍的年華 提交于 2019-12-25 05:08:05
问题 I have this share button on my site: .shr-btn-scl .facebookbtn{background-image:url(https://lh6.googleusercontent.com/-Odsu2qlGN6w/U4xV7l9bH-I/AAAAAAAACKE/hQLdHC9ZXJQ/w200-h49-no/face+un.png);display:block; width:140px; height:30px; background-repeat:no-repeat; } <li><a class='facebookbtn' data-title='Facebook' expr:href='"http://www.facebook.com/sharer.php?u=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, &apos;windowName&apos;, &apos;width=550, height=600,

Is Client Login required for pulling the data from google analytics data export API

纵然是瞬间 提交于 2019-12-25 04:55:47
问题 Coding in ASP.NET 4.0 / javascript/ jQuery/ WebServices The Scenario I have an analytics account i have set up at, say, some-name@gmail.com with password as pass123 I also know the table id,say ga:30037474 My question is can I pull data like // Load the Google data JavaScript client library. google.load('gdata', '2.x', { packages: ['analytics'] }); // Set the callback function when the library is ready. google.setOnLoadCallback(init); function init() { myService = new google.gdata.analytics

Error on my fragment “android.app.Application cannot be cast to”

人走茶凉 提交于 2019-12-25 04:38:22
问题 Just following this question: Using Google Analytics To Track Fragments I have an app which implements a Navigation Drawer , so they're Fragments but Google Analytics don't work on this line: final Tracker tracker = ((App) getActivity().getApplication()).getTracker(); The Fragment : public class Accueil extends android.support.v4.app.Fragment { @Override public void onResume() { super.onResume(); final Tracker tracker = ((App) getActivity().getApplication()).getTracker(); if(tracker != null){

Google Analytics multi tracking account dimension data partially not showing in report

醉酒当歌 提交于 2019-12-25 03:37:25
问题 I have two google analytics tracking account. var ga1 = "UA-XXXXXX-1"; var ga2 = "UA-XXXXXX-2"; I then create the object and send the page view. ga('create', ga1, 'auto'); ga('send', 'pageview'); ga('create', ga2, 'auto', {'name': 'second'}); ga('second.send', 'pageview'); I then set dimension1 in the object and send the page view again. ga('set', 'dimension1', 'mytown'); ga('send', 'pageview'); ga('set', 'dimension1', 'mytown', {'name': 'second'}); ga('second.send', 'pageview'); And then I

Maximum number of Event Action created in Google analytics

本秂侑毒 提交于 2019-12-25 03:12:40
问题 I have a question related with google analytics. First I am using free account of google analytics and using Measurement protocal. I am using this because I want to track desktop applications. I want to know how many Event Action we can create which is shown under Behavior / Events / Top Events and Then Event Action. For more specific information please see in below image. I am asking this question because I have to deploy this solution on 12000 customers and so it will create atleast 12000

Add Google Analytics Click (event) tracking code to Javascript window.open

坚强是说给别人听的谎言 提交于 2019-12-25 03:08:52
问题 I have the following Javascript in my head : // Google Analytics code required for EventTracking <script type="text/javascript"> function trackOutboundLink(link, category, action) { try { _gaq.push(['_trackEvent', category , action]); } catch(err){} setTimeout(function() {document.location.href = link.href; }, 100); } And the following in my body: // required to activate social bookmarks $(".btn_fb").click(function() { window.open(""); return false; }); $(".btn_tw").click(function() { window

Regex to retrieve all URLs not containing specific string

我怕爱的太早我们不能终老 提交于 2019-12-25 02:56:42
问题 I am using the Google Analytics PHP API, and trying to use it to retrieve the most popular links on my website. It works, but it retrieve some duplicates due to it retrieving URLs containing query strings. So basically, I want to retrieve all the links which do not contain the string "?start=" inside them. I think this can be done via regex (Google Analytics accepts regex filters), but don't know how. Any ideas? Thanks! 回答1: You can use negative look ahead regex assertion. See http://www

Google Analytics getTotalsForAllResults inconsistent for different dimensions

ε祈祈猫儿з 提交于 2019-12-25 02:40:50
问题 print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga:visitors')->getTotalsForAllResults()); print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga:visitors', array('dimensions' => 'ga:visitorType'))->getTotalsForAllResults()); print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga:visitors', array('dimensions' => 'ga:operatingSystem'))->getTotalsForAllResults()); print_r($service->data_ga->get('ga:78834361', '2014-01-01', 'today', 'ga

Why is tracking code generated for my site different than what is in the documentation?

一笑奈何 提交于 2019-12-25 01:49:03
问题 Looking at the GA developers page at https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide it says the tracking code is: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document

How to return the total pageview using Google Analytics SDK?

99封情书 提交于 2019-12-25 01:45:21
问题 I am able to return the pageviews for a page. But the API returns those pageviews separated by source. So for page /this-page-slug/ it returns X amount of views for direct, Y for referral, Z for mobile, W for none and so on. I want to get the total pageviews for all sources per path. How can I do that? This is the function that I am using to get the results: function getResults($analytics, $profileId) { // Calls the Core Reporting API and queries for the number of sessions // for the last