holidaycheck / react-google-tag-manager

This repository contains a react based implementation for Google's Tag Manager snippet.
MIT License
192 stars 31 forks source link

Rendering the component to be a direct descendant of the body tag #51

Closed gmenih closed 8 years ago

gmenih commented 8 years ago

Google's guidelines say that the scripts should be direct descendants of the <body> tag.

Is there a way to place these to be outside the root of the app?

FQ400 commented 8 years ago

The repo only contains the snippet where you put it, is up to you.

Maybe this article of Rendering React components to the document body helps?