Skip to main content
Solved

Community & Google Analytics with Custom Profile Fields

  • September 25, 2024
  • 3 replies
  • 39 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.

3 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.  :)