Trigger custom code tag on dataLayer event

I have a custom code (async) tag that handles order confirmation. It has a data layer event trigger such that it triggers when event name contains ‘order_confirmation’. But it doesn’t trigger in the debugger. On the screenshot, I found the ‘order_confirmation’ data layer event in events log (which means it was called), no tags were fired in ‘Related tags’, I clicked on the one I want to fire and check conditions (bottom of the screenshot) and it says the condition wasn’t met.

Hi @Reggie,

This can happen when you did not gave a particular consent that the tag you are using requires. For example:

  • Tag have a consent type: Analytics.
  • User visits the page and does not give Analytics consent.
  • Event that should trigger the tag does not do that (shows X next to the trigger) becuase the consent was not given.

Let me know if that was the case here. If not please share with me (for example via private message) where can I check this setup

Best,
Oliwer

1 Like

Hello, yes this was the problem. Thank you!