How to add Google Analytics Tracking Code to My Website?
-
How to add Google Analytics Tracking Code to My Website?
I am using the child theme, which file should I add the tracking code to?
Hello,
The best way is to use the free plugin Insert Headers and Footers, have a look at the site https://wordpress.org/plugins/insert-headers-and-footers/
Best Regards
if I don’t want to use a plugin.What file should I add to?
You tell me which file it is, I copy it to the child theme and then add the tracking code.
Hello,
You need to insert in the header.php file you can get it from Dashboard > Appearance > Editor, chose the theme.
Best Regards
Should I copy the header.php file to the child theme on the server first?
Hello,
Your question is not clear. Copy the file to the child theme and insert the code.
Best Regards