In Google Analytics, create a new view for your property, then go to Admin > Filters and add a new filter. Choose Custom for Filter Type, select Include, and specify the hostname of the subdomain. This allows for the separate analysis of traffic to different subdomains.