Extending RankMath to show individual keyword counts

#437617
  • Resolved Hamish
    Rank Math free

    I’d like to get a more granular view of the number of times a keyword has been used (rather than having all the keywords combined and just showing keyword density).

    A basic implementation:
    After each keyword in the Focus Keyword box have a number in brackets for number of times used.

    A complex implementation:
    For each keyword show a table listing the number of times the keyword is used in the different page elements:
    Keyword1 Keyword2 Keyword3
    Title 1 0 0
    Headings 1 1 0
    Main Content 1 2 1
    Image Description 3 0 0

    Are there any filters to do either the basic or complex implementation?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for contacting us for help with displaying the count for individual keywords.

    I am sorry to disappoint, but Rank Math does not currently have the functionality to display the count for individual keywords and the amount of customization required is beyond the scope of our support.

    Hope that answers you. Please let us know if you have questions.

    Hamish
    Rank Math free

    Yeah this wasn’t meant to be a support request – I posted a general question on the facebook group and the post was rejected and they said to post a support request instead.

    So I’m working my way through the available documentation – is the developer ‘tabs’ filter still functional? I’ve tried using it a few ways to no effect – what is wrong with this function?

    add_filter( ‘rank_math/metabox/tabs’, function( $tabs) {
    $newtab1[‘potato’] = [
    ‘icon’ => ‘dashicons-chart-bar’,
    ‘title’ => ‘Custom Tab 1’,
    ‘desc’ => ‘Custom Tab 1’
    ];
    return array_merge( $tabs, $newtab1 );
    });

    Hello,

    That filter is no longer used to add tabs to our meta box since we converted the code entirely to JavaScript.

    To add tabs now you would need to use React and you can refer to this code to have an idea: https://github.com/rankmath/seo-by-rank-math/blob/master/includes/modules/schema/assets/src/index.js#L20-L31

    Don’t hesitate to get in touch if you have any other questions.

    Hamish
    Rank Math free

    Thanks.

    It would be helpful to go through the docs (that are still being linked to daily by the support team) and updating them to reflect which are now removed.Some filters are still fine like removing tests etc…

    Hello,

    We have informed the concerned team about this. They will check the filters and update the article.

    Please don’t hesitate to get in touch in case you need our assistance with anything else.

    Thanks.

    Hamish
    Rank Math free

    Thanks.

    Can you provide an example of how to use this filter in React?
    I can’t figure it out.

    Thanks,
    Hamish

    Hello,

    The file we shared previously includes a code snippet of how we are adding tabs to the SEO Controls of our plugin and the same process can be followed to add additional ones: https://github.com/rankmath/seo-by-rank-math/blob/master/includes/modules/schema/assets/src/index.js#L20-L31

    To use this method you need extensive JavaScript and React knowledge to be able to create a code snippet for this, however, this falls outside the scope of Rank Math support.

    Don’t hesitate to get in touch if you have any other questions.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this ticket.