I tried adding it before the </head> and in the footer but the code wouldn't get added the the index page. It did get added to all the topic pages. So I also added the code the topic.slp and it's now on the index and topic pages. Not sure if your familiar with editing page layouts but I highly recommend you use 7-Zip after you change the extension from .slz to .zip. Winzip would give me errors when trying to unzip the file. Here is what I added to the topic.slp <link rel="StyleSheet" href="favorites.css" type="text/css" /> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i =i ||function(){ (i .q=i .q||[]).push(arguments)},i .l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-69#########', 'auto'); ga('send', 'pageview'); </script> </head> <body class="hide-children loading" data-rhwidget="Basic" data-class="media-desktop: KEY_SCREEN_DESKTOP; media-landscape: KEY_SCREEN_TABLET; media-mobile: KEY_SCREEN_PHONE; ios: KEY_SCREEN_IOS" data-controller="ModernLayoutController: mc; JsLoadingController" data-attr="dir:KEY_DIR"> Here is what my master page code looks like: <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="topic-comment" content="" /> <meta name="generator" content="Adobe RoboHelp 2015" /> <title>Google Anayltics</title> <link rel="StyleSheet" href="CREABranding_TrainingDocuments_2015Oct.css" type="text/css" /> </head> <body> <?rh-region_start type="body" ?> <?rh-region_end type="body" ?> <?rh-region_start type="footer" style="width: 100%; position: relative;" ?> <script type="text/javascript">(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i =i ||function(){ (i .q=i .q||[]).push(arguments)},i .l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-69########', 'auto'); ga('send', 'pageview');</script> <?rh-region_end type="footer" ?> </body> </html>
... View more