• Resolved Newt Labs

    (@newtlabs)


    Recent plugin update has caused pages other than the homepage to have strings of text in the url, which look to do with Analytics/GTM so perhaps some issue with the scripts (although they have been working fine for years before the latest update so maybe not..)

    This caused our firewall to block genuine users in the site so is a big problem.

    Please see example as follows:

    https://example.com/subpage/?_gl=11lgb41c_upMQ.._gaODgyOTY5NzY5LjE3MjEzMTc4MDU._ga_TJCLMQ0YYE*MTcyMTMxNzgwNS4xLjEuMTcyMTMxNzgwOC4wLjAuMA..

    Here is a screenshot of the scripts that were being used in the header section of your plugin (It wont allow me to cannot copy/paste them here): https://gyazo.com/7de71c36bfbe4297d4d76ce6be18716f

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    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 8 months, 1 week ago by Mircea Sandu. Reason: screenshot
    Thread Starter Newt Labs

    (@newtlabs)

    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.

    Plugin Author Mircea Sandu

    (@gripgrip)

    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 https://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.

    Thread Starter Newt Labs

    (@newtlabs)

    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.

    Plugin Author Mircea Sandu

    (@gripgrip)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘new version adds strings to urls’ is closed to new replies.