Skip to main content
Answered

Adding Identity Verification to a Google Tag Manager implementation, with a C# backend

  • October 13, 2022
  • 1 reply
  • 262 views

A client of us would like us to add Identity Verification to their implementation with Intercom, which is done through Google Tag Manger. I've come across this page: https://www.intercom.com/help/en/articles/2631808-install-intercom-with-google-tag-manager.Which explains how to install intercom itself. It also notes you're able to add an user hash to the Install event. However, its not clear to me how this hash gets to the Install event in GTM, since this is generated in the backend of the application (.NET in this case), and we dont manually send anything to Intercom, since its all done through GTM. Are there any resources that explain how to make sure this hash is added during the Install event (with a backend in .NET and the installation of Intercom in GTM)?

Best answer by Daniel M15

Hey @quirijn​! Daniel from Customer Support Engineering here 🔧 

 

You should be able to achieve this by calculating the user hash on your site's backend or JavaScript, as shown under Settings > Security > Enforce identity on web. Then, Then inject it into your Intercom installation code snippet in order to use it. However, you will need to ensure the user hash is calculated and present on your website before the Intercom installation code is injected by GTM. If you enforce identity verification without adding the correct user_hash this will prevent the messenger loading and throw a 403 error in your browser console. Find out how to set up identity verification here.

 

Hope this helps 😊

View original
Did this topic help you find an answer to your question?

1 reply

Daniel M15
Employee
  • Employee
  • 240 replies
  • Answer
  • October 19, 2022

Hey @quirijn​! Daniel from Customer Support Engineering here 🔧 

 

You should be able to achieve this by calculating the user hash on your site's backend or JavaScript, as shown under Settings > Security > Enforce identity on web. Then, Then inject it into your Intercom installation code snippet in order to use it. However, you will need to ensure the user hash is calculated and present on your website before the Intercom installation code is injected by GTM. If you enforce identity verification without adding the correct user_hash this will prevent the messenger loading and throw a 403 error in your browser console. Find out how to set up identity verification here.

 

Hope this helps 😊


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings