Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Filter internal and external user traffic in GA for HelpCenter like portal using Scroll Viewport

Santosh Mantri
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 26, 2024

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.

1 answer

0 votes
Mia Tamm _Simpleasyty_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2025

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:

  1. Use Scroll Viewport’s theme extension to inject a small JS snippet that checks for something that distinguishes users — e.g., their email domain (@company.com for internal).
  2. Then push that info to GA as a custom dimension (like userType: internal/external).

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events