Enabling Google Analytics Integration under Settings automatically instructs WPS3Files to send the following events to your Google Analytics integration:
- Video Played
- File Downloaded
- File Uploaded
Other than enabling the checkbox there is no further configuration required other than to ensure Google Analytics is running on your site. Google Analytics can be deployed directly on your website, or through Google Tag Manager, both deployments will work. As long as the ga() function is exposed on your site, which is standard amongst all common Google Analytics deployment methods, this functionality will work correctly.
when someone clicks a file link, wps3files fires an event like the below
ga("wpS3FilesButtonClick.send", "event", "WPS3Files Plugin", "File Downloaded", "annual_conference.pdf")
WPS3Files sends events with the Action, Category and Label parameters pre-populated as follows:
|Parameter||GA URL Parameter||Example|
Advanced Users & Troubleshooting
For advanced users, Google Analytics also provides a Chrome extension that can enable the debug version of analytics.js without requiring you to change your tracking code. This allows you to debug your own sites and also see how other sites have implemented Google Analytics tracking with analytics.js.