Integrate Heap, Segment, Branch in Meteor Application
Heap Integration
Step 1: Open http://www.heapanalytics.com and signup for new account.
Step 2: Now go to https://heapanalytics.com/app/account and find your API Code to use in your Javascript source code. When you go live make sure you have production key option selected.
Step 3: Place this code in your javascript as shown below.
<script type = "text/javascript" > window.heap = window.heap || [], heap.load = function(e, t) { window.heap.appid = e, window.heap.config = t = t || {}; var r = t.forceSSL || "https:" === document.location.protocol, a = document.createElement("script"); a.type = "text/javascript", a.async = !0, a.src = (r ? "https:" : "http:") + "//cdn.heapanalytics.com/js/heap-" + e + ".js"; var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(a, n); for (var o = function(e) { return function() { heap.push([e].concat(Array.prototype.slice.call(arguments, 0))) } }, p = ["addEventProperties", "addUserProperties", "clearEventProperties", "identify", "removeEventProperty", "setEventProperties", "track", "unsetEventProperty"], c = 0; c < p.length; c++) heap[p[c]] = o(p[c]) }; heap.load("2401140060"); </script>
To know more about mobile and other options visit https://heapanalytics.com/docs/installation web page.
Continue…
Integrate Heap, Segment, Branch in Meteor Application was last modified: May 25th, 2017 by