--- title: "Integrate Whatfix with Google Tag Manager using JavaScript" slug: "google-tag-manager" updated: 2026-08-10T06:15:29Z published: 2026-08-10T06:15:29Z canonical: "support.whatfix.com/google-tag-manager" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.whatfix.com/llms.txt > Use this file to discover all available pages before exploring further. # Integrate Whatfix with Google Tag Manager using JavaScript [Embedded content](https://cdn.whatfix.com/prod/45dba1cc-fb59-4dee-ab37-a68ac38ca9ad/deck.html?closeable=false&stage=production&state=null&true=undefined&preview_mode_enabled=false&entId=45dba1cc-fb59-4dee-ab37-a68ac38ca9ad&nolive=1&data-wfx-namespace=main_%24#!/64c4df8d-0e80-4af4-b4e1-2f789ea9c1f1/) ### 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; ```plaintext ``` ## Related - [Integrations](/integrations.md)