google-analytics

Enable google analytics for single page site with # views

人走茶凉 提交于 2019-12-03 04:51:16
I've read the similar questions, but my question is slightly different. I am implementing a single page registration processing page for a site using Kendo UI. The site has 4 pages which was generated dynamically when user clicks menu tabs. For example, when user clicks tab1 on the menu, then tab_1 would be injected into app_container container. templates as below: <div id="app_container"></div> <script id="tab_1" type="text/x-kendo-template"> //first page </script> <script id="tab_2" type="text/x-kendo-template"> //second page </script> <script id="tab_3" type="text/x-kendo-template"> //third

Can Google Analytics email me if (crashes and) exceptions occur?

北城余情 提交于 2019-12-03 04:47:01
Google Analytics is correctly reporting exceptions thrown by my Android app. And I can use Scheduled Emails to send this report to me. However, receiving a daily email when there isn't anything to report (i.e., the report tells me that zero exceptions occurred) is tedious. Thus, I'd like to receive emails only when there is something to report (i.e., the report tells me that one or more exceptions occurred). It seems that Custom Alerts can be used for this purpose. However, Custom Alerts do not appear to be compatible with Exceptions. This leads me to my question. Can Custom Alerts be

How do I implement Campaign tracking with Cordova?

末鹿安然 提交于 2019-12-03 04:42:57
I am trying to implement campaign tracking in my cordova app, but I am not having success. I previously used danwilson plugin, which works nice, but it does not have support for campaigns, as I saw here: https://github.com/danwilson/google-analytics-plugin/issues/68 So I changed my plugin to this fork: https://github.com/Anu2g/google-analytics-plugin Which have campaign tracking. I am currently testing in Android, I have added this to my manifest <!-- Used for Google Play Store Campaign Measurement--> <service android:name="com.google.android.gms.analytics.CampaignTrackingService" /> <receiver

SecurityException: Parcel.readException coming from google analytics code

无人久伴 提交于 2019-12-03 04:34:16
Our app is getting quite a few different SecurityException reports from our crash report software. Here is a stacktrace of the crash: java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@43fda840 (pid=17925) when registering receiver android.content.IIntentReceiver$Stub$Proxy@43fd9458 at android.os.Parcel.readException(Parcel.java:1431) at android.os.Parcel.readException(Parcel.java:1385) at android.app.ActivityManagerProxy.registerReceiver(ActivityManagerNative.java:2466) at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1717) at

Why does Google Analytics use a one-pixel picture to transfer data?

回眸只為那壹抹淺笑 提交于 2019-12-03 04:28:47
问题 Google Analytics embeds a one pixel GIF with a URL like this: http://www.google-analytics.com/__utm.gif?utmwv=5.1.5&utms=5&utmn=1532897343&utmhn=www.douban.com&utmcs=UTF-8&utmsr=1440x900&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=10.3%20r181&utmdt=%E8%B1%86%E7%93%A3&utmhid=571356425&utmr=-&utmp=%2F&utmac=UA-7019765-1&utmcc=__utma%3D30149280.1785629903.1314674330.1315290610.1315452707.10%3B%2B__utmz%3D30149280.1315452707.10.7.utmcsr%3Dbiaodianfu.com%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral

google analytics crash report only shows first line of stacktrace

*爱你&永不变心* 提交于 2019-12-03 04:28:07
My application uses Google Analytics to track exceptions and crashes (among other thigs). I use this function to get the stacktrace: public static void sendErrorReportViaGoogleAnalytics(Exception e) { e.printStackTrace(); Tracker myTracker = EasyTracker.getTracker(); myTracker.sendException(getDescription(e), false); } public static String getDescription(Exception t) { final StringBuilder result = new StringBuilder(); result.append(t.toString()); result.append(','); String oneElement; for (StackTraceElement element : t.getStackTrace()) { oneElement = element.toString(); result.append

Firing the Facebook Conversion Pixel

≯℡__Kan透↙ 提交于 2019-12-03 04:25:23
问题 I'm still pretty new to Javascript, but I was wondering what would be the best way to fire the Facebook conversion pixel (below) without actually loading a "confirmation"/"Thank You" page? <script type="text/javascript"> var fb_param = {}; fb_param.pixel_id = 'XXXXXXXXXXX'; fb_param.value = '0.00'; fb_param.currency = 'USD'; (function(){ var fpw = document.createElement('script'); fpw.async = true; fpw.src = '//connect.facebook.net/en_US/fp.js'; var ref = document.getElementsByTagName('script

Google Tag Manager with AngularJS?

不羁岁月 提交于 2019-12-03 04:22:51
问题 How do I use GTM with Angular? I'm trying to fire a (virtual) pageview event when I load a new partial using this code: dataLayer.push({ 'event' : 'pageview', 'pageview' : $location.path(), 'virtualUrl' : $location.path() }); But I don't see the event firing (I'm using the Google Analytics Chrome debug extension to view fired events). 回答1: I find the Chrome extension unreliable. Simply run the global variable dataLayer in the console to print the array of events. One of the objects should be

React + Router + Google Tag Manager

落爺英雄遲暮 提交于 2019-12-03 04:19:40
问题 I've been spending a bit of time developing an MVP at quickcypher.com. I wanted to start putting in some analytics, and it worked great for just tracking total visits, but things went south when I tried to track different URLs on my site that uses React Router. My approach was this: Setup a GA tag that fires on some pages, using a trigger for a custom "pageview" event. When things did fire, I would set the field page to "/rap" for example. I was firing the event in the "componentDidMount"

How to track multiple accounts using NEW analytics.js?

荒凉一梦 提交于 2019-12-03 04:00:32
问题 I need to track pageview for two accounts on one page, using Google's new analytics.js. There is plenty of tutorials and examples how to do it with older ga.js. But all I have found was this Analytics documentation page. I have written my code to suit the given example, but it only tracks views for first (default) tracker, but not for the second one. <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a