Hi @mollietanner,
Just to confirm, you want the ability for editors to see the Google Analytic plugin’s backend page so they can add the google analytics code themselves?
Did you know that once you (as an admin) have added the GA code, it is inserted into all of your website’s pages?
If you can give us more details that would be great!
Best,
Brandon
Hi,
Yes that is correct.
Yes I knew that but we have a multisite network with different franchisees in different locations therefore having different GA codes for their own website.
So I just need the editor role to be able to see the GA settings page and be able to add/edit their own code.
Thank you
Hi @mollietanner,
Thanks for getting back to us! Unfortunately I don’t believe this is something we can implement on our end as it would conflict with overriding other editor role capacities.
However, I believe the perfect solution for what you’re trying to do would be here: https://wordpress.org/plugins/user-role-editor/.
This plugin allows you to give editors access to plugin settings.
Let me know if you have any other questions Mollie!
Brandon
Hi, So I downloaded this plugin and yes it looks good. BUT I have ticked your plugin and updated the role. I have then logged into the site as an editor but i still cant see the settings?
I then pasted the url in the site where i am logged in as an editor and i see Sorry, you are not allowed to access this page.
Please see screenshots attached – https://we.tl/t-eanMxwTpsJ
Look forward to your response
Thanks
Hi – Any more guidance on this?
Many Thanks
Hi @mollietanner,
Thanks for getting back to us! So we’ve tested this on our end and it does work with the plugin that I linked prior.
You have to give editors the capability to “manage_options”, which would be the capacity they need to access the menu.
Hope this helps!
Hi,
We don’t want to give the editor role “manage_options” as this then adds menu items we don’t want the editor role to see.
Need to edit the plugin file where the manage_option set for cap, and need to change it to edit_post
I would like the users of editor role to access the google analytics plugin. It seems the menu is restricted to manage_options cap but I can’t add manage_options cap to the editor role as mentioned above.
Do you have any hook to add custom cap for this menu item? If not, could you please point me to the files and line number where I can modify this?
Look forward to speaking to you
Kind Regards
Hiya,
Do you have an update for me at all?
Regards