Hi @newtlabs,
Those strings of text in the URL are not added by WPCode but rather by the scripts that you use, from that I can see they may be added to track users across across domains since browsers changed the way they work in terms of cookies.
WPCode does not add any such query parameters to your URL and you will see that if you remove the scripts from the header field in WPCode you will no longer get those in the URL.
Specifically for the _gl parameter that you mentioned you can read more on this page: https://support.google.com/analytics/answer/10071811?hl=en
this part:
https://a.supportally.com/i/ntnUoq
-
This reply was modified 1 year, 7 months ago by
Mircea Sandu. Reason: screenshot
these scripts added via the head of the theme template work fine and do not add anything to the url. It is only when adding them via your plugin there is an issue, they were working fine before on your plugin for many years but crashed the site after updating to the latest version of your plugin.
Hi @newtlabs,
I can see how it may seem this way, but we have not changed anything in the way the scripts in the header are loaded in any recent version. WPCode does not change the way the scripts are loaded in any way. From the screenshot you shared, the code you load is external so WPCode simply outputs what you added in the place you indicated, the logic is handled by the script that is loaded from another website so can’t change anything in the way that works.
Since you are running into the cross-domain parameter (mentioned in the Google support link I shared) what I suspect may have happened is maybe you changed some links on your domain from www to the non-www version (example.com/link vs http://www.example.com/link)?
Please reach out using the form at https://wpcode.com/contact and we can look into this if you want to share the URL of your website privately.
Hi,
nothing on the domain was changed, the only other thing that changed since the issue appeared was that we updated the WP version from 6.5.5 – 6.6.
We are not using your plugin on this website so you can close this ticket but I thought it would be worth sharing in case there is a bug.. As mentioned the issue is resolved when deactivating the WP Code plugin and the site works fine when adding the same scripts to the head via the theme.
Hi @newtlabs,
I appreciate you sharing the issue and we’re happy to help pinpoint what is causing the issue but I can’t think of any reason why the script added through WPCode would act differently since we do not alter or change the code in any way.
If you ever decide to use the plugin on this site again and run into the same issue don’t hesitate to reach out here or using the contact form.