Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Multi - Portal -Trouble Adding "Tracking Snippet" to Head TagMulti - Portal -Trouble Adding "Tracking Snippet" to Head Tag
Previous
 
Next
New Post
8/29/2014 2:46 PM
 

I am trying to place some “tracking code” from an analytic software program that I am using on some of our DNN sites.  The code must be placed directly above the closing HEAD tag on each page.

Do you know how I can do this for an environment  that has multiple portals?

Each portal is a unique domain name and will have its own unique “code snippet”.  

This is not for Google Analytics but for another software program.  I do not want to manually have to add it to every page on the website via the Page Settings area. 

Any help would be greatly appreciated.


 
New Post
9/1/2014 1:03 AM
 
I have two suggestions:
1. Try create a HttpModule module, insert it into web.config file. Try open the DotNetNuke.HttpModules.Analytics.AnalyticsModule source file as a example.
2. Or you can directly edit default.aspx (and default.aspx.cs), to inject your tracking code. It is more easy and straightforward. Of course, you need to backup it (and restore) when upgrade to new DNN version.

Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
9/1/2014 3:48 AM
 

Hi,

There might be another way to do this but you'll have to do this for every page that you want to track.

Click the "Edit Page" button then choose "Page Settings". Click the "Advanced tab".

Scroll down to the "Page Header tags" then paste your code here.

Do this for every page that you need to track.

Hope this helps,

Regards,

Geoff


      
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Multi - Portal -Trouble Adding "Tracking Snippet" to Head TagMulti - Portal -Trouble Adding "Tracking Snippet" to Head Tag


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out