Problem with HTTP & HTTPS - SSL

Hi,

We have two sites that we need to track as one i.e. with the same tracking code.

The first site is a wordpress site and works without SSL i.e. http://firstsite.com and the second site is an ASP .Net app
that runs under SSL i.e. https://secondsite.com.

When both sites were accessible without SSL the tracking works well.

When we installed SSL on the second site. It wasn’t tracking.

We installed SSL on our Piwik installation to resolve that issue as per the Piwik documentations General - Analytics Platform - Matomo so our Piwik installation is now https://myPiwik.com

Now when SSL is installed the second site that runs with SSL is tracking but the first site that runs on http isn’t tracking.

Any ideas?

Thanks