If you have a theme that doesn’t include a place to add your header, body, and footer tracking codes here’s how to do it with a plugin. The example I share is how to add the ActiveCampaign site tracking code to your website using a free plugin.
source
How to add tracking codes to your WordPress website with a free plugin
How to add tracking codes to your WordPress website with a free plugin
