November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
You can add the globalization element to your webroot/Modules/EPiServer.GoogleAnalytics/web.config file.
I am having issues with this aswell, even though I added the globalization element to my web.config located in /modules/EPiServer.GoogleAnalytics/ under configuration/system.web section.
Our site has the site-language set to Swedish, so I figured I could set the culture and cultureUi attributes of globalization element to sv-SE and sv to get this to work but no luck.
The only thing that works is if I change the site-langugage under my settings and display options tab in EPiServer UI to English. This is unfortunately not an option as we have a Swedish customer.
Josef: Did you just put your globalization element right under the specified section that I mentioned?
@Niklas: yes I did and it works for us. We also run Swedish everywhere except for this module.
On the other hand, non of our statistics seem correct, i.e. the plugin does not display the same numbers as the GA page does.
If anyone has managed to get this plugin to function correctly, please let me know :-)
That's interesting, that it "almost" works :)
It seems that the langugage settings for the current logged in user in EPiServer overrides the underlying configurations about culture and cultureUi set in the globalization element in web.config files.
The data that is retrieved from Google Analytics seems to be in english culture, which causes the FormatException to be thrown as the current language for our site is in Swedish, a mismatch there between cultures. I tried to change the language for the Google Analytics account to Swedish but that doesn't work either so I don't know what to do.
The only solution I can come up with is if EPiServer published the source code of this plugin, then you could just modify the Parse-method to explicit take an IFormatProvider with the specified culture.
:-) well, what I mean is that before we changed the culture we got an exception. With en-US culture we don't get an exception and we see graphs and numbers although they don't match with reality....
It seems strange that culture from logged in user should override the module config for you, but not for us.
<globalization culture="en-US" uiCulture="en" requestEncoding="utf-8" responseEncoding="utf-8" resourceProviderFactoryType="EPiServer.Resources.XmlResourceProviderFactory, EPiServer" />
Above is our setting that comes first inside <system.web>
I noticed there is another web.config in the Views folder. Check that it doesn't have another globalization setting that override yours.
I can't get this to work. Tried to modify the globalization element in both Web.config under modules/EPiServer.GoogleAnalytics and under /Views but it doesn't seem to make any difference.
I get the same problem, a format exception if language for the user is not set o English. I have tried to set
<globalization culture="en-US" uiCulture="en" requestEncoding="utf-8" responseEncoding="utf-8" resourceProviderFactoryType="EPiServer.Resources.XmlResourceProviderFactory, EPiServer" />
In boths web.config files under modules/EPiServer.GoogleAnalytics, but the only thing getting the module to run is to change the user language. This is not an option for our customer so if anyone knows how to solve this, please post.
I took a copy of the language file from the module, moved the copy to the main language folder in our solution, added a new tag for swedish with all english tags(i did not translate them).
At first i tried to add the swedish tag in the module folder but it didnt hock up... i suppose its cashed in some way when you install the add on
Not so nice but it worked for me.
/P
I have installed the latest version of Google Analytics for EPiServer on an existing CMS6R2 site. The problem is that some requests accessing the AnalyticsDataRepository triggers a FormatException, stack trace:
Does anyone recognize this error or can confirm that the module is working (I know there was some problems with the previous version)?