I managed to get Google Analytics working well in PTP1.8.
I am currently working with PTP2 but have had only limited success. The plugin documentation is a bit confusing, especially for PTP users as we are working with a specific XML structure.
The plugin does work to some extent. You can verify that the plugin works by testing the following minimum code with an html5 build.
Add this code to the main tour xml file (with your GA account code)
Copy the '/plugins' folder from the example (the one with the analytics.js) into the tour data directory.
Add a tracking event call to the main xml file (such as inside the 'startup' action).
plugin[ga].trackevent(Category - Comment, Action - Tracking added, pano27, spotpoint29)
In Google Analytics, the event should show up in the 'Real-time' section.
This is about as far as I have got. I haven't managed to get any of the plugin 'pano' or 'event' subnodes working yet.
I feel like the plugin should automatically add the 'pano' and 'event' subnodes by itself, but this hasn't been working for me.
It might be that I need to manually call the plugin's 'addpano' and 'addevent' actions instead - I am still testing this aspect.
I will let you know if I can progress further.