How did you add your multiple marketo munchkin codes to your website? Is each instance on your webpage, or do you have a single script with all the munchkin id's? Can you send me a sample page with your munchkin code on it? Are you sure you are cookied? I have run into a similar situation and may be able to help you solve for it with a little more information.
2 of 2 people found this helpful
First, let's use the right terms.
- The TLD of www2.example.com is com.
- The TLD of www2.example.co.uk is technically uk.
- The effective TLD (which is based on the Public Suffix List) of www2.example.co.uk is co.uk. (The eTLD represents the level at which new names can be registered.)
Now, there's nothing unusual about your URL structure at all. You're just using regional pathnames. The Munchkin cookie is set for the root path ( / ) and cascades to all the paths under the root. In other words, that's not your problem.
Munchkin does have a problem with 2-letter TLDs out-of-the-box, as described here: https://blog.teknkl.com/munchkin-2-letter-tlds-broken/. But if you don't have a 2-letter TLD this does not apply.
I can only help you more if you provide your real DNS domain(s) and sample URLs.
Thanks for the elaborate response.
Our domain is www2.deloitte.com. However, because we're a local office, we only manage www2.deloitte.com/nl/nl.html. Here we have implemented the Munckin cookie of our Marketo instance. However, our colleagues in the UK manage their own Marketo instance and have their own Munchkin cookie set at https://www2.deloitte.com/uk/en.html.
Hope this helps to investigate the problem. Let me know if you have questions.
1 of 1 people found this helpful
Ah, 2 different Munchkin IDs. There isn't a built-in way to create path-bound cookies. I'll post custom code later that shows you how to do it.
That would be very helpful Hope it will solve our problem! Let me know if you need additional info.
Frank sorry to make you wait on this. Had the code ready since Friday, decided it deserved to be elevated to a blog post... but haven't found the time to write the couple of intro paragraphs!
So for now let's keep it in this thread, will move to the blog later with fuller explanation.
The code is in the JS pane of the CodePen here:
You'll need a copy of the FormsPlus::Util 1.0.6 JS library as linked in the first line. (Download and reupload the .js file to your Marketo server and change the URL, don't try to load it directly from the demo URL.)
Then directly after that include the inlinealso in the JS pane. Substitute your Munchkin ID for "123-ABC-456".
After that, continue with your standard Munchkin embed. That is, use the exact same script order as in the demo: FormsPlus::Util JS, then the special code to allow per-path cookies, then the standard Munchkin embed.