Munchkin Returning Wrong Domain Value for Tracked Page

Issue

You have deployed Munchkin tracking on the domain Example Domain and the tracked domain is showing as ".www.example.com" when it should be "example.com".

Solution

To resolve this, make sure you have the correct settings on the domainLevel property in the Munchkin code. Details can be found here:

http://developers.marketo.com/javascript-api/lead-tracking/configuration/

Just be aware that domain levels are counted from left to right: domain3.domain2.domain1

For: http://www.example.com

.com = level 1

.example.com = level 2

www.example.com = level 3