Add Google Tag Code Into Header Section
This is a Developer Level doc.
If you're unfamiliar with PHP and/or editing files, codes and templates, as well as with resolving possible conflict, please seek help from a professional. Under our Support Policy, we don't provide support for modifications and customization.
If you want to add a Google Tag code into your OceanWP theme's header section, you need to:
- Install and activate OceanWP Child Theme,
- Copy the header.php file from the parent's theme folder into the child theme's folder,
- Edit the copied file in the child theme's folder using any editor and add Google Tag code into the head section of the file.
All PHP snippets should be added via a child theme's functions.php file.