Can a domain site and it’s subdomain site both use the same google analytic code ?
How to add subdomain details in the auto generated sitemap.xml ?
Yes, it is possible to use to use the same Google analytic code for your sub-domain. Would you specify what sitemap you are using? Is it a Google or Yahoo one?
I think yes, because some people install blog or create blog and keep the analytics account as same as the main domain.
Yes. That’s the way it should be. Copy the only code that google will give you for your domain and paste it all of your pages.
You don’t have to generate sitemap.xml for your subdomain. What matters most is you have a sitemap.html page where all your subdomains and pages are listed. Note that you must have a link of your html sitemap page index page so that every time bots crawl you index page, bots will also index your subdomains and subpages.
What about multiple sites using the same Analytics and WMT accounts?
Cheers
You can have multiple sites in the same account. Whenever you add a site to your account, analytics will generate a new code for each site.