Google Analytics

Q&A about the latest versions
Post Reply
Posts: 16
Joined: Mon Sep 08, 2014 4:58 pm

Wed Oct 03, 2018 3:53 pm

Hi, I have looked at this question previously and now another customer is asking for some form of tracking of behaviour when a visitor is viewing a tour.

I can add tags (although my usage is limited) but what I would like to be able to do is to track what a person is looking at and their flow through the tour. So, a few queries,
1. How can I use tags/events etc in analytics to track node views?
2. How can I track node views and flows?

User avatar
Posts: 11134
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK

Wed Oct 03, 2018 4:29 pm

This was covered a while ago.
You can use Google Tracking to track events, well you could when we tested it.

You head over to Google Tracking and create an account to track events.

In Pano2VR you use a Go To URL action that makes a JavaScript call to send the event to Google.
You could track 500 events per tour.

In Pano2VR skin and for a hotspot template:
Mouse Click, Open Next Panorama, URL: $(hu), Target: $(ht)
Images Ready, Go To URL, URL: javascript:_gaq.push(['_trackEvent', '$(ud)', '$(ut)']); Target: (leave blank)

So in the above when the next node loaded it would push a tracking event using information in the user data. Here I'm using $(ud) for teh name of the tour and $(ut) for the name of each node.
You then need to add your tracking account code in the header of the HTML page, it would like similar to this:

<script type="text/javascript">

 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-XXXXXX-X']);

 (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);


Of course any button can have a GoTo URL action and push the information, a zoom in button for example:
Mouse Click, Go To URL, URL: javascript:_gaq.push(['_trackEvent', '$(ud)', 'zoom in']); Target: (leave blank)

As said this was all done a long time ago now but Im sure with a little research you can get it working.
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
Posts: 43
Joined: Mon Jul 21, 2014 9:38 pm
Location: Houston, Texas

Fri Mar 15, 2019 8:19 pm

I have increasing requests from clients asking for more detailed Analytics at the node level. I have read through the forum posts on this topic but have not been able to get P2VR to track any event beyond the initial index.html page load. I freely admit javascript and coding in general is not my forte. Is anyone successfully tracking nodes and various other analytics events? I will happily pay for consulting. Please let me know. Thanks!
Posts: 21
Joined: Thu Apr 25, 2019 5:23 pm

Fri Dec 13, 2019 3:21 pm

Hello to all,
same here ... we want to use Google Tracking Manager for tracking events inside a Pano2vr-Tour ... I get the clicks registered, but there is no information tracked like Click URL, Click Text, Click Target, ...
The code from above seems not working anymore ... has anyone a working solution to track analytics events?
Posts: 11
Joined: Wed Feb 19, 2020 1:02 pm

Tue Mar 10, 2020 4:09 pm

Same for me: really new but clients ask for more insights as 3DVista offers. Any help would be great.


Maybe a topic for a next awesome tutorial :)
Posts: 10
Joined: Mon May 04, 2020 8:46 pm

Mon May 04, 2020 9:58 pm

it is possible to tracking event by using the new gtag() in google analytic

follow the step to insert the base page tracking code in html template. viewtopic.php?t=11242. the new google tracking script is call gtag()

This is my example. insert the script in hotspot "GO TO URL". --->URL textbox


function googleAnalytic() {

var noteTile=pano.getNodeTitle();

gtag('event', 'Click_360HotSpots', { 'event_category' : 'pano_tours', 'event_label' : noteTile});



you can replace 'Click_360HotSpots', 'pano_tours'and 'noteTile'. do any definition you want. see this link. ... gjs/events

finally, checking your real time analytic event tracking, you should spot the event has been insert in your event tracking tab. wait next day. the record should show up in the behavior section.

Thank you.
Posts: 11
Joined: Wed Feb 19, 2020 1:02 pm

Thu Aug 06, 2020 10:49 pm

just to add up threads:

things are going on here:
viewtopic.php?f=22&t=14661&p=62773&hili ... ics#p62773

Use the GA-Component from GGnome and adjust the event-tracker as you need ;)
Posts: 69
Joined: Fri Mar 30, 2007 7:28 pm

Wed Nov 04, 2020 3:12 pm

Since this thread still pops up more than any other when searching for google analytics in pano2vr, Come to viewtopic.php?f=22&t=14661
Post Reply