how to install heapanalytics

  • Unknown's avatar

    trying to install heapanalytics code to use their service.. is that not possible on wp.com?

    To get started with Heap, paste the following code snippet before your website’s closing </head> tag:

    <script type=”text/javascript”>
    window.heap=window.heap||[],heap.load=function(t,e){window.heap.appid=t,window.heap.config=e;var a=document.createElement(“script”);a.type=”text/javascript”,a.async=!0,a.src=(“https:”===document.location.protocol?”https:”:”http:”)+”//cdn.heapanalytics.com/js/heap-“+t+”.js”;var n=document.getElementsByTagName(“script”)[0];n.parentNode.insertBefore(a,n);for(var o=function(t){return function(){heap.push([t].concat(Array.prototype.slice.call(arguments,0)))}},p=[“clearEventProperties”,”identify”,”setEventProperties”,”track”,”unsetEventProperty”],c=0;c<p.length;c++)heap[p[c]]=o(p[c])};
    heap.load(“3126273355”);
    </script>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there!

    Third party plugins and code cannot be installed on WordPress.com sites. This is a security risk as we cannot vet all outside code and it puts our users, their sites, and our servers at risk.

    Plugins, and the type of code you want to install, are only usable on self-hosted WordPress.org sites.

    I know the difference between .com and .org can get confusing, so here’s a breakdown of the benefits of each:
    http://en.support.wordpress.com/com-vs-org/

    Sometimes, even without the installation of a plugin, we can help you gain the function you’d like here at WordPress.com. If you let me know your goals, perhaps I can help further.

    Please let me know! Cheers.

  • The topic ‘how to install heapanalytics’ is closed to new replies.