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!

Leave a comment