Adds Heap
Torey Heinz
committed Apr 19, 2020
commit cdc2535db8b30e2c0658f8467258df7cd23ee936
Showing 1
changed file with
8 additions
and 0 deletions
src/main.js
+8
-0
| @@ | @@ -10,4 +10,12 @@ export default function (Vue, { router, head, isClient }) { |
| Vue.component("ContactForm", () => import("~/components/ContactForm.vue")) | |
| Vue.component("VolunteerForm", () => import("~/components/VolunteerForm.vue")) | |
| + | |
| + | head.script.push({ |
| + | type: 'text/javascript', |
| + | innerHTML: ` |
| + | window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid = e, window.heap.config = t = t || {};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments, 0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])}; |
| + | heap.load("2058813946"); |
| + | ` |
| + | }) |
| } | |