Page 1 of 1

Include Google Tag Manager Code

Posted: Fri Jun 05, 2015 11:47 am
by frankrichter

Ho can I put the Google Tag Manager Code immediately inside the body? Is there a way to do it without editing the HTML File directly?


Include Google Tag Manager Code

Posted: Fri Jun 05, 2015 2:58 pm
by Serhii Kulibaba

Hello,

You can put this code with JS, using variable with it's value


Include Google Tag Manager Code

Posted: Mon Jun 08, 2015 1:10 pm
by frankrichter

Hi,

may you give me more information about your solution? The problem is that the GTM code have to be placed next to the opening body tag. I'm not aware of a way to insert code at this position without editing the HTML directly.

Maybe I overlook somtething.


Include Google Tag Manager Code

Posted: Mon Jun 08, 2015 1:38 pm
by Serhii Kulibaba

Please use append() method to insert any tag you want into HTML: http://api.jquery.com/append/