Skip to content

Instantly share code, notes, and snippets.

@cbetz
Created May 5, 2022 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbetz/983c0d255812b5388a28ec037b3ed390 to your computer and use it in GitHub Desktop.
Save cbetz/983c0d255812b5388a28ec037b3ed390 to your computer and use it in GitHub Desktop.
Pendo index.html example
<!-- rest of your index.html -->
<script>
(function(apiKey){
(function(p,e,n,d,o){var v,w,x,y,z;o=p[d]=p[d]||{};o._q=o._q||[];
v=['initialize','identify','updateOptions','pageLoad','track'];for(w=0,x=v.length;w<x;++w)(function(m){
o[m]=o[m]||function(){o._q[m===v[0]?'unshift':'push']([m].concat([].slice.call(arguments,0)));};})(v[w]);
y=e.createElement(n);y.async=!0;y.src='https://cdn.pendo.io/agent/static/'+apiKey+'/pendo.js';
z=e.getElementsByTagName(n)[0];z.parentNode.insertBefore(y,z);})(window,document,'script','pendo');
})('your-key-goes-here');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment