To reconfigure your Google Analytics profile to work via https, login to Analytics with your Google account.
Select the site/property you want to reconfigure and press on Admin at the bottom of the left menu.
Under the Property tab, select Property Settings menu.
Finally, change the Default URL property to HTTPS and save the changes.
Google Analytics will now properly detect your site traffic through https.