4 Replies Latest reply on Dec 15, 2016 4:49 AM by John Danielson

    Munchkin Code

    John Danielson

      We recently launched a new website and it seems like our munchkin code is no longer working properly. The code on our new site is the exact same code that was copied from the old site, but for some reason now almost all (90-95%) of our leads our coming in with the same Inferred City (Ashburn, VA) and Inferred Company (Amazon.com). What's odd is there are occasional leads that come through with something else, which makes me think the munchkin code is working sometimes. When I contacted Marketo, they told us to move the code closer to the </body> tag, but that didn't make a difference. I had a member of our IT team look at the code and he suggested switching from the Simple version to the Asynchronous jQuery version. Does that make sense?

       

      Note: There is a slight difference in what we have on our site and what Marketo provided, but it was copied from the old site where it was working, so I'm not sure why it doesn't on the new site!

       

       

      Here's what Marketo provided us:

       

      <script type="text/javascript">

      document.write(unescape("%3Cscript src='//munchkin.marketo.net/munchkin.js' type='text/javascript'%3E%3C/script%3E"));

      </script>

       

      Here's what we have on our site  (part that is different from what Marketo provides in bold and red):

       

      <script type="text/javascript">

          document.write(unescape("%3Cscript src='" + document.location.protocol +

            "//munchkin.marketo.net/munchkin.js' type='text/javascript'%3E%3C/script%3E"));

          </script>

       

      Thanks!


      JD