Google Analytics for SubDomain?

Hi! Guys, Which is best practice to track subdomain and main domain for SEO.

Tracking both domains under single web property in Analytics
Tracking both domains separately using separating Tracking ID

and how to implement it in Squarespace website?