Page 1 of 1

Language code > Redirection & Analytics - Questions

Posted: Fri Mar 29, 2019 12:49 am
by joomleb
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 ?!?

Re: Language code > Redirection & Analytics - Questions

Posted: Mon Apr 15, 2019 9:04 am
by infograf768
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.

Re: Language code > Redirection & Analytics - Questions

Posted: Fri Apr 19, 2019 8:28 am
by vmitranchi
thanks for ans this questions..very helpful for me...