Created
September 26, 2023 15:56
-
-
Save thyngster/ad39d9ea2d7419d30ba30749f02c18c4 to your computer and use it in GitHub Desktop.
check_optimize_containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Returns a list of current Optimize Containers on a page | |
alert(`Found Optimize Containers: ${Object.keys(window.google_tag_manager || []).filter(e=> e.match(/^(GTM|OPT)/) && !window.google_tag_manager[e].onHtmlFailure)}`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment