Tracking root domain | Community
Skip to main content
July 17, 2017
Question

Tracking root domain

  • July 17, 2017
  • 2 replies
  • 2140 views

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

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

2 replies

July 17, 2017

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
July 17, 2017

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

July 17, 2017

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