javascript - Is it possible to track subfolders using Google Analytics from one file? -


let's directory structure:

root index.php -- folder 1 -> file.php           -- folder 2 -> file.php             |-- subfolder -> file.php           -= folder 3 -> file.php 

and need put tracking code on index.php file, need single code track activity on every single folder child of folder index.php is.

i need insert tracking code on index.php, or should else, using php require commend?

edit: made it, here how i've put things work: insert google analytics in php (am doing right way?)

ultimately, want analytics tracking code appear on every page of site wish track.

once solution include tracking code in php file (say, analytics.php), , require after opening <body> tag of pages.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -