runt18 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Documentation bug in https://developers.google.com/analytics/devguides/collection/ios/v3/advanced #839

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Issue summary:

In your documentation 
"https://developers.google.com/analytics/devguides/collection/ios/v3/advanced" 
there is a small documentation bug that might first glance confuse developers 
without some experience (as me):

The method "initializeGoogleAnalytics" has no arguments, so the method 
definition should have no ":", therefore correct would be

- (void)initializeGoogleAnalytics {

    [[GAI sharedInstance] setDispatchInterval:kGaDispatchPeriod];
    [[GAI sharedInstance] setDryRun:kGaDryRun];
    self.tracker = [[GAI sharedInstance] trackerWithTrackingId:kGaPropertyId];
}

But you write it with ":"
- (void)initializeGoogleAnalytics: {

    [[GAI sharedInstance] setDispatchInterval:kGaDispatchPeriod];
    [[GAI sharedInstance] setDryRun:kGaDryRun];
    self.tracker = [[GAI sharedInstance] trackerWithTrackingId:kGaPropertyId];
}

Kind regards and thank you for fixing it!

Thomas Wolf

Original issue reported on code.google.com by thomas.w...@googlemail.com on 2 Jan 2016 at 2:35

Attachments: