SEO Report | “View Detailed Analytics” Link | Need Filter for Custom Login URL

#225962
  • Resolved AeroStar
    Rank Math free

    Good Day!

    Your SEO email report contains a link (button) at the very bottom titled “VIEW DETAILED ANALYTICS“.

    The link URL (format) is:

    https://www.mywebsite.com/wp-admin/admin.php?page=rank-math-analytics

    Because we have a custom admin login URL (e.g., /custom-admin/ instead of /wp-admin/) we need a filter that will allow us to click the above link without getting an error.

    Please advise.

    Thank you!

Viewing 15 replies - 1 through 15 (of 20 total)
  • Hello,

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    Our Email report feature is new so we don’t have a filter for this yet.

    Are you using a plugin to change the admin URL? If yes, could you please share the name of the plugin so we can check this instead?

    With that said, I have also check this one with our dev team.

    We appreciate your time and patience on this one.

    Hi Jeremy,

    Yes, we are. Currently, we are using Perfmatters to obfuscate (hide) our login URL.

    Once you install the plugin, go to:

    WP Dashboard > Settings > Perfmatters > General > Options > General > Change Login URL

    Screenshot: https://prnt.sc/1anv37p

    Also, we use on occasion the security plugin, iThemes Security Pro, which also provides the same feature.

    Hope this helps.

    Thank you!

    Hello,

    I apologize for the unexpected delay.

    Unfortunately, we don’t have a copy of that specific plugin so we can’t test it on our end. I tried using a similar plugin and it seems the button link worked fine: https://wordpress.org/plugins/change-wp-admin-login/

    We might need to check this one over your admin so we can take a closer look at the issue. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Almost forgot …

    We have also contacted the developer of Perfmatters to see if they can come up with a filter or hook to solve this issue. Will keep you informed. Still, would appreciate you addressing Items (1) and (2) above.

    Cheers!

    Update from Perfmatters (Plugin Developers):

    They have confirmed that Rank Math needs to develop a filter or hook to fix this issue.

    Here’s their reply:

    I think that would have to be a filter on their end, since allowing any sort of redirect from a query string variation would then expose an endpoint to access the hidden login URL.

    You can contact the plugin developers (Brett or Brian) at hi[at]forgemedia[dot]io for more information and to receive a copy of their plugin.

    Looking forward to your fix!

    Thank you.

    Note: Keep in mind that any filter or hook you develop will help anyone using a custom login URL. You can then add the filter to your awesome list of filters and hooks.

    Hi Jeremy,

    Thank you. Two things:

    (1) We tried your recommended plugin, “Change WP Admin Login” and it didn’t work for us. Can you share the settings you used to make it work?

    (2) We may have found a potential solution. It requires that Rank Math provide a filter or code snippet that will redirect the links in your email (using wp-admin) to our custom login URL. This WordPress topic summarizes what we need. Geez, I’m sure this is not the first time someone has run into this issue. 🙂

    Cheers!

    Hello,

    Here is a filter you can use to change the reporting URL:

    add_filter( 'rank_math/analytics/email_report_variables', function( $vars ) {
    	$vars['report_url'] = "https:://newlogin-url.com";
    	return $vars;
    } );

    Do note that the “View Analytics” button is not available in the free version so the above code will only work if you are using the PRO or the Business version of Rank Math.

    We have also added the above filter to our Filters list.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi Uzair,

    Thank so much. Questions:

    (1) Does your filter also cover the footer URL for changing email preferences?

    Namely, this link:

    https://www.mywebsite.com/wp-admin/admin.php?page=rank-math-options-general#setting-panel-analytics

    (2) Does your filter cover any hidden login URL? That is, hidden by any plugin like Perfmatters and/or iThemes Security?

    Once you confirm the above, we’ll purchase your PRO version and test the filter(s).

    Thank you!

    Hello,

    1. Option for that is provided in the plugin backend: https://i.rankmath.com/pjCEYe

    2. The filter only affects the email report URL. We do not have any hidden links in the email and any external links will not be affected by that filter.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Additional Info:

    Concerning (1) above, our best guess is the filter would look something like this:

    add_filter( 'rank_math/analytics/email_report_variables', function( $vars ) {
    	$vars['report_preferences'] = "https:://newlogin-url.com";
    	return $vars;
    } );

    Where $vars['report_preferences'] replaces the term $vars['report_url'] noted in the filter you provided above.

    Again, help appreciated!

    Hi Uzair,

    Thank you so much for your help!

    In response:

    (1) The information you provided is for Rank Math Business. What about Rank Math Pro Version?

    The email report link we are referring to is this one. It’s in the front end. It’s one that says “click here.” It contains the URL provided above. Does the filter you provided work for this link as well?

    (2) Yes, that’s correct. No worries. Slight misunderstanding.

    Thank you!

    Hello,

    1. Those options are only available in the Business license.

    Hope that helps.

    Hi Uzair,

    Sorry, slight misunderstanding or miscommunication.

    The link we are referring to is located in the footer of the SEO email report (frontend NOT backend) as shown here.

    To understand better our request, email the report to yourself (free or pro versions) and you’ll see exactly what links we’re talking about. They don’t work for websites that have a hidden or custom login URL.

    Thank you!

    Hello,

    Yes, we understand and that is what the Business license provides an option for. This is the template:
    This email was sent to you as a registered member of <a href="###SITE_URL###">###SITE_URL_SIMPLE###</a>. To update your email preferences, <a href="###SETTINGS_URL###">click here</a>. ###ADDRESS###

    You can just paste a hard coded link like your-domain.com/custom-admin-folder/admin.php?page=rank-math-analytics instead of the ###SETTINGS_URL### variable.

    Hi Uzair,

    We get it too. However, we don’t have a need to upgrade to a business license.

    So, in short (again), all we need is a filter for the link provided. You did it for the previous one. A filter like the one below (suggestion) would solve this:

    add_filter( 'rank_math/analytics/email_report_variables', function( $vars ) {
    	$vars['email_preferences'] = "https:://newlogin-url.com";
    	return $vars;
    } );

    We truly appreciate the time and effort you’ve spent on this. We truly do.

    Thank you!

Viewing 15 replies - 1 through 15 (of 20 total)

The ticket ‘SEO Report | “View Detailed Analytics” Link | Need Filter for Custom Login URL’ is closed to new replies.