Table of Content
- Portal Configuration
- Host Configuration
Thanks for choosing DNN Google Tag Manager by weweave! DNN Google Tag Manager lets you integrate Google Tag Manager into your DNN portal without any coding by following Google’s best practices.
If nothing else is stated, this documentation refers to the latest available version of DNN Google Tag Manager.
In order to use DNN Google Tag Manager, make sure your environments meets the following requirements:
- For DNN Google Tag Manager 01.XX.XX: DNN >= 07.03.00
- For DNN Google Tag Manager 02.XX.XX: DNN >= 08.00.00
- Google Tag Manager account
- DNN Google Tag Manager (download here)
- License key for use in production (get license key here or request a free trial license key)
Please follow these steps to set up DNN Google Tag Manager:
- Download DNN Google Tag Manager from the download page.
- Log in to your DNN installation as host admin and navigate to “Host > Extensions”.
- Select “Install Extension Wizard” and follow the installation process.
- After a successful installation you should see two new menu items: “Google Tag Manager under “Admin” and “Host”. The portal-specific configuration can be performed under “Admin > Google Tag Manager”, whereas the global configuration can be performed under “Host > Google Tag Managerd”.
- Enter your Google Tag Manager Container ID for each of the affected portals under “Admin > Google Tag Manager”.
- Enter your license key under “Admin > Google Tag Manager” and check the “Enable-checkbox”.
- Google Tag Manager integration is now enabled automatically.
Please follow these steps to upgrade your existing DNN Google Tag Manager module installation:
- Download the latest version of DNN Google Tag Manager for your DNN version from the download page.
- Make sure that your license key is still valid before performing the upgrade.
- Log in to your DNN installation and go to “Host > Extensions”.
- Select “Install Extension Wizard” and follow the process.
The actual configuration of DNN Google Tag Manager is performed portal-specific under “Admin > Google Tag Manager”.
- Enable: Check to enable the Google Tag Manager integration
- Container ID: Your portal’s Google Tag Manager container ID
- Inject in 404 error page: Check to inject the Google Tag Manager snippet to DNN’s 404 error page
- License key: Your purchased DNN Google Tag Manager license key
If you are the DNN Host Admin, you can go to /Host/Google-Tag-Manager to get an overview of your portal’s Google Tag Manager integrations. This is especially useful if you run multi-portal instances. As of now, there is nothing you can configure here – such options may follow in a future release.
Enabling debug logging
Add the following lines right before the closing “</log4net>” to the file DotNetNuke.log4net.config which you’ll find in your website’s root directory.
<logger name="weweave.DnnGoogleTagManager"> <level value="Debug" /> </logger>
Debug output will be written into the log files in this directory: Portals\_default\Logs
You can easily remove DNN Google Tag Manager from your DNN installation by navigating to “Host > Extensions”.