Re: Tracking root domain

Anonymous
Not applicable

Tracking root domain

Hi,

We are implementing Munchkin tracking for our global country sites and due to regional requirements, we have sites that are setup with country extensions such as www.xyz.com.ar, www.xyz.com.br. While the standard munchkin code works fine for the .com and any sub-domains such as abc.xyz.com, tracking doesn't seem to be working for the regional country domains. Do you have any recommendations on the setup or implemented something similar for your sites?

Marketo team suggesting replacing the code as below. However, I believe this is for sub-domains, not applicable to any root domains, per their documentation.@

  1. Munchkin.init("XXX-XXX-XXX"); needs to be replaced with the below
  1. Munchkin.init("XXX-XXX-XXX",{ domainLevel : 2 });

Thanks

Uday

3 REPLIES 3
Anonymous
Not applicable

Re: Tracking root domain

I referred to Marketo documentation for domain level tracking for the scenario we have issues with. However, we do not see this working.

domainLevel

Munchkin will automatically manage certain two letter top-level domains.

This defaults to two parts in normal cases where the top-level domain is three letters. For example “www.example.com”, the two rightmost parts will be used to set the cookie, “.example.com”.

For two letter country codes such as “.jp”, “.us”, “.cn”, and “.uk”, the code will default to three parts. For example “www.example.co.jp” will use three rightmost domain parts, “.example.co.jp”.

If the domain pattern requires a different behavior, then this must be specified using the domainLevel parameter.

SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking root domain

Please read my blog post on this topic: http://blog.teknkl.com/munchkin-2-letter-tlds-broken/

Anonymous
Not applicable

Re: Tracking root domain

Sanford - Appreciate your quick response. Your replies are always helpful. I will review and see if I have any questions