Google Analytics for Audio Files on Ibiblio

Hello, I am volunteering for a group that uses Ibiblio to store audio files. I want to help them be able to get usage statistics for them. Their file are located at: Index of /trrs . How do I configure Google Analytics to pick up stats from that directory?

@Lainie_Hoverstad I think it would need to be added by the maintainers of the /trrs collection. This collection currently uses auto-index directory listings. Converting its pages to either static HTML or (likely more feasibly) generated by PHP would provide pages to which the analytics could be added.

1 Like

@milberg , thank you so much for your help. I now better understand now what needs to happen. I believe that once I speak with the maintainers of the ibiblio collection and gain access, I could create a PHP web page that automatically lists the audio files (with an embedded audio player) that would allow me to add GA tracking code.

My understanding is that I could host the PHP web pages either here on ibiblio - or as a web page of their web site. For example today NCRS – Ways to Listen – North Carolina Reading Service links out to the audio file categories under /trrs. I would imagine in the future that section could instead link out to separate PHP web category pages that automatically pulls in any new files saved in the folders.

If the pages are saved as part of their web site, I would just need to figure out how the PHP code would need to be configured to pull in new files added to ibiblio. Thank you again very much for your help !

@Lainie_Hoverstad Yes, that makes sense. There are PHP functions to read files present in a directory so that they can be included in a page dynamically. If you have questions/issues with this when you work on it, we can assist through a help ticket.