Efficient, Performant, and Suprisingly Easy to Do
Implementation of Google Tag Manager With DNN Analytics
Before you go any further in implementing Google Tag Manager with DNN analytics, observe the following path to change the Tracking ID to access Google Tag Manager. /Root/SiteAnalytics.config is simply a general pathway for your tracking ID. Any modification you make to this pathway affects everything under it. To make changes to this file path, you will need FTP connectivity. Since this file, by default uses Google Analytics code, you need to change it to the Google Tag Manager code.
As we pointed out earlier, changing your path file from Google analytics to the Google Tag Manager code may mess with all other portals registered under the path. Make sure to carry out research and make up your mind before going ahead. Except you are entirely sure you want to make this transition, then you are on track. Let us move on. Take the following steps to set up Google Tag Manager with DNN:
In DNN 6 or newer version, you can load the Google Tag Manager Code unto the website using Google Analytics module. Now, head over to Admin and access Google Analytics to input your Google Tag Manager ID. There are three things you need to edit:
- Edit the line that reads like this <ElementId>Head</ElementId> and replace “Head” with “Body.” It will now look something like this: <ElementId>Body</ElementId>
- Edit the line that reads thus <InjectTop>False</InjectTop> and replace “False” with “True.” It will now look something like this: <InjectTop>True</InjectTop>
- Now delete all Google Analytics code and replace with your Google Tag Manager code between the <![CDATA[ and closing ]]>