It hasn't really changed. Use an event on the download link such as (assuming you're using Universal Analytics) download files from facebook messenger
It is a known fact that Google Analytics doesn’t track files out of the box. But with some additional work from our end, we can make it work. In this article, I will show you how to properly track file downloads on WordPress using Google Analytics. But before that, let’s see why you must track file downloads on your site.
Here's an example of data in Google Analytics from tracking .png file downloads using GTM. Tracking downloads using GTM is a very straightforward process. And it's the industry standard for