Re: How does Marketo Munchkin code make compliance with EU Cookie Law

Jay00031987
Level 4

How does Marketo Munchkin code make compliance with EU Cookie Law

1. Is there a way around to manage Munchkin code w.r.t to  EU Cookie Law and

2. how can we customize the Munchkin code in such a way so that it can trace visit web page and other click activity but not the the IP address

Jay
5 REPLIES 5
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: How does Marketo Munchkin code make compliance with EU Cookie Law

  • You can initialize Munchkin JS (i.e., run the Munchkin.int()) after visitors agree to accept the tracking cookies. Save their opt-in preference in their browser cookies so you don't have to ask them again if they re-visit from the same browser.
  • You can set the anonymizeIP property to true to anonymize the IP address recorded in Marketo for new visitors. This requires Muchkin V2, and you can check if your instance has Munchkin V2 via the instruction provided on the Munchkin Configuration page > Properties > anonymizeIP property row's Description.
Jay00031987
Level 4

Re: How does Marketo Munchkin code make compliance with EU Cookie Law

 

is this correct way to anonymize IP address
Munchkin.init('xxx-xxx-xxx',{'anonymizeIP': true});

 

 

<script type="text/javascript">

(function() {

  var didInit = false;

  function initMunchkin() {

    if(didInit === false) {

      didInit = true;

      Munchkin.init('xxx-xxx-xxx',{'anonymizeIP': true});

  

  }

  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') {

      initMunchkin();

    }

  };

  s.onload = initMunchkin;

  document.getElementsByTagName('head')[0].appendChild(s);

})();

</script>

 

Jay
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: How does Marketo Munchkin code make compliance with EU Cookie Law

Yes, that's correct! You should add the config parameters to the Munchkin.init(). Did you verify that your Marketo is equipped with Munchkin V2? You can do a DNS lookup for this address: [your instance's Munchkin id].mktoresp.com. If the IP address is one of the following, your instance should have V2 enabled:

  • 192.28.144.124
  • 134.213.193.62
  • 192.28.147.68
  • 103.237.104.82

 

 

mdurwin
Level 1

Re: How does Marketo Munchkin code make compliance with EU Cookie Law

What the heck is a munchkin code? Is it a secret handshake with a little person from the land of Oz or the recipe for Dunkin' Donuts holes?

Jo_Pitts1
Level 10 - Community Advisor

Re: How does Marketo Munchkin code make compliance with EU Cookie Law

@mdurwin ,

munchkin is Marketo's tracking system (at it's simplest, it's what allows marketo to track web pages visited).

Cheers

Jo