Skip to content

Commit

Permalink
Initialize Pendo Script (#657)
Browse files Browse the repository at this point in the history
* Initialize Pendo Script

* remove dummy visitor and account data
  • Loading branch information
vibhanshub authored Dec 13, 2024
1 parent 6edef6e commit 1424b23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-pugs-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@gitbook/integration-pendo': patch
---

Initialize Pendo script
3 changes: 3 additions & 0 deletions integrations/pendo/src/script.raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@
y.src = `${cdn}/agent/static/` + apiKey + '/pendo.js';
z = e.getElementsByTagName(n)[0];
z.parentNode.insertBefore(y, z);
y.onload = function () {
pendo.initialize({});
};
})(window, document, 'script', 'pendo');
})('<TO_REPLACE>');

0 comments on commit 1424b23

Please sign in to comment.