I own a domain .com that it has locales (domain.com/en, domain.com/fr).
The main site is a custom wordpress installed in the root of the site, and the /en, /fr, /de localizations in folders are independent wordpress deployments - using the same db. I took this decision because the content of different locales is stighltly different also. Still, i haven't setup subdomains like de.domain.com, fr.domain.com, en.domain.com. Do you have any idea how to track those independent installs using the same analytics code of the main domain?
For the main domain i use Simply Google Analytics plugin.