• Resolved crystalge

    (@crystalge)


    Hi there,

    I’ve just installed and initiated my first popup, which should be visible on my website’s homepage to visitors from the USA.

    However, I am currently unable to get this to display on the homepage, ever.

    I have linked it to one other page and can confirm that the popup itself is working, it’s just unable to display on certain webpages (ex. Homepage).

    For added context, I use the theme: Divi.

    Looking forward to hearing a solution,

    Crystal

    • This topic was modified 5 months ago by crystalge.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @crystalge

    I hope you’re well today!

    Is this the popup in question?:

    https://app.screencast.com/V1cykfGatmHhz

    If yes, I can see it on the homepage even when visiting from outside of US but I’m not sure if that’s because it is failing to detect country now or if you have removed the country-location visibility rules form it.

    So to make sure:
    – it should show on the homepage only
    – and only to the visitors from US, right?

    Assuming that these are the only two visibility restrictions, you should set it like this in the popup Visibility settings:

    – the rule should be set to “Show when all of the following conditions match”
    – there should be two conditions added then into the same condition group

    a) “Static Pages” with “Only these” option set and “Front page” option selected
    b) “Visitor’s Country” with “Only these countries” option set and “United States of America (USA)” option selected.

    Assuming that IP detection on site works fine, this should do the trick. Is that set this way or differently? If it’s different – can you share screenshot of current “Visibility” settings of that popup?

    Best regards,
    Adam

    Thread Starter crystalge

    (@crystalge)

    Hi Adam,

    Thank you very much for your prompt reply! I was running some further tests after making this post, and it seems that the front page pop-up only works when the visibility rules have it noted as a static page, with no other potential static page or regular page options. This seems to be the case even when “Any” is the choice selected as opposed to “All”.

    It also seems to be the case that the only certain countries field only works one time, meaning if I make two rules on the pop-up where rule#1 is only visible in the USA on the static front page, and rule#2 is only visible in the USA on the other page, the rule#1’s country limited visibility breaks. This is why the country limited visibility wasn’t working for your viewing purposes.

    I had wanted this pop up to appear on the front page as well as one other page. Since it seems to be unable to handle this request, I’ll be making a second pop-up just for that page as a work around.

    Thank you very much for your time and attention into this matter.

    Best, Crystal

    Thread Starter crystalge

    (@crystalge)

    Hi Adam,

    Further update, the limiting to USA only feature is completely broken, in that it does not work. I can set a VPN to Canada, USA, Shanghai and it will showcase this popup in all 3 locations.

    Please advise how to fix this.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @crystalge,

    Possible to provide us with the export of the popup and also share the screenshot of the current visibility conditions you have configured in the popup so that we can have a better idea?

    Please check the following doc on how to export the popup:
    https://wpmudev.com/docs/wpmu-dev-plugins/hustle/#module-dashboards

    You can share the export file via Google Drive, Dropbox or any cloud service in the next reply.

    Looking forward to your response.

    Kind Regards,
    Nithin

    Thread Starter crystalge

    (@crystalge)

    Hi Nithin,

    Thank you for your reply. Please find attached the requested export and screenshot here:

    https://www.dropbox.com/scl/fo/q81yh6vouwolvti8aqrdl/AGDidgxJRJ6b4aEuzlxVwkY?rlkey=h2mj7b7hb21atgjkxp7eudfeu&st=vvye76n4&dl=0

    I’ve had to draft the popup for now, so that it’s not visible until this is resolved.

    Looking forward to your reply!

    Crystal

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @crystalge

    Thank you.

    The settings are looking fine, when I switched to VPN I got the PopUp but switching back I didn’t.

    We will need to check if the Hustle is getting the correct IP and if it is not a caching problem.

    Can you please add this a define to wp-config.php just before the /** That’s it, stop editing.. **/:

    define('HUSTLE_STATIC_CACHE_ENABLED', true);

    Check if the issue is gone, if not, enable the debug mode in your WordPress https://wpmudev.com/blog/debugging-wordpress-how-to-use-wp_debug/ and add the following code as a mu-plugin:

    <?php 
    
    function hustle_ip_country_debugger( $country, $ip ) {
    
        $ipTemp = "my ip" . $ip;
        error_log(print_r($ipTemp, true));
    
        return $country;
    }
    
    add_filter( 'hustle_get_user_country', 'hustle_ip_country_debugger', 10, 2 );

    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Then check the debug.log file for your IP, for example https://monosnap.com/file/AgU3lsGtzx2O04FYPbInBiO0gKy7Zl and compare it with https://www.iplocation.net/ip-lookup to validate if it is finding the proper IP from different countries or always return the same IP.

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @crystalge,

    I hope the Patrick’s suggestions helped.

    We’ll be marking this thread as resolved, since we haven’t heard from you for some time. Please let us know if you still have any questions.

    Best Regards,
    Dmytro

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.