In Matomo click in the top right menu on Administration ("gear" icon), then click on Platform in the left sidebar menu, then click Widgets.
Now you see a page where you can choose between two different iframe embeds.
Copy/paste one of those iframe widgets in the plugins Widgets: Embed code option.
there is a selection in Matomo called "Matomo Tag Manager", and it gived this code: does this look right?
var _mtm = window._mtm = window._mtm || [];
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
(function() {
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://analytics.waltrips.com/js/container_E6Nb4M2f.js'; s.parentNode.insertBefore(g,s);
})();
Note that this statistics embed only works if you are logged in into matomo already as well. There are extra steps to make that work without apparently I never tried: https://matomo.org/faq/reports/requirements-for-embedding-matomo-reports/
OK... gear/platform/widgets
Looking there, I see Authentication, Widgetize Dashboards, and Widgetize reports.
I may not have asked the question very well.
No, a running Matomo install and general configuration is enough.
But for privacy you may need to add the content macro to allow the opt out tracking or disabling cookies or the consent options.
It is up to you this all is matching your jurisdiction regarding privacy.
:-)
Now if I could just figure out how to block China......
There is no real way to block a "country". Two ways to block visitors: