{"__v":0,"_id":"57d12d8165042a1700668388","category":{"__v":0,"_id":"57b96d6b1d08500e00bf81d2","project":"54861bb654b3ce0b00367292","version":"57b96d6b1d08500e00bf81d1","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-22T15:19:16.310Z","from_sync":false,"order":0,"slug":"intigration","title":"iOS / Essentials KIt"},"parentDoc":null,"project":"54861bb654b3ce0b00367292","user":"54861b9f3681d914006992a4","version":{"__v":7,"_id":"57b96d6b1d08500e00bf81d1","project":"54861bb654b3ce0b00367292","createdAt":"2016-08-21T08:59:23.326Z","releaseDate":"2016-08-21T08:59:23.326Z","categories":["57b96d6b1d08500e00bf81d2","57b96d6b1d08500e00bf81d3","57b96d6b1d08500e00bf81d4","57b96d6b1d08500e00bf81d5","57b96d6b1d08500e00bf81d6","57b96d6b1d08500e00bf81d7","57b96d6b1d08500e00bf81d8","57b96d6b1d08500e00bf81d9","57b96d6b1d08500e00bf81da","57b96d6b1d08500e00bf81db","57b96d6b1d08500e00bf81dc","57b97748306b9b0e001dd53f","57d12c6c1227b40e0044908a","57d51ad68191880e008bb51b","57d52b5cf350090e00fe073e","57d5468a17b492170053a3f0","57df9df05927cb0e002bce1e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"","version_clean":"4.0.0","version":"4.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-08T09:21:05.048Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"3rd Party analytics\"\n}\n[/block]\nYou can send events to 3rd party analytics platforms and see the whole user journey combined ( interaction with elasticode experiences and your user flow ), more about 3rd party analytics and how to use it VIA our dashboard can be found <a href=\"http://helpdesk.elasticode.com/articles/3158-3rd-party-analytics\" target=\"_blank\">here</a>\n\n\nSending information for any third party is pretty easy, you just build a small wrapper that streams out the relevant event title once triggered.\nHere is an example, \nLet's say i use mixpanel, then i would add this functionality: \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"[ElastiCode setThirdPartyAnalytics::::at:::\\\"Mixpanel\\\" action:^(NSString * _Nonnull eventName) {\\n        NSLog(@\\\"Mixpanel event : %@\\\", eventName);\\n        [mixpanel track:eventName properties:@{\\n   \\t\\t\\t\\t\\t\\t @\\\"Source\\\": @\\\"Elasticode\\\"\\n\\t\\t\\t}];\\n  \\n}];\",\n      \"language\": \"objectivec\"\n    },\n    {\n      \"code\": \"ElastiCode .setThirdPartyAnalytics(\\\"Mixpanel\\\") \\n{ (eventName) -> Void in\\n   print(\\\"Mixpanel event - %s\\\", eventName);\\n   mixpanel.track(\\n    eventName,\\n    properties: []\\n   )\\n}\",\n      \"language\": \"swift\"\n    }\n  ]\n}\n[/block]\nSo, we simply added the \"tracking\" functionality of mixpanel and relayed the event name once a button is clicked on an experience \n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/3bb21ef-Screen_Shot_2016-09-07_at_9.42.00_AM.png\",\n        \"Screen Shot 2016-09-07 at 9.42.00 AM.png\",\n        878,\n        650,\n        \"#437eb4\"\n      ]\n    }\n  ]\n}\n[/block]\n* In the example above, we added a number of options to relay event reporting from numerous services\n\nYou can add any type of logic ( even alert event to your own severs ) and just channel it VIA this functionality.","excerpt":"iOS / Essentials KIt: Extra setup / 3rd party analytics","slug":"extra-setup-3rd-party-analytics","type":"basic","title":"Extra setup / 3rd party analytics"}

Extra setup / 3rd party analytics

iOS / Essentials KIt: Extra setup / 3rd party analytics

[block:api-header] { "type": "basic", "title": "3rd Party analytics" } [/block] You can send events to 3rd party analytics platforms and see the whole user journey combined ( interaction with elasticode experiences and your user flow ), more about 3rd party analytics and how to use it VIA our dashboard can be found <a href="http://helpdesk.elasticode.com/articles/3158-3rd-party-analytics" target="_blank">here</a> Sending information for any third party is pretty easy, you just build a small wrapper that streams out the relevant event title once triggered. Here is an example, Let's say i use mixpanel, then i would add this functionality: [block:code] { "codes": [ { "code": "[ElastiCode setThirdPartyAnalytics:@\"Mixpanel\" action:^(NSString * _Nonnull eventName) {\n NSLog(@\"Mixpanel event : %@\", eventName);\n [mixpanel track:eventName properties:@{\n \t\t\t\t\t\t @\"Source\": @\"Elasticode\"\n\t\t\t}];\n \n}];", "language": "objectivec" }, { "code": "ElastiCode .setThirdPartyAnalytics(\"Mixpanel\") \n{ (eventName) -> Void in\n print(\"Mixpanel event - %s\", eventName);\n mixpanel.track(\n eventName,\n properties: []\n )\n}", "language": "swift" } ] } [/block] So, we simply added the "tracking" functionality of mixpanel and relayed the event name once a button is clicked on an experience [block:image] { "images": [ { "image": [ "https://files.readme.io/3bb21ef-Screen_Shot_2016-09-07_at_9.42.00_AM.png", "Screen Shot 2016-09-07 at 9.42.00 AM.png", 878, 650, "#437eb4" ] } ] } [/block] * In the example above, we added a number of options to relay event reporting from numerous services You can add any type of logic ( even alert event to your own severs ) and just channel it VIA this functionality.