You are hereSupport Forums
Search:  
Page Error
Last Post 01 Feb 2009 08:57 PM bydnnstuffadmin. 10 Replies.
AddThis - Bookmarking and Sharing ButtonPrinter Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
AuthorMessages
Bexbissell
New Member
New Member
Posts:4

--
08 Nov 2008 11:04 AM  
Hi,

I have just installed your Google Analytics module (many thanks) and configured it correctly (I think) on a DNN 4.x installation. Whilst testing on my localhost I get a 'Done, but with errors on page' Looking at the source, this is the offending line:

<script src="http://www.dnnstuff.com/Objektdev/js/dnncore.js" type="text/javascript"></script><script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type="text/javascript">var pageTracker = _gat._getTracker("UA-3858462-1");_setDomainName("objektdev.com");pageTracker._trackPageview();</script>

Can you see if I've done anything wrong here?

Thanks,
Andy
Richard Edwards
DNNStuff Founder
Advanced Member
Advanced Member
Posts:787
Avatar

--
08 Nov 2008 02:05 PM  
Hi Andy,

For some reason it's putting the www.dnnstuff.com in the src field. I'll have to do a test on a test site and see why it's doing that. I'll get back to you on Sunday as I'm just about to leave for the day.

Richard Edwards
DNNStuff Founder
Bexbissell
New Member
New Member
Posts:4

--
10 Nov 2008 02:19 PM  
Hi Richard,

OK, look forward to that.

Thanks,
Andy
Richard Edwards
DNNStuff Founder
Advanced Member
Advanced Member
Posts:787
Avatar

--
10 Nov 2008 03:24 PM  
Hi Andy,

I took a look at the module and can't see why you'd be getting that code. I have a couple questions.

What version of the module are you using? The current version is 03.02.00.

In the settings, what are you using for the two values, Account # and Primary Domain?


Richard Edwards
DNNStuff Founder
Bexbissell
New Member
New Member
Posts:4

--
10 Nov 2008 08:03 PM  
Hi Richard,

I'm using 3.02.00 and the values in the settings are UA-3858462-1 and objektdev.com respectively. Have I done something silly?!

Thanks,
Andy
Richard Edwards
DNNStuff Founder
Advanced Member
Advanced Member
Posts:787
Avatar

--
10 Nov 2008 08:34 PM  
No, those settings should work ok. Do you have a public url that I could take a look at the page source?

Richard Edwards
DNNStuff Founder
Bexbissell
New Member
New Member
Posts:4

--
10 Nov 2008 11:02 PM  
Sorry, the site's not up yet. It should be up next Monday.
Richard Edwards
DNNStuff Founder
Advanced Member
Advanced Member
Posts:787
Avatar

--
11 Nov 2008 04:21 PM  
Hi Andy,

Ok, send me the url when the site is up. You may want to uninstall that module, then download a fresh copy and reinstall.

From the code you posted, the line that says src='http://www.dnnstuff.com/" + gaJsHost is wrong and I'm not sure how that got in there because in the code I have, it should read src='http://" + gaJsHost. I'm not sure how the www.dnnstuff.com piece is getting in there.

Richard Edwards
DNNStuff Founder
Richard Edwards
DNNStuff Founder
Advanced Member
Advanced Member
Posts:787
Avatar

--
11 Dec 2008 04:42 PM  
Hi Andy,

I just wanted to post a follow up to this thread. A recent post helped me determine the problem you were experiencing and a new release has been updated to the downloads page for the Google Analytics module.

Richard Edwards
DNNStuff Founder
luptona
New Member
New Member
Posts:1

--
30 Jan 2009 09:04 PM  
Hi, using 3.2.1 on a DNN 4.8.4 site.  Getting the same "Done, but with errors on page" issue.

View source shows:
<script src="http://www.dnnstuff.com/js/dnncore.js" type="text/javascript"></script><script src="http://www.dnnstuff.com/js/dnn.js"></script><script src="http://www.dnnstuff.com/js/dnn.dom.positioning.js"></script><script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type="text/javascript">var pageTracker = _gat._getTracker("UA-7158681");pageTracker_setDomainName("clinicaltechsolutions.com");pageTracker._trackPageview();</script><script src="http://www.dnnstuff.com/js/dnn.xml.js"></script><script src="http://www.dnnstuff.com/js/dnn.xmlhttp.js"></script>

Ideas?
Richard Edwards
DNNStuff Founder
Advanced Member
Advanced Member
Posts:787
Avatar

--
01 Feb 2009 08:57 PM  
I just posted another update to this module which should fix the javascript error. The problem was a call to pageTracker_setDomainName which should have been pageTracker._setDomainName.

If you leave the domain name blank in the settings, this call will not be made at all. The domain name setting is optional. Normally you would only fill this in if you were tracking against a domain name other than the one specified in the url.

Richard Edwards
DNNStuff Founder
You are not authorized to post a reply.

Active Forums 4.1
Privacy StatementTerms Of UseCopyright (c) 2004-2010 DNNStuff