Skip to main content
Solved

User-ID feature from GA4

  • February 2, 2024
  • 9 replies
  • 113 views

Does anyone uses the User-ID feature from GA4 to better track Gainsight users? Can someone guide me on how to configure it?

Best answer by olimarrio

Hi @VarshaAhir 👋,

You could either:

  1. Use the inSidedData object to obtain the user ID of the logged in user and then this could be used as a unique ID.
  2. As the inSidedData object does not contain the email address (only has the user ID) then you could perhaps maybe capture the email address when the user logs in and then set it as a cookie value (so that it can be loaded on every community page afterwards).

Both would require custom JavaScript to be able to achieve this. 

Number 1 would be the most logical and least error prone option but it would require more effort to set up as you’d need to map the User IDs on Gainsight CC to the user in GA4, as documented here:

 

9 replies

Alistair FIeld
Forum|alt.badge.img+4

Morning @VarshaAhir 

This is not something I personally have explored. I will ask around the CS Team if they have any customers doing the like. 

 


  • Author
  • Contributor ⭐️⭐️⭐️
  • February 13, 2024

That would be great @Alistair FIeld. Thank you for looking into it. Let me know if you need any additional info. I look forward to your response.  


olimarrio
Forum|alt.badge.img+5
  • Gainsight Employee ⭐️
  • Answer
  • February 14, 2024

Hi @VarshaAhir 👋,

You could either:

  1. Use the inSidedData object to obtain the user ID of the logged in user and then this could be used as a unique ID.
  2. As the inSidedData object does not contain the email address (only has the user ID) then you could perhaps maybe capture the email address when the user logs in and then set it as a cookie value (so that it can be loaded on every community page afterwards).

Both would require custom JavaScript to be able to achieve this. 

Number 1 would be the most logical and least error prone option but it would require more effort to set up as you’d need to map the User IDs on Gainsight CC to the user in GA4, as documented here:

 


  • Author
  • Contributor ⭐️⭐️⭐️
  • February 20, 2024

Thank you for your response @olimarrio, very useful. Can you share the Insided Data Object link as the one you hyperlinked is not available.  


TomW
  • Helper ⭐️⭐️
  • February 20, 2024

@VarshaAhir 

 


  • Author
  • Contributor ⭐️⭐️⭐️
  • February 20, 2024

@VarshaAhir

 

Thank you @TomW


olimarrio
Forum|alt.badge.img+5
  • Gainsight Employee ⭐️
  • February 21, 2024

Happy this is useful @VarshaAhir and thanks for the assist @TomW ⛹


  • Author
  • Contributor ⭐️⭐️⭐️
  • February 29, 2024

Follow up question: can GA4 be tracked using Tag Manager? Trying to find the easiest solution since creating custom Javascript is out of my skillset and available resources. Thank you. 


olimarrio
Forum|alt.badge.img+5
  • Gainsight Employee ⭐️
  • March 1, 2024

@VarshaAhir I’m no GA4 expert but I believe you can. I’m wondering if this documentation helps provide what you are looking for?