Google Analytic Tracking with www or .yourdomianname.com

Have you setup your Google Analytics or Google Search Console to www.DomainName.com or .DomainName.com because if you don’t pick the wright one you will not be tracking your site correctly. 

Recent years I’ve put this to the test on several sites to see the results.  What I have found is the setup should only have .domainname.com only and not www.  See the picture below.