• Resolved frii

    (@frii)


    We have tried using this plugin and it doesn’t work for one of the sites we’ve tried it on. All our visitors comes up as “generic” and we can’t get any more information than that.

    What we’ve tried
    Installed the plugin on two different sites, same theme, wordpress version, php version and no other plugins installed. All cache disabled.
    The plugin works perfectly on one site but not on the other.
    Looking at the dev tools in Chrome I can spot some differences under the Network tab, not sure if this is the problem.

    Working site
    :authority: shapeways-promo.com
    :method: GET
    :path: /index.php?rest_route=/device-detector/v3/describe&ua=
    :scheme: https
    accept: */*
    accept-encoding: gzip, deflate, br
    accept-language: en-US,en;q=0.9
    cache-control: no-cache

    None working site
    :authority: https://www.friidesigns.com
    :method: GET
    :path: /wp-json/device-detector/v3/describe?ua=
    :scheme: https
    accept: */*
    accept-encoding: gzip, deflate, br
    accept-language: en-US,en;q=0.9
    cache-control: no-cache

    Thank you for your help!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello!
    Sorry to hear that… Could you confirm, what I understand:
    – the analytics shows only generic devices (and the site receive traffic)
    – the tool menu works (you can try different user-agents and it give correct results).

    Is it the current situation?

    Thread Starter frii

    (@frii)

    Hi Pierre! Thank you for your speedy reply. Yes the Analytics shows only “Other” devices. You’ll find a screenshot at this link: https://www.friidesigns.com/wp-content/uploads/2022/03/Empty.png

    The Tools menu work if I enter for example “iPhone” into the text bar. Then it returns Apple iPhone, Mobile Safari, iOS along with the correct images.

    But the bar is empty when I load the page and if I press the “Test Now” button I only get “Generic” as a result.

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    OK. So, from what you’re describing (and assuming you have tested with some different browsers on some different devices), I can tell you there’s something hijacking/obfuscating the user agent of your visitors on the server side.
    It can be the proxy configuration (if you have one), the server configuration (web server or php), a plugin or the theme.
    Do you have some specific settings on this server?

    Thread Starter frii

    (@frii)

    Thank you for your detailed reply, I looked through the server settings and I found the issue! I’m using Siteground for both sites but the PHP setup for the working site was set to “Ultrafast PHP” and the none working site was set to “Standard PHP”. Setting it to Ultrafast solved it right away. Kinda glad that it caused because I didn’t even know that settings existed ??

    Thank you for your help and an amazing plugin!

    Thread Starter frii

    (@frii)

    Btw, is it possible to get the exact model name (eg. Iphone X)? When I use get()->model_name it only displays iPhone and nothing more.

    Thanks!

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    First of all, very glad you found the root cause of the issue – and that you discovered some hidden secrets of your hoster ??

    Regarding the exact model for some brands (like apple), unfortunately it’s not possible to have more details: the detail is not present in the user agent (I think it may be a privacy choice from apple).

    Thread Starter frii

    (@frii)

    Okay, that makes sense. Still, a great plugin and thank you for your help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not working on some sites’ is closed to new replies.