If you click on the scripts manager feature and it redirects you to your homepage, this could be because you have the Yoast SEO feature “Redirect ugly URLs to clean permalinks” enabled.
In most cases, we recommend disabling this feature. Even Yoast SEO recommends not using this. However, if you do need it for some reason you can simply enable the “Prevent cleaning out Google Analytics Campaign & Google AdWords Parameters” feature. Then add the “perfmatters” variable to the prevent cleaning option (as shown below).
This will allow you to continue to use the Yoast SEO redirect ugly URLs feature and prevent the perfmatters plugin from redirecting you to the homepage when using the scripts manager.