{"_id":"57deae23b269380e0020a0e8","__v":0,"category":{"_id":"57b97748306b9b0e001dd53f","__v":0,"version":"57b96d6b1d08500e00bf81d1","project":"54861bb654b3ce0b00367292","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-08-21T09:41:28.604Z","from_sync":false,"order":6,"slug":"android-setup","title":"Cordova / Essentials KIt"},"project":"54861bb654b3ce0b00367292","version":{"_id":"57b96d6b1d08500e00bf81d1","__v":7,"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"},"parentDoc":null,"user":"548d74b716fc980b00e2a786","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-18T15:09:23.334Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"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\": \"window.elasticode.setThirdPartyAnalytics(\\n  \\\"mixpanel\\\", \\n  function(eventName){\\n    //console.log(\\\"mixpanel - \\\"+eventName);\\n    //window.mixpanel.track(eventName, {}, function(){}, function(){});\\n  }\\n);\",\n      \"language\": \"javascript\"\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":"Cordova / Essentials KIt: Extra setup / 3rd party analytics","slug":"extra-setup-3rd-party-analytics-2","type":"basic","title":"Extra setup / 3rd party analytics"}

Extra setup / 3rd party analytics

Cordova / 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": "window.elasticode.setThirdPartyAnalytics(\n \"mixpanel\", \n function(eventName){\n //console.log(\"mixpanel - \"+eventName);\n //window.mixpanel.track(eventName, {}, function(){}, function(){});\n }\n);", "language": "javascript" } ] } [/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.