Google Analytics API – Get page view information for specific URLs

Yes – you will need to use the Google Analytics API for this. I would suggest checking out the Query Explorer to get a feel for the queries you will need to create. You will require numerous queries to get all the data you need (adjusting the starting date): – Total Views – This Year … Read more

GAITrackedViewController and UITableViewController

Manual Screen Tracking Remember that extending GAITrackedViewController is only one way to track screen views. The manual way is just as easy. SDK v2 – (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; // returns the same tracker you created in your app delegate // defaultTracker originally declared in AppDelegate.m id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker]; // manual screen … Read more

Angular 4+ using Google Analytics

First of all, you need to install typings for Google Analytics in your devDependencies npm install –save-dev @types/google.analytics Then add your tracking code in the base index.html, and remove the last line as shown bellow: <body> <app-root>Loading…</app-root> <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=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,’script’,’https://www.google-analytics.com/analytics.js’,’ga’); ga(‘create’, ‘UA-XXXXXX-ID’, ‘auto’); // <- add the UA-ID // <- remove the … Read more

307 Redirect when loading analytics.js in Chrome

307 Internal Redirect with Non-Authorative-Reason: Delegate indicates that the request was intercepted and modified (redirected) by a Chrome extension via the webRequest or declarative webRequest extension APIs. You can find out which extension triggered the redirect as follows: Visit chrome://net-internals/#events Trigger the request (google analytics, in your case). Go back to the chrome://net-internals/#events tab and … Read more

Testing Google Play Install Referrer Library

There’s one old hack to test this. Steps: Start Google Play on the device using campaign link, for example, https://play.google.com/store/apps/details?id=com.test.test_project&referrer=utm_source%3Dtest_source%26utm_medium%3Dtest_medium%26utm_term%3Dtest-term%26utm_content%3Dtest_content%26utm_campaign%3Dtest_name (You can use google play generator: https://developers.google.com/analytics/devguides/collection/android/v3/campaigns#google-play-url-builder) DON’T TAP ON INSTALL BUTTON Install your test build using adb. adb install -r app-debug.apk Google Play will be returning your test campaign now.

Google Analytics libAdIdAccess.a does not contain bitcode

Update: Good news everyone! Google Analytics now supports Bitcode with their 3.14 release. You can grab it from their download sources, however its not listed on Cocoapods yet. Google Analytics SDK Download Change Log Original: Google needs to compile their analytics SDK into a bitcode library. However, from previous experience with Google updating their libraries … Read more

Adding Google Analytics to React

Update: Feb 2019 As I saw that this question is being searched a lot, I decided to expand my explanation. To add Google Analytics to React, I recommend using React-GA. Add by running: npm install react-ga –save Initialization: In a root component, initialize by running: import ReactGA from ‘react-ga’; ReactGA.initialize(‘Your Unique ID’); To report page … Read more

Report for exceptions from Google Analytics analytics.js exception tracking

Figured it out. I’m not sure why they don’t make this a built in report but maybe someday. I made a custom widget in a dashboard with Exception Description for dimension and ‘Crashes’ for the metric: Which gives me a report like this: You can also go to Customization tab and create a custom report … Read more

Does Google Analytics have performance overhead?

2018 update: Where and how you mount Analytics has changed over and over and over again. The current gtag.js code does a few things: Load the gtag script but async (non-blocking). This means it doesn’t slow your page down in any other way than bandwidth and processing. Create an array on the page called window.datalayer … Read more

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