Can My Tracking Code Be Used On PHP Pages?

Hello!

Can my Piwik tracking code be used on the PHP pages I embed my photo galleries in?

Thanks!

Sure it can! see: JavaScript Tracking Client: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

and / or Tracking API - Analytics Platform - Matomo

Matt

I probably should have worded my original question better. I am looking to use Piwik to track the activity on our photo gallery pages, which are PHP-based. I implemented the ‘Image Tracking’ code, but I’ve noticed that the ‘From’ data that appears when we use our ‘traditional’ tracking code is missing. Is there a way we can get this data to appear?

Thanks!