2012-07-21, 02:39:32
Ed at ISI Wrote:How does this plugin work with Google Analytics?
I'm building a site in both English and French.
It the full URL is shown, I assume the variable "lang=fr" will show up in the Analytics report.
But if Fancy URLs is selected, then the URLs are the same for each page irregardless of the language of the content.
Does Google still differentiate the pages somehow or is there something I need to set to alert Google which language the viewer is seeing?
If you use get_i18n_header() instead of get_header(), the plugin will include a canonical link with the language in the header. At least Google indexes both language versions of my few multi language pages on http://mvlcek.bplaced.net. You can also configure the plugin to put the language at the end of the URL instead of into the lang parameter.
Or you can configure the plugin to always include the language in the URL.
For more information see the (now updated) page http://mvlcek.bplaced.net/get-simple/i18n/.