Which is the main page template?

Hi dear Activello-Folks,

tryin to improve my site with google statistics.
They suggest to create a file named analyticstracking.php with the following code:

(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,‘script’,‘https://www.google-analytics.com/analytics.js’,'ga’);

ga(‘create’, ‘UA-92987793-1’, ‘auto’);
ga(‘send’, ‘pageview’);

i did so. And now i should implement the following code into all the php-Template Files:

<?php include_once(“analyticstracking.php”) ?>

Is that really necessary or is there probably one main Template-File in which to enter the Code?
As usual, many kind regards in advance an have a nice Weekend.

GT

Hi GT,

I hope you are well today and thank you for your question.

You don’t need to do that custom work to use Google analytics. Just use and configure any of the following plugins.

Best Regards,
Movin