I want to add google Analytics ios into my project but i got some problems when i tried to paste their code into my app like the code below.
var tracker = GA
For GA 3.17.0 use:
let tracker = GAI.sharedInstance().defaultTracker let builder = GAIDictionaryBuilder.createEvent(withCategory: category, action: action, label: nil, value: nil).build() tracker?.send(builder as [NSObject : AnyObject]!)
Note the ! at the end of [NSObject: AnyObject]!.
!
[NSObject: AnyObject]!