frankrichter
Posts: 0
Joined: Fri May 22, 2015 2:53 pm

Include Google Tag Manager Code

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Include Google Tag Manager Code

Hello,

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

frankrichter
Posts: 0
Joined: Fri May 22, 2015 2:53 pm

Include Google Tag Manager Code

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Include Google Tag Manager Code

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

Return to “Issues”