When adding Google analytics code to a php website do I add the code to only the index page, every page created or only the front facing pages in the customer journey? What is the best practice? Thank you for any responses in advance.
All the pages you want analytics on, add the code on the front facing pages. Best practice will be to create a file "analytics.php" and paste the code there, and add
<?php include_once("analytics.php"); ?>
To all the front facing pages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With