Google tracking code without plugin

I would like to add the google tracking code to my site without using the plugin as it sometimes stops working.
Would functions.php file under the Child theme be the right place to do so? If so please advice what opening closing tags I would need to enclose the tracking code with.

Thanks.

Hello @ayham,

Thanks for writing in!

To add Google tracking code via function.php file, please use the solution shared in following thread:

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.