Before you start
You need your widget code snippet and admin access to WordPress. No PHP editing, and nothing that touches your database.
Step by step
The simplest route is a code snippet plugin. Install one from the plugin directory, create a new snippet, paste your code, set it to run site-wide in the footer, and activate.
If you would rather not add a plugin, most themes have a footer scripts field under Appearance or in the theme options. Paste it there instead.
Either way it goes in once and appears on every page. You do not add it per page or per template.
On Elementor sites, the same applies — add it site-wide rather than dropping a widget into layouts.


