Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We tried Google Analytics Statistics on a multilingual site but we couldn't get it to work for languages with prefixes.
I have created a patch which try to dissolve the aliases from Googla Analytics even when it has a language prefix.
Comment | File | Size | Author |
---|---|---|---|
#2 | ga_stats-multilingual_support-1528162-2.patch | 1.95 KB | alduya |
multilingue-aware.patch | 1.48 KB | mnlund |
Comments
Comment #1
alduya CreditAttribution: alduya commentedComment #2
alduya CreditAttribution: alduya commentedI tried the initial patch and this works, but only for sites using path prefixes, not for sites using language domains. I changed the patch so that it works with both.
Comment #3
szeidler CreditAttribution: szeidler commentedTested patch in #2 for 7.x-1.0-beta2 and 7.x-1.0-dev. Works like charm.
Comment #4
marcelovaniCan anyone confirm that the patch works with the 2.x branch?