concrete5: how to hide tracking code for editable users (post 5.5.x)

In order to receive the acurate Google Analytics¬†visitor’s data, you want to avoid tracking the access when the site admin visits a concrete5 site. This is how to hide the Google Analytics tracking code when the users who has the editing permission or admin visited your concrete5 site. This method only works with concrete5.5.x and later. 1. Create a blank text file /elements/footer_required.php 2. And paste the following text file 3. Copy /concrete/elements/header_required.php onto /elements/header_required.php 4. Replace where the following code (towards the end) onto this Now Google Analytics code will no longer be printed on your concrete5 site when the admin/webmaster visits