fix regression when HTTPS URL is different from HTTP Tracker URL, both should be used in the generated tracking code refs #344