7 Replies Latest reply on Jun 5, 2017 9:37 AM by Steven Vanderberg

    2 Munchkin codes on 1 page error

    Ariel Sasso

      Howdy Ya'll,



      I managed to get the javascript with both munchkin codes on the page, and it is firing correctly for one instance. The other instance is not showing any activity, or it takes an hour for it to load and I can't tell if it is my click or someone elses that registered.


      Any thoughts on why it would be firing correctly on one and not the other, or why there would be a delay?


      Code below


      <script type="text/javascript">

      (function() {

        var didInit = false;

        function initMunchkin() {

          if(didInit === false) {

            didInit = true;

            Munchkin.init('699-YLV-293', { altIds : ['986-JMD-215'] });



        var s = document.createElement('script');

        s.type = 'text/javascript';

        s.async = true;

        s.src = '//munchkin.marketo.net/munchkin-beta.js';

        s.onreadystatechange = function() {

          if (this.readyState == 'complete' || this.readyState == 'loaded') {




        s.onload = initMunchkin;