" tag. But it seems OK to insert it anywhere between "
" and "
". Maybe some old browsers may have problems running the script that way, but you miss lots of visitors anyway because "ad blocking" applications also block this script.
You have several solutions to overcome this:
Insert the script to the skin file
Insert the script within hidden Text / HTML containers
Use a specialized module
Inserting the Script to the Skin File
This is the simplest and quickest solution. But it's tricky and has limitations of course. You can apply this only if:
You have the permission to modify portal skins
The skin is used only by one portal
Even if you have the permission and you have one portal with the skin, you must be careful with the "variations" of the same skin.
Most skins come with multiple variations. For example the "skin variation" of the home page may be different from inner pages. These variations are of course regarded as different skins. And in each of these different skins, you should insert the GA script.
Inserting the Script within Hidden Text / HTML Containers
This option is rather simple but tricky. These are the steps :
On your home page, add a new "Text / HTML" module. But add it to a "pane" where it will bother you less. If exists "Bottom Pane" is a good choice.
On the container's menu click "Edit Text" and switch to "Source" view
Insert the script and click "Update"
From the "Settings", uncheck "Display Container", and check "Display Module On All Pages?"
Now you have a container that includes your GA script that is invisible to visitors, resides in all pages and works good in most browsers. Use it with your own risk. This is the method we use in our site, and it's OK.
Using a Specialized Module
There are quite a lot third party modules enabling to use GA with DNN. By searching for "google analytics", on Snowcovered, you can find nearly a dozen modules designed for this task.
By the way, Snowcovered, is a neat and trustworthy site that you can purchase third party DNN modules and skins. We bought many items from them (including this skin) and we're quite happy with them.
Their prices start from 2 USD to 50 USD. Some of them just enables you to use GA in your portal, whereas others pull data from your GA account and display it on the pages.
Pros and Cons
Pros
Excellent look-and-feel
Simple to use, also scalable up to professional level
Free
Integration with "Google Ads"
Cons
"Ad filters" block the script, so the figures are far from accurate, you can use GA for relative performance measuring
Not real-time, so you should be content with one daily update
"What to do when a file is deleted and the 'Documents' module gives error?"
When you delete a file associated with a "Documents" module instance, you receive an error message. The only solution is to re-upload this missing file, to the original folder.
"But what will happen if you don't remember the name of the file?"
In this case, you should refer to the database table "Documents". You'll notice entries like "FileID=289" in "URL" column. You can now refer to "Files" table. Following this example, you can temporarily change the" FileID" of URL column, with an ID already present in "Files" table.
After the "Documents" module instance is functional again, you can change the document association from the module interface.
Also Check These
Captain's Log
As you know, dealing with DotNetNuke brings lots of unforeseen troubles and challenges.
"The Funnel" is a compact and yet powerful SEO (Search Engine Optimization) module that "suggests" other pages to your visitors that would be interesting for them.
Google Analytic displays a "dashboard" as a summary. You can browse around for more detailed views and reports.
First of all, GA system is full of Search Engine Optimization jargon such as landing page, conversion, funnel etc. But GA system has lots of help pages to educate yourself.
This dashboard view is very useful for daily check. Here, you see figures like: visits, page views, bounce rate, average time on site.
Also there are charts and a globe map displaying the geographical distribution of your visitors.
This map feature is really cool. You can even view city distribution when you click on countries.
Content Overview leads you to more reports. Even this portion on the dashboard gives useful information.
General look-and-feel of the whole system is very good. The maps and the charts are all Flash components. You can obtain useful information when you move the mouse over charts and maps.
Another cool feature is "Goal Setting". You can set goals for your conversion performance.
There's a cool method of defining funnels and directing traffic to your conversion page from any landing page.
Need Help?
This short article explains step-by-step installation procedure of a module.