Top
Integrate Whatfix with Google Tag Manager using JavaScript
  • 19 Sep 2024
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Integrate Whatfix with Google Tag Manager using JavaScript

  • Dark
    Light
  • PDF

Article summary

How to pass custom variables from Google Tag Manager to Whatfix?

To pass on custom variables, add the following code snippet to the Whatfix tag;

<script language='javascript' async='true' type='text/javascript'>
    window._wfx_data = {
        "data_type1": {{tag value1}},
        "data_type2": {{tag value2}}
    };
</script>


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.