Google analytics 3.08 IOS idfa class missing, won’t collect idfa

I have the same issue. It seams that 3.08 lib is linked with iAd.Framework Here is what I did – I’ve rolled back to the version 3.03c. You can download it here “https://dl.google.com/googleanalyticsservices/GoogleAnalyticsServicesiOS_3.03c.zip The best way is to use Cocopoads for managing libraries with pod ‘GoogleAnalytics-iOS-SDK’, ‘3.0.3c’

Issue with Google Analytics in Swift 2 or 3

Update for Swift 3 (2016.10.19) let tracker = GAI.sharedInstance().defaultTracker let build = (GAIDictionaryBuilder.createScreenView().build() as NSDictionary) as! [AnyHashable: Any] tracker?.send(build) Still an ugly approach, let me know if there’s an cleaner conversion. Original Same here, struggling to resolve tons of errors. What I did (deprecated): var build = GAIDictionaryBuilder.createAppView().build() as [NSObject : AnyObject] tracker.send(build) Edit (2015) … Read more

setup Google Analytics 4 in nuxt.js

[UPDATE] If you want to use GA4 Property (which is what has the ids in the format G-XXXXXXXXXX) you can try to use vue-gtag package by creating a plugin: import Vue from ‘vue’ import VueGtag from ‘vue-gtag’ Vue.use(VueGtag, { config: { id: ‘G-XXXXXXXXXX’ } }) Add this in nuxtconfig.js plugins: [‘@/plugins/gtag’] About the problem indicated … Read more

Javascript Redirect with Google Analytics

Note: _gaq.push allows pushing of functions onto the queue. The following code should redirect after 250 milliseconds (to allow time for the tracking pixel) after the _trackPageview: var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘UA-1234567-8’]); _gaq.push([‘_trackPageview’]); _gaq.push(function() { setTimeout(function() { window.location = “https://market.android.com/developer?pub=Fractal%20Systems”; }, 250); }); (function() { var ga = document.createElement(‘script’); ga.type=”text/javascript”; ga.async = … Read more

Event Value ? Google analytics / measurement protocol

First off, make sure you are passing a correct value to the value argument. The value argument expects an integer value (not string), e.g. // bad _gaq.push([‘_trackEvent’, ‘Category’, ‘Action’, ‘Label’, “some random string”]); // bad _gaq.push([‘_trackEvent’, ‘Category’, ‘Action’, ‘Label’, “123”]); // good _gaq.push([‘_trackEvent’, ‘Category’, ‘Action’, ‘Label’, 123]); 2nd, Category, Action, and Label are dimensions; what … Read more

simple hit counter for page views in rails

UPDATE The code in this answer was used as a basis for http://github.com/charlotte-ruby/impressionist Try it out It would probably take you less time to code this into your app then it would to pull the data from Analytics using their API. This data would most likely be more accurate and you would not have to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)