SOLVED: Flare comments out Google Analytics script

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
Curlyshell
Propeller Head
Posts: 65
Joined: Fri Mar 01, 2019 9:14 am

SOLVED: Flare comments out Google Analytics script

Post by Curlyshell »

Flare is commenting out my Google Analytics code. In the text editor it looks like this (read code replaced w/ ASDF):

Code: Select all

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=ASDF"></script>
<script>
	window.dataLayer = window.dataLayer || [];
	function gtag(){dataLayer.push(arguments);}
	gtag('js', new Date());

	gtag('config', 'ASDF');
</script>
In the Output it looks like this:

Code: Select all

       <!-- Global site tag (gtag.js) - Google Analytics -->
        <!--	<script async="async" src="https://www.googletagmanager.com/gtag/js?id=ASDF"></script>
		<script>
			window.dataLayer = window.dataLayer || [];
			function gtag(){dataLayer.push(arguments);}
			gtag('js', new Date());

			gtag('config', 'ASDF');
		</script>										-->
What am I doing wrong?
"I'm a technical writer, not a developer," she said...
Curlyshell
Propeller Head
Posts: 65
Joined: Fri Mar 01, 2019 9:14 am

Re: SOLVED: Flare comments out Google Analytics script

Post by Curlyshell »

In my various experiments, I had placed the GA code in the master page and then commented it out. That seems to have been the source of the trouble. When I removed the commented-out text altogether, the code was rendered in the remaining pages without being commented out.

I don't understand it, but there it is.
"I'm a technical writer, not a developer," she said...
Post Reply