TagManager.RefreshMode

  • TagManager.RefreshMode is an enum used for controlling how a Tag Manager container is refreshed.

  • DEFAULT_CONTAINER is for development purposes only and uses a local default container, allowing for quick testing without server-side changes.

  • STANDARD is the default refresh mode that automatically refreshes containers from the network every 12 hours and allows for manual refreshes via refresh().

public static final enum TagManager.RefreshMode

Mode for refreshing the container.

Enum Values

public static final TagManager.RefreshMode DEFAULT_CONTAINER

In this mode, the default container is always used (the container will not load a version from the network or disk). This mode is intended for development only and not for shipping code.

This mode allows developers to add new value collection macro key/value pairs locally and then to use the JSON default container to test them quickly without having to add those key/value pairs to the container using the GTM UI.

public static final TagManager.RefreshMode STANDARD

In this mode, containers are automatically refreshed from network every 12 hours. Developers can also call refresh() to manually refresh containers.

This is the default mode.