Is there a variable to detect if tag manager is running in debug mode? Or another method to accomplish this?
I’m trying to avoid debug data to end up in production analytics.
Is there a variable to detect if tag manager is running in debug mode? Or another method to accomplish this?
I’m trying to avoid debug data to end up in production analytics.
@kuba is this stg_debug cookie still the way to detect debug mode with the new release of debug mode?
Hi @rmeekers, the new debug mode no longer supports the cookie-based solution. We’re currently developing an alternative approach that won’t rely on cookies.
I’ll keep you updated once it’s ready and share more details then.
ok, any idea on what term this would be available?
Hi @rmeekers, you can use this approach:
In a tag or variable, use window.sevenTag.api.isDebugModeEnabled() call. This will be true if debug mode is enabled, and false otherwise.
Note: The window.sevenTag.api object is available only after the installation snippet is executed.
EDIT: The description is accurate, but a release update is required first. It will be ready by March 11 at the latest.
@rmeekers, changes have been released. You can verify it yourself.