You need to Register for free and Login to post a message in the forum.

Forum

Subject: Query regarding Google Analytics module
Prev Next
You are not authorized to post a reply.

Author Messages
kaustav_kar
Nuke Pro
Nuke Pro
Posts:82

14 Aug 2008 8:07 AM  
Hi,
I have used google analytics module in my site. I have tried several things with the Google Analytics and it just does not seem to work.  I have checked the tracking code number multiple time along with verifying the URL and all.  I do see the tracking code when I do a view source on the site.  The code is at the top of page rather than at the bottom as I normally see.  I understand that having it at the top will not be good for optimization because it is before the Meta tags and the search engines don’t like that.  Do you have any idea why Google does not see this code?  I really need to get the tracking working for this site.  Is there an updated module that needs to be installed since Google has been enhancing their service recently?

plz help. 
kaustav_kar
Nuke Pro
Nuke Pro
Posts:82

18 Aug 2008 5:31 AM  
 
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

18 Aug 2008 5:38 AM  
I have not used the Google analytics modules so it is hard to comment.  For Google analytics I simply add the code to the bottom of the default.aspx page - this will provide analytics information for all portals in my DotNetNuke installation.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
lifestyles
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:3

26 Oct 2008 8:33 AM  

When I look at the code in my default.aspx file using notepad, it does not appear to be html - it does not show the tags or at the opening and end.  Here are the last few lines -

                     Throw New Exception("Unknown Callback Type")
                End Select
            End If
            Return ""
        End Function

#End Region

    End Class

End Namespace
 
Should I add google analytics code at the end of this page of code?

jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


26 Oct 2008 8:46 AM  
No.

If you want to add Google analytics code, it's best to do that in your skin file(s).

Joe Craig
DNN Creative Support
Subscribe to the website
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

28 Oct 2008 11:08 AM  
The file you are referring to is the default.aspx.vb file, the file I was referring to in the previous post was the default.aspx file.

If you add the code in here it will track analytics for all portals in your install, or you can add the code to your skin as Joe suggests and it will then just track the analytics for wherever the skin is displayed.

Bear in mind when you upgrade if it is added into the default.aspx file, you will need to copy the code back into the new default.aspx file - whereas when it is in a skin it will not be affected when you upgrade.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Query regarding Google Analytics module



ActiveForums 3.7

Latest Forum Posts

Restricting DateEditControl till date by coder247
Hi All,   We are using the DateEditControl (for obvious reasons!!) in our application. But we want t...
RE: Email Set UP per Portal by jncraig
I think that the answer depends on how email is configured at your host. You'll probably have to co...
RE: skin/container error load by jncraig
I would suggest checking permissions for directories. Does this occur only when you upload a skin...
RE: Add New Profile Properties by jncraig
Hmmm ... I don't have an answer. Does anyone else?
RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
RE: backend is changing from sql2005 to sql2008 by leesykes
hello,There should not be any code changes needed, but you'll need to make sure that SQL 2008 upgrad...
RE: skinning trouble by leesykes
Hello,I would need to see your code to help you with this one, you can zip up your files and attach ...
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by leesykes
I have run a test with SQL Server 2008 express and DotNetNuke installed in exactly the the same way ...
RE: Issue 39 Interview by leesykes
thanks Bill, glad it was useful, we will have a think about the best way to approach this,Thanks,
RE: Issue 39 Authentication by leesykes
yes I have a live site in 4.9.0 at it seems stable as well.
AppTheory
RSS Feeds