Using Matomo Opt-Out with gatsby plugin

We are using the Gatsby plugin to track on our static sites with Matomo.

Now we are having a lot of client request for the Matomo Opt-Out HTML iFrame. How do we implement that with the plugin on a Gatsby.js or Next.js site?
Thanks a lot.