Language code > Redirection & Analytics - Questions

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
joomleb
Joomla! Guru
Joomla! Guru
Posts: 967
Joined: Sat Aug 20, 2005 8:53 am
Location: Panamá

Language code > Redirection & Analytics - Questions

Post by joomleb » Fri Mar 29, 2019 12:49 am

Hi guys,
I have some questions / doubts:

1 - "System - Language Filter > Remove URL Language Code: No" = In a En default site all the URLs will be as https://mysite.com/en... But as far as I know, all the no /en URLs will be reached and redirected to the /en. So, for example, my https://mysite.com/company1 will be redirected to https://mysite.com/en/company1
This means that I can simplify my domain on my visit card without writing /en/... Am I right ?

2 - About point 2, What's happen from a Google Analytics point of view ?
Are the statistics stored as an English /en site on both situations or just if I set "Remove URL Language Code: No" ?
I'm asking because I'm running a default es site with Automatic Translations from es. But often translate automatically from /es is worse than from /en. So, maybe, (solved some components incompatibility) I'll have to switch the default site /en.
I'd like to don't loose all the mydomain.com (es) and mydomain,com/en site statistics and/or "mix" them...

3 - PS I know there is a new "Google Translate Tracking Analytics feature":
https://tosbourn.com/google-translate-t ... analytics/
https://developers.google.com/analytics ... ackingSite
Do you know if it can run also with Joomla Multilanguage ? I mean if I add the analytics.js, in an Automatic Google Translate / Joomla Standard Manual multilanguage mixed site, Are the Joomla languages site listed in the same Event/en (etc.) folders ?!?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18803
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Language code > Redirection & Analytics - Questions

Post by infograf768 » Mon Apr 15, 2019 9:04 am

1 - "System - Language Filter > Remove URL Language Code: No" = In a En default site all the URLs will be as https://mysite.com/en... But as far as I know, all the no /en URLs will be reached and redirected to the /en. So, for example, my https://mysite.com/company1 will be redirected to https://mysite.com/en/company1
This means that I can simplify my domain on my visit card without writing /en/... Am I right ?
Your base url is https://mysite.com/ that is what you can print on your card.

Then, all depends of the settings in the language filter " Language Selection for new Visitors".
Browser will try to display the preferred language set in the user's browser or display the site default language.

Concerning 2.
Your pages will be analysed depending on the language set in the head of the page. If you use or not the language code for the site default language.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

vmitranchi
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Mar 09, 2019 11:18 am

Re: Language code > Redirection & Analytics - Questions

Post by vmitranchi » Fri Apr 19, 2019 8:28 am

thanks for ans this questions..very helpful for me...


Post Reply

Return to “Language - Joomla! 3.x”