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.
Hi, there’s a switcher for that:
You could also create a cookie variable checking the value of stg_debug
cookie.
I saw the switch, but that’s only to prevent a tag from firing, I want it to fire but with other variables. So I’ve solved it like this:
@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.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.