To integrate SF Community with Google Tag Manager, GTM provides two code snippets to be installed into 'head' and 'body' tag of the Community site. SF Community allows to install code-snippet into 'head' tag, but How to install second code-snippet into 'body' tag of the Community/Force.com Sites?

1 Answer 1


For that, you need to create an empty HTML5 container in the Visualforce page.


<apex:page docType="html-5.0" applyHtmlTag="false" applyBodyTag="false"
           showHeader="false" sidebar="false" standardStylesheets="false"
           title="Unused Title">

        <title>HTML5 Container Page</title>

        <!-- You can put your code snipet here. -->
        <h1>An Almost Empty Page</h1>

        <p>This is a very simple page.</p>



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.