How does Marketo Munchkin code make compliance with EU Cookie Law | Community
Skip to main content
New Participant
July 7, 2023
Question

How does Marketo Munchkin code make compliance with EU Cookie Law

  • July 7, 2023
  • 1 reply
  • 2188 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Darshil_Shah1
Community Manager
July 7, 2023
  • 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.
New Participant
July 7, 2023

 

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
Community Manager
July 7, 2023

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