google-analytics

Google Analytics and hash/anchor doesn't work

旧街凉风 提交于 2019-12-11 03:37:38
问题 I hope you can help me. I have a gallery in Javascript. Each picture has a specific hash. www.example.com/gallery.html#title_1 My stats are on Google Analytics but hash doesn't exist even when I tried this in the respective code : _gaq.push(['_trackPageview', location.pathname + location.search + location.hash]); or this : _gaq.push(['_setAllowAnchor', true]); Any idea to solve this problem ? Thanks for your answers. 回答1: _setAllowAnchor is for a completely different use case. The right way

Analytics for cross platform JavaScript based mobile app [duplicate]

淺唱寂寞╮ 提交于 2019-12-11 03:28:21
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to use Google Analytics with Phonegap without a plugin? I want to use something like Phonegap to write an app for Android, iOS and Blackberry, as well as generate free analytics data such as session length and how often buttons are pressed. I'd like to be able to do all this in JavaScript if possible but I cannot find any analytics provider that allows this. The only option I can see is to use Flurry which

AndroidApplicationRecord and Google Analytics

雨燕双飞 提交于 2019-12-11 03:23:25
问题 I'm developing an application which can be installed and opened via an AndroidApplicationRecord (AAR, see http://developer.android.com/guide/topics/nfc/nfc.html). If a user installs the app coming from other sources I'm adding a Google Analytics referrer to the Google Play link in order to track the source of installation. Is there a way to add this referrer to the AAR or as an additional NDEFRecord so that this source can be tracked as well? 回答1: The process behind the AAR is completely

Google Analytics Missing analytics.js script

亡梦爱人 提交于 2019-12-11 03:16:36
问题 I'm stucked on copying google analytics tracking code issue. It looks like Google Tag Assistant doesn't consider the code I copied from the generated GA tracking JS for the site. The site is in http://www.orchid.co.nz/ I added the codes on the header. This should work correctly like what I'm doing with the other sites I worked with. However, this one is weird. I can't figure what's wrong. Anything I missed? 回答1: Not sure if this will fix the issue, but you are telling the browsers to parse

encode the dash or not

半腔热情 提交于 2019-12-11 03:13:44
问题 I am trying to use Google Analytics in my Phonegap Android APP I followed the instructions in this repo https://github.com/DoersGuild/Cordova-Android-Analytics every thing is ok and success message is returned, but unfortunately I waited 24 hours and no updates in reporting in Google Analytics account Here it is the file analytics.xml file: <?xml version="1.0" encoding="utf-8"?> <!-- Replace placeholder ID with your tracking ID --> <string name="ga_trackingId">UA-XXXXXXXX-X</string> <!--

Google Analytics: How to separate domains in reports?

╄→гoц情女王★ 提交于 2019-12-11 03:09:40
问题 I have one code on multiple websites. I want to see on which website users are currently. Currently i have made it this way, but in reports i see only as " direct traffic " for all domains Is it possible? var cb=function(){ var pageTracker = _gat._getTracker('UA-XXXXXXXX-XX'); pageTracker._setDomainName(document.domain); pageTracker._setAllowLinker(true); // To track traffic across domains pageTracker._trackPageview(); } if(!window._gat) { $.getScript(('https:' == document.location.protocol ?

Google Analytics Event tracking: how to avoid sending data for local test?

本秂侑毒 提交于 2019-12-11 03:08:51
问题 I'm testing Google Analytics Event tracking with my local server. I'm using the debug version of ga.js, ga_debug.js, in order to print debug text automatically in my browser console. Furthermore, i set domain name to none, which is supposed not sending the data to your Analytics account (stackoverflow post): _gaq.push(['_setAccount', 'UA-XXXXXXX-X']); _gaq.push(['_setDomainName', 'none']); ... But my events tracked are still sent to my Analytics Account, so my question is how to avoid this?

Enable Demographics and Interest Reports in Classical Analytics

寵の児 提交于 2019-12-11 03:08:34
问题 From a previous question I've come to know that I can't enable Demographics and Interest Reports with Universal Analytics tracking code. So I've created a new property for my account using Classical Analytics . I've also set Enable Demographics and Interest Reports to ON under Property Settings and uploaded the tracking code to the desired site (it is a Facebook Application hosted on GAE if that matters, website link). As adviced by Google I've changed my tracking code to use DoubleClick

INSTALL_REFERRER not received on production

我的未来我决定 提交于 2019-12-11 02:48:50
问题 I'm not getting install referrer received on application installed from the play store. Below is my Androidmanifest.xml shows receiver which is inside <application> tag too. <receiver android:name="com.usplnew.getreferrer.CustomReceiver" android:exported="true" > <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> And below is code for Receiver public class CustomReceiver extends BroadcastReceiver { @Override public void onReceive

How do I keep Google Analytics from corrupting query strings that contain %26?

感情迁移 提交于 2019-12-11 02:45:13
问题 I have many links on my site that have query strings that contain %26 (which is a URL-encoded ampersand). For example: ?action=keyword_results&f=company&q=Bausch+%26+Lomb+Canada+Inc. Apparently, Google Analytics is prematurely decoding the query string and it treats the text after the %26 as a separate parameter. I use the Exclude URL Query Parameters option to exclude most query parameters (including action, f, and q) from our results. But I am getting stats for hundreds of pages with query