There is a default message that appears in some stores, always at the bottom of the site (footer), and the goal of this topic is to help you remove it.
If the following message appears in your site’s footer:
// The outer self-invoking function serves to encapsulate the logic // and avoid polluting the global namespace with the intermediate variables used in the script.
It was most likely inserted there during the GTM installation on your store.
VTEX provides a container file for Google Tag Manager installation for its customers, and it includes some instructions that need to be followed.
This message is actually an instruction that was not followed, and as a result, it ends up appearing in the footer of the sites:
![]()
To verify whether it actually came from the GTM installation, you can use the DevTools. To open DevTools, right-click on the page and select the Inspect option. Another option is to press Command + Option + C (Mac) or use the F12 key (Windows). After that, this screen will appear:
You should then go to the Network tab and look for the Network Request Blocking tool at the bottom:
In this tool, you should enter the requests you want to block. In this case, since we want to verify whether the message is indeed coming from the GTM installation, we block all of its requests. To do this, simply type *gtm*, then enable request blocking and check the option you just typed:
Then just reload the page and see if the message disappears. If it does, it is indeed coming from the GTM installation, and to make it disappear permanently, simply access the container file that was installed and edit the variable’s value:
This text was meant to be a comment with instructions only — leaving the value field empty should cause no issues.
If you still have any questions about this, feel free to ask here!
NOTICE: Following the frequent occurrence of this scenario, our documentation containing the GTM installation container file has already been updated and no longer includes this message. This tutorial remains available here for cases where customers downloaded the container file prior to the update.
Amanda Jatobá
Field Software Engineer | VTEX




