Troubleshooting with Query Strings

When troubleshooting issues with share counts (or Social Rocket in general), we offer three query strings you can use to gain more information about what the plugin is doing on your site. While these are primarily used by our support staff, they can also be helpful for end users and developers.

These are only part of Social Rocket Pro. We don't typically provide the same depth of support for free users, so these query strings are only available to Pro users.

What if I don't want anyone to be able to use these on my site?

You can disable the query strings completely if you'd like. In your theme's functions.php or a custom functions plugin like My Custom Functions, simply paste in the following:

// Disable Social Rocket's query strings
	add_filter( 'social_rocket_disable_debug_actions', '__return_true' );


Manually Recount Shares for a URL

This query string allows you to force a manual recount of the post or page you are currently viewing. If your counts aren't accurate, this is a good way to see exactly what numbers Social Rocket is getting from each API.

To access it, visit the post or page in question and add the following string to the end, then hit Enter to view the information:

?srp_debug=manual_recount

So, if your site is domain.com and you are viewing a post called "My Post", the URL in your address bar would look like this:

https://domain.com/my-post/?srp_debug=manual_recount

You will see the post or page ID with a Submit button. Click the button to run the query. The page will refresh to show each attempt to connect to the social network APIs (based on which buttons you're displaying on the current page/post) and what count Social Rocket received from the API.


View the Background Queue

This query string will show you the queue of Social Rocket background processes waiting to run, including URLs that are preparing to update share counts. This can be helpful if you are troubleshooting a load time issue on your site and want to rule out Social Rocket as a potential cause.

To access it, visit any front end URL on the site and add the following string to the end, then hit Enter to view the information:

?srp_debug=show_background_queue

So if your site is domain.com, the URL in your address bar would look like this:

https://domain.com/?srp_debug=show_background_queue


View All Count Data

To view all count data sitewide, including the last time the counts were updated for a particular post or page, use this query string.

To access it, visit any front end URL on the site and add the following string to the end, then hit Enter to view the information:

?srp_debug=show_counts_data

So if your site is domain.com, the URL in your address bar would look like this:

https://domain.com/?srp_debug=show_counts_data


View All Social Rocket Settings

To view all selected settings for the Social Rocket plugin, use this query string.

To access it, visit any front end URL on the site and add the following string to the end, then hit Enter to view the information:

?srp_debug=show_settings

So if your site is domain.com, the URL in your address bar would look like this:

https://domain.com/?srp_debug=show_settings

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us