1

My site serves pages as both HTTP and HTTPS (no forwarding from HTTP to HTTPS, both return 200s). I have GA tracking on the pages and I see traffic generated from both HTTP and HTTPS page loads. Is there a filter/report I can run in GA to show for a particular page what proportion of pageviews were HTTP vs HTTPS?

1

There does not seem to be a way to do this built into Google Analytics. Google Analytics doesn't have "protocol" or even "request URI" as a dimension that could be used to create an advanced segment.

One option would be to create views with filters for each of HTTP and HTTPS. We have a question here about how to do that: How do I filter HTTPS URLs in Google Analytics? You would then have to switch views to see stats about some page.

Another way to do it would be to create a custom dimension. You would need to alter your GA snippet to add code like:

ga('set', 'dimension1', location.protocol);

You could then create an advanced segment based on this dimension1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.