Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're using WPML with the 'different domain per language' setup and notice that after switching languages, the homepage URL includes Google tracking parameters from Google Ads or Google Analytics, and you want to keep the URL clean without these extra query strings.
Solution:
First, ensure that the issue isn't related to WPML by following these steps:
1. Create a backup of your website or test on a staging version to avoid disrupting a live site.
2. Switch to the default theme, such as 'TwentyTwenty', by navigating to 'WordPress Dashboard > Appearance > Themes'.
3. Go to 'WordPress Dashboard > Plugins' and deactivate all plugins except WPML and its add-ons.
4. Check if the issue still occurs.
5. If the issue is resolved, reactivate your plugins one by one to identify the problematic plugin.
For more details on WPML's domain setup, visit WPML domain setup documentation.
Additionally, provide debug information if needed by following this guide: How to provide WPML debug information.
Since the parameters are added by Google Analytics, we recommend contacting the support service of the Google Analytics plugin to resolve this issue.

If this solution does not apply to your case, or if it seems outdated, please check related known issues at WPML known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if further assistance is needed. Visit our support forum at WPML Support Forum.

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 3 replies, has 1 voice.

Last updated by ricardoS-58 1 week, 2 days ago.

Assisted by: Carlos Rojas.

Author Posts
April 21, 2025 at 3:10 am #16950535

ricardoS-58

Background of the issue:
I’m using WPML with the 'different domain per language' setup. After switching languages between domains, I noticed that the homepage URL sometimes includes Google tracking parameters. These parameters seem to come from Google Ads or Google Analytics. I would like the homepage URL to remain clean — without these extra query strings.

Symptoms:
The homepage URL includes Google tracking parameters like: hidden link..

Questions:
Is there a way to automatically remove these parameters from the URL after the language switch, without affecting the functionality of the site or tracking?

April 21, 2025 at 3:22 pm #16952104

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Welcome to WPML support. I will answer before the ticket is assigned to one of my colleagues.

That should not be somethiong related to WPML, but it can be tested.

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except WPML and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

In General, WPML only keeps track of the user login in the separate domain mode. For more information:

https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/#3-set-up-the-option-in-wpml

Finally, I'd appreciate it if you could provide the debug info:

https://wpml.org/faq/provide-debug-information-faster-support/

Thanks.

April 22, 2025 at 3:13 am #16952957

ricardoS-58

Hi,

Thank you for your response and assistance. I’ve already tried the steps you suggested, but it seems that they are not related to the issue. After further investigation, it looks like the additional parameters are coming from Google Analytics itself, not from WPML.

If you happen to have any references or resources that might help me with this, I’d really appreciate it.

Thanks again for your support!

April 23, 2025 at 7:48 am #16958274

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hello,
My name is Carlos, and I will continue working on this ticket

As you correctly mentioned in your last message, the parameter is added by Google Analytics and not by the WPML plugins. I recommend contacting the support service of the Google Analytics plugin and asking them how to avoid this issue.

Best regards,
Carlos

April 29, 2025 at 3:18 am #16976954

ricardoS-58

Hi Carlos, thank you for your response. I have overcome the problem, and it is fixed now. Thanks again for your support!