Issue with Google Analytics in Swift 2 or 3

前端 未结 6 1068
北荒
北荒 2020-12-15 03:10

I have a problem with Swift 2 (Swift 3) and Google Analytics.

This is the line with the problem:

tracker.send(GAIDictionaryBuilder.createScreenView(         


        
6条回答
  •  無奈伤痛
    2020-12-15 03:30

    In addition to the accepted answer:

    Changed this:

    tracker.send(GAIDictionaryBuilder.createEventWithCategory("UX", action: "User sign in", label: nil, value: nil).build())
    

    To this:

    tracker.send(GAIDictionaryBuilder.createEventWithCategory("UX", action: "User sign in", label: nil, value: nil).build()  as [NSObject : AnyObject])
    

提交回复
热议问题