Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 0 voices.

Last updated by davidH-172 1 month, 2 weeks ago.

Author Posts
December 20, 2024 at 4:03 pm #16534909

davidH-172

Background of the issue:
I need to install Google Analytics e-commerce code on each of our WPML stores, which are on different domains. I have a WPML site (live) with separate domains for the UK, Germany, Hong Kong, etc. I have installed WPML as it is the only one that works with WooCommerce/eCommerce.

Symptoms:
The problem I have after installing is that I can integrate with analytics, but it doesn't let me do so separately for each domain. Each site needs its own analytics code.

Questions:
Is there a setting somewhere that allows separate analytics integration for each domain?
Is it simply not possible to have separate analytics codes for each domain?

December 20, 2024 at 5:07 pm #16535050

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

You can use our filter to apply different tracking codes based on the language code. Here's an example: How to set up GA4 Analytics using a different domain per language.

Best Regards,
Marcel

December 20, 2024 at 5:25 pm #16535094

davidH-172

Thank you, I believe the functions.php solution will be much better than using a plugin. many thanks.