Skip to main content
johntrask_bt
Helper ⭐️
Sep 25, 2024 1:56 PM UTC
Solved

Community & Google Analytics with Custom Profile Fields

We recently started using Google Analytics with our Community. Has anyone ever added anything to the GTAG script to send custom user profile fields up to GA?  We are looking to break out the Audience by customer type.

Kenneth R
Kenneth RAnswer
Expert ⭐️⭐️
Oct 1, 2024 8:36 AM UTC

Hi @johntrask_bt - there’s no way to directly do this, as our insidedData object doesn’t include custom profile fields. If you can use a custom role instead, then it would be possible as that’s included in the insidedData object.  Otherwise you’d need to build something via API.

7 replies

Kenneth R
Kenneth RAnswer
Expert ⭐️⭐️
Oct 1, 2024 8:36 AM UTC

Hi @johntrask_bt - there’s no way to directly do this, as our insidedData object doesn’t include custom profile fields. If you can use a custom role instead, then it would be possible as that’s included in the insidedData object.  Otherwise you’d need to build something via API.

Translate
johntrask_bt
Helper ⭐️
Oct 1, 2024 11:44 AM UTC

Thanks, @Kenneth R - I ended up doing just that.

Translate
JohnTrask
Kenneth R
Expert ⭐️⭐️
Oct 1, 2024 11:46 AM UTC

Ok, great to hear that you got it sorted.  :)

Translate
ryanne.perry
Helper ⭐️
Dec 2, 2025 4:34 PM UTC

Hi ​@johntrask_bt ​@Kenneth R I just came across this thread as we are looking to do something similar, is there any documentation that supports setting up the script with a custom role?

Translate
🌻 Ryanne
revathimenon
Gainsight Community Lead
Dec 17, 2025 12:39 PM UTC

Hey ​@ryanne.perry 

Sorry for getting to this late - could you please share any specifics to what you want to do with the custom role?

Translate
Where focus goes, energy flows.
ryanne.perry
Helper ⭐️
Dec 18, 2025 5:35 PM UTC

Thank you for getting back to me ​@revathimenon! My goal is to better understand the behaviors of our customers in Community, we do have a custom role for them called ‘Customer’ - we are also looking at adding partners to the mix early next year so we would want to differentiate their behaviors as well.

Translate
🌻 Ryanne
revathimenon
Gainsight Community Lead
Dec 19, 2025 5:38 AM UTC

Hi ​@ryanne.perry 

Gotcha - thanks for sharing!

I think you have a running ticket with support to solve this? 

If not, please let me know and i’ll continue to dig internally to get you an answer for this one.

Translate
Where focus goes, energy flows.