Flare: Open Full Help From Single Topic

If you have HTML help (specifically Tripane), sometimes someone will create a link directly to a specific topic. This link opens the topic without the TOC or the header.

Use the following procedure to automagically open the full help when a single topic is accessed:

  1. In the skin Setup tab, enable Show navigation link at top of topic.
    If a single topic is opened, this adds a link to open the full help.
  2. In your master page, add this script before the closing </body> tag:
<script>
	/* <![CDATA[ */
	$(document).ready(function () {
	if (($('.MCWebHelpFramesetLink:visible').length))
	{
	window.top.location = $('.MCWebHelpFramesetLink>a').attr('href');
	}
	});
	/* ]]> */
</script>

Republish and try it!

Adding Google Analytics to Flare

Use this procedure to add Google Analytics tracking code to your Flare HTML5 target.

1. Log into your Google Analytics account and create a new property.

2. Get the XML code from Google for tracking. It looks like this:

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

			gtag('config', 'G-ABCDE12345');
		</script>

3. In Flare, navigate to Content > Resources > MasterPages.

4. Open the Master Page that you use for your webpages.

5. Insert the above XML just before the closing </head> tag.

6. Save the file.

7. If you get an error on saving (about a “src” tag), change async to async="async" and save it.

8. Publish your HTML.

That’s it!