How to turn off logging for Tealium web?

334 Views Asked by At

When I use tealium on dev env I can see a lot of info in my console that I don't need.

As I understand on each utag.view() or utag.link() Tealium calls log() function.

How can I turn this behavior off?

I only found some info for mobile developers who met same problem, but have no ideas how to do that for web.

What I can see in Tealium source is following:

if (b["tealium_environment"] !== "prod" || b["cp.utagdb"] === "true") {
  console.log(...);
}

So, it seems like the only way is to set tealium_environment to prod... but I think it's not an option, cause as I assume my prod settings will be used for my local dev.

1

There are 1 best solutions below

1
On

The debug output that you are sharing from the code is specific to your Tealium profile and is not a default behaviour for Tealium profiles.

You could find that extension and either disable it, or add some additional logging on it (e.g. you could set a condition to not log if a cookie named ignore_teal_logs was set to true).