Mono Support MonoX and Google Analytics do not work (Closed)

Viewed 40687 time(s), 7 post(s), 8/16/2011 11:44:10 AM - by francoiswolmaransza
8/16/2011 11:44:12 AM
70 Reputation 9 Total posts

I've added my Google Analytics account number to the relevant section in the web.config file. I've restarted IIS but I still see no traffic for google anylitics for any pages in my site.

Any pointers on where to start troubleshooting?

1
8/16/2011 1:06:55 PM
1871 Reputation 252 Total posts

I'm interested in this as well..

But.. if you do find a issue with Monox
Google analytics can easily be added to your MonoX header master page by hand..

http://code.google.com/intl/en/apis/analytics/docs/tracking/home.html

All you have to do is pretty much copy the script to the master page and it should work just fine but this of course would be a work around..

May want to wait for one of the MonoX guys to get a official response.

2
8/16/2011 1:42:05 PM
7207 Reputation 956 Total posts

Hi,
Could you please copy that line from your web.config and post it here? If everything is OK, you should see the Google Analytics script injected in the header of your page.

3
8/16/2011 2:50:37 PM
15993 Reputation 2214 Total posts

Hi,

  there are two common issues related to this topic, you need to enter the Google Analytics account number in the below format because one MonoX installation can be used one multiple domains and you maybe want to track the traffic for these domains separately from the main domain.

www.mydomain.com=Code;

  Second issue is that you need to wait some time for analytics to appear, and If I can remember right Google don't track the local traffic (in case if you are testing locally)

Regards

4
8/17/2011 5:32:18 AM
70 Reputation 9 Total posts

The www.mydomain.com=Code option worked.

Thanks

5
8/17/2011 8:05:54 PM
1871 Reputation 252 Total posts

Is there any easy way to tell that it is working by viewing the source ?

It should render a script somewhere ?

<add key="GoogleAnalyticsAccountNo" value="www.thepittsburghscene.com=code" />

code is replaced with proper code.

6
8/17/2011 8:08:44 PM
7207 Reputation 956 Total posts

Yes, it should render a standard Google analytics tracking code in the header of every page on your site. It seems to be working on your site:

<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-16161391");pageTracker._trackPageview();</script>

7
This is a demo site for MonoX. Please visit Mono Software for more info.