Skip to content

Instantly share code, notes, and snippets.

@swoboda
Created September 12, 2016 14:55
Show Gist options
  • Save swoboda/a4d95b7fcb2022d96da7926460a18b32 to your computer and use it in GitHub Desktop.
Save swoboda/a4d95b7fcb2022d96da7926460a18b32 to your computer and use it in GitHub Desktop.
hs_beacon_problem_2
<?php
add_action( 'in_admin_footer', 'my_admin_footer_function' );
/**
* Add HS Beacon
*
*/
function my_admin_footer_function() {
?>
<script>!function(e,o,n){window.HSCW=o,window.HS=n,n.beacon=n.beacon||{};var t=n.beacon;t.userConfig={},t.readyQueue=[],t.config=function(e){this.userConfig=e},t.ready=function(e){this.readyQueue.push(e)},o.config={docs:{enabled:!1,baseUrl:""},contact:{enabled:!0,formId:"c66d6d0b-78e5-11e6-91aa-0a5fecc78a4d"}};var r=e.getElementsByTagName("script")[0],c=e.createElement("script");c.type="text/javascript",c.async=!0,c.src="https://djtflbt20bdde.cloudfront.net/",r.parentNode.insertBefore(c,r)}(document,window.HSCW||{},window.HS||{});</script>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment