google-analytics

How to implement Google Analytics in hybrid mobile apps?

拜拜、爱过 提交于 2019-12-12 09:01:17
问题 I am writing a hybrid mobile app using HTML5, CSS and jQuery Mobile. I will use Cordova Js to convert the HTML5 app to native mobile apps for iOS and Android. I want to use Google Analytics to track various activities performed by users. I found that GA provides SDKs for native apps but not much was specified for hybrid apps. Have you implemented tracking for Cordova or PhoneGap based apps? Can you provide me some direction on how to do it? 回答1: I use the ngCordova Google Analytics plugin.

Most efficient way to dynamically bind event handlers

只谈情不闲聊 提交于 2019-12-12 08:33:08
问题 Problem: I need to bind any number of event handlers to any number of elements (DOM nodes, window , document ) at dynamically runtime and I need to be able to update event binding for dynamically created (or destroyed) nodes during the lifetime of my page. There are three options that I can see for tackling this problem: I) Event delegation on window II) Direct event binding on each node III) Event delegation on common ancestors (which would be unknown until runtime and would potentially need

Google Universal Analytics Localhost Setup

时间秒杀一切 提交于 2019-12-12 08:31:45
问题 I'm trying to test GA on localhost after following the suggestions in Can you test google analytics on a localhost address? 1). but I don't see any data being send to my Google Analytics account when browsing on my localhost server and calling the JS script. I know it's executing the JS. What am I doing wrong? Here is my JS code: (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=s.createElement(o), m=s

'ErrorType' is not convertible to 'NSError'

二次信任 提交于 2019-12-12 08:26:07
问题 I have an error with Google Analytics: 'ErrorType' is not convertible to 'NSError'; did you mean to use 'as!' to force downcast? It happen when I'm trying to call 2 times createScreenView I do this: override func viewDidLoad() { let tracker = GAI.sharedInstance().defaultTracker tracker.set(kGAIScreenName, value: "Demande Gratuite") var builder = GAIDictionaryBuilder.createScreenView().build() as! [NSObject : AnyObject] tracker.send(builder) ... } @IBAction func Valider(sender: AnyObject) { ..

Google Analytics V2 not recording stats from Android app

徘徊边缘 提交于 2019-12-12 07:44:25
问题 I'm using EasyTracker from the SDK for Android V2.0 beta 3. I've followed all the steps described at https://developers.google.com/analytics/devguides/collection/android/v2/, and have ensured that there are hyphen characters and not en dashes in my ga_trackingId parameter value. I've tried my app in emulators for both Android 2.2 and 4.1.2, as well as on a real device. Here is (partially redacted) output from LogCat: 11-17 20:13:50.587: W/GAV2(542): Thread[main,5,main]: Connection to service

How to track distinct pageviews on ASP.NET postbacks in Google Analytics

帅比萌擦擦* 提交于 2019-12-12 05:51:50
问题 The typical situation I'm dealing with is an ASP.NET form page (generally an opt-in or sign-up form) that posts back to itself when the user hits submit. By default, Google Analytics will track both of these views as the same page, so it's not possible to detect which visits are the initial view vs. which are the "success" view. In the past, I've dealt with this in one of two ways: Using Event Tracking to track form submission as an event. This works fine, but in GA you don't see this metric

Wordpress and Google Analytics Events

拥有回忆 提交于 2019-12-12 05:49:12
问题 I want to track some actions in Google Analytics but I can't get it working. I tried it with Contact Forms (Wordpress). At the additional settings I just wrote: on_sent_ok: "ga('send', 'event', 'Formular-Beratung', 'sent');" but it does not work. I installed the Google tag assistant, but I cant see any event (not even in the live view at Google Analytics). Next: There is a live chat (snapengage). Here you can also track events. For this I implemented the code var seAgent; SnapABug.setCallback

Stop Analytics Code from Blocking other Script Execution

扶醉桌前 提交于 2019-12-12 05:49:00
问题 I am using the recommended implementation of the tracking code. <script type="text/javascript"> 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.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })

Send info to google tag manager from backend

孤者浪人 提交于 2019-12-12 05:19:33
问题 Working on a website, I use Google Tag Manager and push some info with the dataLayer in Javascript. So far so good. However there are some information that should not be seen on the client side. Therefore I'm wondering if it's possible to do the same thing on the backend? Basically a request to GTM API that does the equivalent of dataLayer.push({ 'event': 'transaction', 'something': { 'superSecret': 42 } }); but on backend. (I've never used GTM API and I'm not sure if it permits to do this

How can I globally change a custom dimensions value for a client id?

只愿长相守 提交于 2019-12-12 05:12:36
问题 For instance say I have a user with the client id of 9394923.23349243 and I have a custom dimension called Lead Status . I want to update the value of the custom dimension everywhere for that client id. How can I globally change a custom dimensions value for a client id? It it possible to globally update a custom dimension associated with a client id? (it doesn't have to be a programmatic answer, it can be just general google analytics talk) Technical Information I am pushing data to GA via