Skip to main content
Solved

Community & Google Analytics with Custom Profile Fields

  • September 25, 2024
  • 7 replies
  • 93 views

johntrask_bt
Forum|alt.badge.img+5

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.

Best answer by Kenneth R

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
Forum|alt.badge.img+5
  • Expert ⭐️⭐️
  • Answer
  • October 1, 2024

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.


johntrask_bt
Forum|alt.badge.img+5
  • Author
  • Contributor ⭐️⭐️⭐️⭐️⭐️
  • October 1, 2024

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


Kenneth R
Forum|alt.badge.img+5
  • Expert ⭐️⭐️
  • October 1, 2024

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


ryanne.perry
  • Helper ⭐️
  • December 2, 2025

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?


revathimenon
Forum|alt.badge.img+8
  • Gainsight Community Manager
  • December 17, 2025

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?


ryanne.perry
  • Helper ⭐️
  • December 18, 2025

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.


revathimenon
Forum|alt.badge.img+8
  • Gainsight Community Manager
  • December 19, 2025

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.