Skip to content

Commit

Permalink
Merge pull request #66 from solo-io/adb-marketo
Browse files Browse the repository at this point in the history
Add Marketo code
  • Loading branch information
Nadine2016 authored May 4, 2023
2 parents ca3f24c + f0d1151 commit 554e6e6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/v0.0.25/marketo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
- type: NON_USER_FACING
description: Add Marketo analytics code to header.
issueLink: https://github.com/solo-io/doctopus/issues/82
resolvesIssue: false
26 changes: 25 additions & 1 deletion layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,28 @@
drift.load('64mhzu4y6fxb');
</script>
<!-- End of Async Drift Code -->


<!-- Marketo code -->
<script type="text/javascript">
(function() {
var didInit = false;
function initMunchkin() {
if(didInit === false) {
didInit = true;
Munchkin.init('132-VJP-402');
}
}
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = '//munchkin.marketo.net/munchkin.js';
s.onreadystatechange = function() {
if (this.readyState == 'complete' || this.readyState == 'loaded') {
initMunchkin();
}
};
s.onload = initMunchkin;
document.getElementsByTagName('head')[0].appendChild(s);
})();
</script>
<!-- End of Marketo code -->

0 comments on commit 554e6e6

Please sign in to comment.