Do not use CGLContext to execute it manually using the Google Analytics ID.
I find it more reliable, since I am also trying to do this in a documented way by Google, which also did not work for me, I believe that they need to update their context (I believe this is due to a quick 2 - update).
Example: enter this into your AppDelegate.swift in didFinishLaunchingWithOptions:
// Init GAI. let Tracker = GAI.sharedInstance() //Add Publisher Track ID Tracker.trackerWithTrackingId("UA-XXXXXXXXX-X")
Ask if you have any other question that you would like to perform manually ( trackUncaughtExceptions , logger , etc.)
UPDATE:
Your bridge header file should look something like this: you should add whatever you are used to in the Google Analytics Framework.
//Google Analytics
Here is a screenshot of the classes available.

Xrait source share