3K members online now
3K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
Guide Me

HTTPS filter

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello, it's possible do a filter to see ONLY HTTPs traffic in a separated view?
I saw the URI field, but this do not include the protocol.

1 Expert replyverified_user

Re: HTTPS filter

[ Edited ]
Top Contributor
# 2
Top Contributor

Hi Erick,

you need a discriminating element such as a hit-level custom dimension capturing the protocol.
Using GTM you can easily capture that information in a variable from the URL component.
If you need custom code, you can use the following:


// before or inside GA code but before the pageview call
var _dlp = document.location.protocol;

// the modified pageview call

Of course the above code implies you defined a custom dimension at the property level.


Then at the view level, create inclusion/exclusion filters based on custom dimension 1.

VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan