kalnyc67 / analytics-issues

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

Social Interactions - iOS SDK - Code Snippet in documentation has wrong syntax. #626

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of related component: Documentation

URL of the documentation page : 
https://developers.google.com/analytics/devguides/collection/ios/v3/social

Issue summary:
The code snippet Under Implementation heading which describes how to send a 
social interaction event has wrong syntax. its missing a opening bracket.

currently it is : 

[tracker send:[GAIDictionaryBuilder createSocialWithNetwork:@"Twitter"          
// Social network (required)
                                                     action:@"Tweet"            // Social action (required)
                                                     target:targetUrl] build];  // Social target

it should be :

[tracker send:[[GAIDictionaryBuilder createSocialWithNetwork:@"Twitter"         
 // Social network (required)
                                                     action:@"Tweet"            // Social action (required)
                                                     target:targetUrl] build];  // Social target

Original issue reported on code.google.com by g...@grevolution.me on 3 May 2015 at 12:50

Attachments: