1. Branko Vukelic
  2. django-heap

Commits

Branko Vukelic  committed ab3022a

Added basic template

  • Participants
  • Parent commits 1e44d89
  • Branches master

Comments (0)

Files changed (1)

File heap/templates/heap/script.html

View file
+{% if HEAP_APP_ID and not HEAP_USER_UNTRACKABLE %}
+<script type="text/javascript">
+    var heap=heap||[];heap.load=function(a){window._heapid=a;var b=document.createElement("script");b.type="text/javascript",b.async=!0,b.src=("https:"===document.location.protocol?"https:":"http:")+"//d36lvucg9kzous.cloudfront.net";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c);var d=function(a){return function(){heap.push([a].concat(Array.prototype.slice.call(arguments,0)))}},e=["identify","track"];for(var f=0;f<e.length;f++)heap[e[f]]=d(e[f])};
+    heap.load("{{ HEAP_APP_ID }}");
+</script>
+{% endif %}