17 September Adding Universal Google Analytics to DNN 9.1 September 17, 2017By Will Strohl | 3 MIN READ Configuring your Google Analytics in previous versions of DNN was super simple. You would just navigate to the Google Analytics page and paste in your Google Analytics tracking ID. Since DNN 9 was released, some of the administration that was easily accessible is yet to be added back to the administration area. This article will help you to enable and update Google Analytics to use the most current version, universal analytics. This is important since the default version of Google Analytics is using DoubleClick. You can blame me for that since I submitted that pull request, but it was the current at the time… Signup for Google Analytics If you haven’t already done so, create an account with Google Analytics. https://www.google.com/analytics/ If you’re upgrading from a previous version of Google Analytics, there’s a great Universal Analytics upgrade article for you to review to answer any questions. Once you have your account created, navigate to the Admin area and to the Tracking Code page, like shown below. If you scroll down a bit on the Tracking Code page, you’ll find the Universal tracking code, but you’ll need to expand the section. Click in the code area to select it all. Copy and paste this somewhere. You’ll need it later. You’ll want to get the tracking ID from this code right away though. You’ll need it for the next step. It usually looks something like “UA-XXXXXX-XX” where the X’s are a number. In the image above, it’s in the blurred area. Add Your Tracking Code to DNN In older versions of DNN, adding your tracking code was quite easy. Now, you’ll need to perform a workaround to get your tracking code saved correctly now and for future updates expected to come to DNN. These instructions are specific to DNN 9, through 9.1.1 (as of the time of this writing). Unfortunately, they’re also technical steps, so you may want to get your technical team involved if you’re not comfortable with the steps below. You’ll need to create a new file called GoogleAnalytics.config and place it into the folder for the site (portal) that you’re updating. In most cases, your portal is 0 unless you have more than one website in your instance of DNN. So the folder path will likely look like the following. [root]\Portals\0\ You’ll want to edit the file to include the following XML, but replace the tracking ID as shown in the code example below (“REPLACEME”). You just found the tracking ID in the previous step. <?xml version="1.0" encoding="utf-8"?> <AnalyticsConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Settings> <AnalyticsSetting> <SettingName>TrackingId</SettingName> <SettingValue>REPLACEME</SettingValue> </AnalyticsSetting> <AnalyticsSetting> <SettingName>UrlParameter</SettingName> <SettingValue /> </AnalyticsSetting> <AnalyticsSetting> <SettingName>TrackForAdmin</SettingName> <SettingValue>true</SettingValue> </AnalyticsSetting> </Settings> </AnalyticsConfig> Once you save this file with the code above in the correct place, you have updated your Google Analytics ID for the site. Update DNN to Use Universal Analytics The default version of Google Analytics is still DoubleClick in DNN 9. You’ll need to upgrade this to the Universal Analytics script, which is pretty easy to do. First, navigate to the Configuration Manager, like shown below. Next, you'll want to choose the "SiteAnalytics.config" file to edit in the list of available files. When you choose it, the file contents will load into the editor viewing area. You’ll want to replace the highlighted code below with the code you copied from the first step above. Take special note that the SCRIPT tags are not highlighted. You need to be sure they don’t get removed. Also, there’s a [TRACKING_ID] token that you’ll want to re-use for the next step. When you correctly paste in the Universal Analytics code and replace the ID with the token, it will look like the example below. Now all you have to do is click the Save Changes button to save the update. Once you confirm the change, you’re done. Your site is now using the Universal Analytics version of Google Analytics. Congratulations! Now you can take advantage of all kinds of new features, including ecommerce and custom dimensions. September 17, 2017By Will Strohl Technology CMS, Content Management, DNN, DotNetNuke, Google Analytics, Universal Analytics About the Author Will Strohl Founder & CEO Upendo Ventures Overall, Will has nearly 20 years of experience helping website owners become more successful in all areas, including mentoring, website development, marketing, strategy, e-commerce, and more. Please enable JavaScript to view the comments powered by Disqus. blog comments powered by Disqus Related Posts Getting the Most Out of Your Google Analytics DNN Integration Google Analytics is often taken-for-granted in too many ways. When the average company thinks about Google Analytics, they simply ensure their Google Analytics code is in place and they keep track of what I refer to as vanity metrics. Copy. Paste. Done, right? Vanity metrics are quite deceiving, to be honest, and you’re only scratching the surface with what you could (and probably should) be doing with Google Analytics. In this article, we’re going to discuss how to dive deeper into your Google Analytics integration to grow your business. Using Google Alerts To Monitor and Grow Your Brand One of the number one things I speak about with clients is brand, or branding. In fact, when embarking on any project, internal or external, it’s probably the very first thing that we discuss. This is especially true with small businesses and businesses who need to employ local and social media marketing strategies. You need to first know what your brand is, how to speak about your brand (with as few words as possible), and how people should perceive your brand. Most importantly, what will people say about your brand when you’re not looking? When Google Ghosts You: The Wake-Up Call That Sparked Our Marketing Overhaul For years, Upendo Ventures thrived almost exclusively through word-of-mouth referrals—particularly in a specific sector of the market that knew us well and trusted us deeply. What Is Technical SEO (And Why Small Businesses Should Care) If you’ve ever heard someone mention “technical SEO” and thought, that sounds complicated — you’re not alone. But here’s the truth: technical SEO isn’t just for big corporations or marketing experts. How to Do a Technical SEO Audit (Without the Tech Headache) If your website isn’t showing up the way it should, the problem may be the “behind‑the‑scenes” setup. This guide explains—in plain English—how to check the most important technical SEO items so more customers can find you. When Your Browser Betrays You: A Lesson in Safeguarding Your Work This week I lost nearly half a day of productivity to something I thought could never happen — Google Chrome decided to forget ALL of my browser sessions.