Hi all,
We’re changing a website to be multi-lingual, and the languages/regions will be separated using sub-folders (domain-name.com/fr/, domain-name/de/ etc.)
What is the best way to set up the javascript tracker in order to enable easy analysis of pages that are duplicated across multiple languages?
For example, Page A may exist 3 or 4 times:
domain-name.com/fr/example-page
domain-name.com/es/example-page
domain-name.com/de/example-page
Analysing these pages in aggregate could prove cumbersome as the paths will all be distinct, even those these are the same page.
My initial thoughts would be to send a custom context with every page view tag, with meta information about the page in general and the country/region. So for example, a self-describing JSON could include the fields:
Page ID
Page Type
Page Category
Region
Language
Product ID
etc…
Is this a good solution? This could then mean we can analyse on a Page ID level, assuming the Page ID is the same for the product regardless of whether it is in French or German.
Does this seem like a logical structure? Does anyone have any experience in using Snowplow in sites with multiple territories/languages?
Any help is appreciated.
Jordan