The code in HTML source is like this
<script type="text/javascript" src="http://www.google-analytics.com/urchin.js"></script>
<script type="text/javascript">
_uacct = "UA-1954333-1";urchinTracker();__utmSetVar('æå¯é£:æå¯é£');
</script>
<script type="text/javascript" src="/modules/google_analytics/downloadtracker.js"></script>
but everything was right in the previous version (1.2)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | google_analytics_encoding_bug.patch | 773 bytes | hass |
Comments
Comment #1
coldfly commentedIs there any suggestion?
When the User Segmentation contains multibyte characters, They will be garbled in the function __utmSetVar()
But they are right in the previous version, So I think there are something missing when upgrading.
Comment #2
hass commentedThere must be something broken with UTF8 encoding... not sure if GA is the source.
Comment #3
hass commentedHard to test for non Chinese :-).
Here is a patch that fixes this bug. "utf8_encode" - Encodes an ISO-8859-1 string to UTF-8, but Drupal is already UTF8, so we must remove this and should be fine. Are you able to verify this? I will try to look why and when this have been added.
Comment #4
hass commentedCommitted fix into D6 branch.
Comment #5
hass commentedComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.