Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Possible bug

johannes
Registered User
Quote
2019-01-31 08:13:18

I use function add code into the body for Google tag manager
Afer I enter the code and let rocketcake compile the webpage there is an issue with the "body" tag. The code will be written before ">" that is closing the the "body". So I have a > showing on my page. I can fix the problem manually by editing each page and moving the closing > at the right place but this is tedious.

Below is the code as compiled by rocketcake. See how the code has been written before the "body" closing >

<body<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MN8Z79J"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->>



bupp
Registered User
Quote
2019-01-31 11:12:20

have you tried with an separate Container, where you can insert the code?
(Mouse right click and html code)?


johannes
Registered User
Quote
2019-01-31 15:34:05

Thank you for your answer. No I didn't. I found a workaround.

I "cheated" entered the following code in the master page. When compiled, this code shows no error in all the pages. This way I dont have to change the code in every page manually.

Code entered in the "modify HTML" window

><!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MN8Z79J"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) --


Code compiled by Rocketcake (now correct and showing no error on the page)

<body><!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MN8Z79J"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact