Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: edit HTML source & Google AdSense #183

Open
ShutdownRepo opened this issue Jun 16, 2023 · 3 comments
Open

feat: edit HTML source & Google AdSense #183

ShutdownRepo opened this issue Jun 16, 2023 · 3 comments
Labels
scope-script-injection A tag to track requests for the scope script:inject

Comments

@ShutdownRepo
Copy link

ShutdownRepo commented Jun 16, 2023

Is there any way we could use integrations to edit the source code and add, for example, blocks in <head></head>, add <script> tags etc. ?

I'm managing an free and open-source project on GitBook, and for that project to live on and keep on evolving, I'd need to have Google AdSense linked to it, so that it stays free for all, but generating revenue that would allow for re-investing for instance.
AdSense can be integrated in a website by adding a <script> tag within the <header></header> block (https://support.google.com/adsense/answer/7584263)

@ShutdownRepo ShutdownRepo changed the title feat: edit HTML source feat: edit HTML source & Google AdSense Jun 16, 2023
@addisonschultz addisonschultz added the scope-script-injection A tag to track requests for the scope script:inject label Jun 19, 2023
@addisonschultz
Copy link
Collaborator

Hi @ShutdownRepo,

This is a great feature request - but unfortunately isn't possible at the moment. We don't allow integrations to inject custom JS or CSS, for security reasons. We do have a scope that allows this to be possible for GitBook built and verified integrations at the moment - so for now I'll put this request for us to have a look at in the future.

@ShutdownRepo
Copy link
Author

Fair enough. Is there any way an official Google AdSense integration could be made then? Happy to help make it if needed

@addisonschultz
Copy link
Collaborator

Hi @ShutdownRepo,

Unfortunately right now the scope required for creating an integration like this is closed for the initial launch of the integration platform. That being said, we do know it's a highly requested feature, so have this high up on our radar for the next iteration(s) of the platform in general. We need to define a few things and figure out a secure and sustainable way to manage these kinds of scopes - and until we have that in place we'll do our best to monitor the requests coming in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope-script-injection A tag to track requests for the scope script:inject
Projects
None yet
Development

No branches or pull requests

2 participants