Skip to main content
Answer

How to disable typeform GTM based on cookie consent

  • March 22, 2023
  • 3 replies
  • 201 views

We ask our users if they wish to allow cookie based tracking and if they reject it we wish to disable any reporting to GTM. How can I achieve this with TypeForm?

Best answer by mathio-tf

I dont think you can disable GTM via embed attribute.

There is a cookie consent banner that can be displayed in your form. I was told it will soon support loading GTM as well.

3 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • March 23, 2023

Hi @samparmenter I believe you would need to create your own code for this, but @mathio might know for sure!


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Answer
  • March 23, 2023

I dont think you can disable GTM via embed attribute.

There is a cookie consent banner that can be displayed in your form. I was told it will soon support loading GTM as well.


  • Author
  • Explorer
  • March 23, 2023

So we can’t block GTM related events when the user decides to reject the use of non essential cookies? Thats a shame.