Hello,
We have implemented the Help Center portal with SSO authentication. We also have enabled the analytics for page-view and user activity using GA. All this is working like charm.
Our both internal and external users are using same portal and the activities of both the type of users are getting reported in GA, this skews our reports. I am looking for the help where we can differentiate internal vs external traffic in GA reports.
Any guidance on this is highly appreciated.
Thanks.
Hi @Santosh Mantri ,
This is a common challenge when using Scroll Viewport with Google Analytics, especially if both internal and external users access the same portal via SSO.
One practical solution is to add a custom dimension or custom user property in GA, based on user type (internal vs. external). Since Scroll Viewport lets you inject JavaScript, you could:
Example (simplified):
if (window.scrollViewport && scrollViewport.user && scrollViewport.user.email) {
const isInternal = scrollViewport.user.email.endsWith('@yourcompany.com');
gtag('set', 'user_properties', {
userType: isInternal ? 'internal' : 'external'
});
}
Once this is working, you can filter or segment your GA reports using userType.
Hope that helps — let me know if you want a more detailed setup!
— Mia Tamm from Simpleasyty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.