Panalytics Panotour Plugin
Panalytics will allow you to track behavior in the Virtual Tour through Google Analytics™ version 4, which will soon replace the UA version. ( Universal Analytics )
For more information, read Support Page of Google Analytics™
The plugin has various GDPR restrictions options, such as the ability to show a prompt and to embed an IP service (Ipdata optional and third-party) to select countries that have privacy law and data processing.
In addition to the Plugin, you will also have actions to manage all user behavior on the Tour.
It also has a Debug tool, which you can use to check the data that is passed to Google Analytisc™, before putting the project online, without logging data in the development phase.
For this procedure you will need to use the Chrome Browser and the Google Analytics Debugger Browser Extension.
Enjoy