You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, January 31st 2011, 9:12pm

Google Analytics Plugin

Hi,

this is the discussion thread for the Google Analytics plugin. Feature requests and feedback would be appreciated.

2

Wednesday, February 2nd 2011, 1:19pm

Waht ist the Advantage?

I use google analytics for a long time. What are the advantages to use this plugin?

3

Wednesday, February 2nd 2011, 2:00pm

My plugin supports both automatic and manual modes. Manual mode allows you to send tracking requests when it's needed, while the automatic mode sends page visit requests to tracker automatically, when user visits different panoramas. It is also supports user events tracking which is not related to a particular pano visits, such as buttons click, entering fullscreen mode etc. Moreover, my plugin have no problems with kprotect tool, while another analytics plugin has that problems, when you embedding resources in your virtual tour.
Review the plugin documentation for the detailed explanation of the features.

This post has been edited 1 times, last edit by "jaydee" (Feb 3rd 2011, 8:09am)


4

Saturday, February 12th 2011, 11:51pm

hi jaydee,

just found your analytics plugin in the plugin section.

i'm working with seperated xmls (each pano has its own xml - no scenes). if i understand your documentation correctly i just have to embed the plugin and set it to auto|xml and it will do the rest for me - unlike in the free analytics plugin where each click (eg. to another pano) has to be specified in the panos xml.

i've got one feature request - i would love to track the users "way" through a virtual tour. today we can only see how often one pano was visited but not the "user history" through the tour. that would be great - if technical possible.

regards
christian

5

Sunday, February 13th 2011, 12:11am

Hi Christian!


Yes, in your case you just need to embed plugin in your main xml file, set plugin mode to auto|xml mode and add as many pano subnodes to the plugin as needed (see the examples). You can also track other events if neeeded.

Thanks for the feature request, I'm looking into this feature now.
If it is technically possible, it will be definitely implemented.


Regards,
Alexandr

6

Monday, February 14th 2011, 10:18am

Hi Alexandr,

i bought your plugin yesterday night ;-)

right now i'm trying to get the automatic xml tracking to work - but i don't get it. i've uploaded the examples (xml tracking) to my webspace and the work like a charme - no problem, great, works.

then i tried to put a "start.xml" (only with the ga in it) "in front" of my first pano.xml. made a pano subnote in start.xml but the tracker doesnt seem to work.

my start.xml looks like this

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<krpano version="1.0.8" logkey="true">

	<plugin name="ga"
			url="plugins/analytics.swf"
			mode="auto|xml"
			account="UA-XXXXXXXX"
			debug="true"
			ontrackerready="activatepano(001_aussicht_schlossberg.xml);"
			>
		<pano name="001_aussicht_schlossberg"
			  xmlurl="001_aussicht_schlossberg.xml"
			  pageurl="/001_aussicht_schlossberg"
			  />
		<pano name="aiola"
			  xmlurl="/039_d01_aiola.xml"
			  pageurl="/039_d01_aiola"
			  />
	</plugin>

	<action name="activatepano">
		loadpano(%1);
		wait(blend);
	</action>


the first pano.xml (001_aussicht_schlossberg.xml) looks like this:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<krpano version="1.0.8">

	<include url="gmaps.xml" />
	<include url="gmaps_points.xml" />
	
	<include url="skin/defaultskin.xml" />

	<!-- Progress Bar -->
	<progress showload="bar(left,200,10,1%,-49%,shaded,
                    	0x000000,0x006633,0xAAAAAA)"
	      	showwait="none"/>
	      	
	<view camroll   	="0.000000"
	  	fov       	="90.000000"
	  	fovmin    	="30.000000"
	  	fovmax    	="90.000000"
	  	limitfov  	="true"/>      	

	<view hlookat="160.41" vlookat="0.54" maxpixelzoom="1.0" />
	<display details="22" />

	<preview url="001_aussicht_schlossberg.tiles/preview.jpg" />

	<image type="CUBE" multires="true" tilesize="783" progressive="false">
		<level tiledimagewidth="3132" tiledimageheight="3132">
			<left  url="001_aussicht_schlossberg.tiles/l3_l_%0v_%0h.jpg" />
			<front url="001_aussicht_schlossberg.tiles/l3_f_%0v_%0h.jpg" />
			<right url="001_aussicht_schlossberg.tiles/l3_r_%0v_%0h.jpg" />
			<back  url="001_aussicht_schlossberg.tiles/l3_b_%0v_%0h.jpg" />
			<up	url="001_aussicht_schlossberg.tiles/l3_u_%0v_%0h.jpg" />
			<down  url="001_aussicht_schlossberg.tiles/l3_d_%0v_%0h.jpg" />
		</level>
		<level tiledimagewidth="1566" tiledimageheight="1566">
			<left  url="001_aussicht_schlossberg.tiles/l2_l_%0v_%0h.jpg" />
			<front url="001_aussicht_schlossberg.tiles/l2_f_%0v_%0h.jpg" />
			<right url="001_aussicht_schlossberg.tiles/l2_r_%0v_%0h.jpg" />
			<back  url="001_aussicht_schlossberg.tiles/l2_b_%0v_%0h.jpg" />
			<up	url="001_aussicht_schlossberg.tiles/l2_u_%0v_%0h.jpg" />
			<down  url="001_aussicht_schlossberg.tiles/l2_d_%0v_%0h.jpg" />
		</level>
		<level tiledimagewidth="783" tiledimageheight="783">
			<left  url="001_aussicht_schlossberg.tiles/l1_l_%0v_%0h.jpg" />
			<front url="001_aussicht_schlossberg.tiles/l1_f_%0v_%0h.jpg" />
			<right url="001_aussicht_schlossberg.tiles/l1_r_%0v_%0h.jpg" />
			<back  url="001_aussicht_schlossberg.tiles/l1_b_%0v_%0h.jpg" />
			<up	url="001_aussicht_schlossberg.tiles/l1_u_%0v_%0h.jpg" />
			<down  url="001_aussicht_schlossberg.tiles/l1_d_%0v_%0h.jpg" />
		</level>
		<mobile>
			<left  url="001_aussicht_schlossberg.tiles/mobile_l.jpg" />
			<front url="001_aussicht_schlossberg.tiles/mobile_f.jpg" />
			<right url="001_aussicht_schlossberg.tiles/mobile_r.jpg" />
			<back  url="001_aussicht_schlossberg.tiles/mobile_b.jpg" />
			<up	url="001_aussicht_schlossberg.tiles/mobile_u.jpg" />
			<down  url="001_aussicht_schlossberg.tiles/mobile_d.jpg" />
		</mobile>
		<tablet>
			<left  url="001_aussicht_schlossberg.tiles/tablet_l.jpg" />
			<front url="001_aussicht_schlossberg.tiles/tablet_f.jpg" />
			<right url="001_aussicht_schlossberg.tiles/tablet_r.jpg" />
			<back  url="001_aussicht_schlossberg.tiles/tablet_b.jpg" />
			<up	url="001_aussicht_schlossberg.tiles/tablet_u.jpg" />
			<down  url="001_aussicht_schlossberg.tiles/tablet_d.jpg" />
		</tablet>
	</image>
	
	
	<hotspot name="hs0"
	     	url="buttons/arrow_up.png"
	     	keep="false"
	     	ath="5.6188605406101715" atv="34.66197391661196"
	     	zoom="false" distorted="true" details="8" flying="0"
	     	width="160" height="160"
	     	scale="0.4450381501583795" scale9grid="" scalechildren="false" rotate="0"
	     	rx="-56.087500000000006" ry="0.025000000000005684" rz="11.490982186209516"
	     	edge="center" ox="" oy=""
	     	crop="" ondowncrop="" onovercrop=""
	     	visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true"
 	     	zorder="0"
	     	alpha="1.00" blendmode="normal" effect="" smoothing="true"
	     	refreshrate="auto"
 	     	onloaded=""
	     	onover=""
	     	onhover="showtext(Aiola)"
	     	onout=""
	     	ondown=""
	     	onup=""
	     	onclick="loadpano(039_d01_aiola.xml,null,MERGE,BLEND(1));
			 		  lookat(35.44,0,90);
				 	  plugin[map].activatespot(_039_d01_aiola);
					  plugin[map].pantospot(_039_d01_aiola);"
	     	devices="all"
	     	/>

	<hotspot name="hs1"
	     	url="buttons/arrow_up.png"
	     	keep="false"
	     	ath="34.39001913496934" atv="37.988576271275775"
	     	zoom="false" distorted="true" details="8" flying="0"
	     	width="160" height="160"
	     	scale="0.5196120943586932" scale9grid="" scalechildren="false" rotate="0"
	     	rx="-33.48750000000001" ry="52.57499999999999" rz="64.51678163990131"
	     	edge="center" ox="" oy=""
	     	crop="" ondowncrop="" onovercrop=""
	     	visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true"
 	     	zorder="0"
	     	alpha="1.00" blendmode="normal" effect="" smoothing="true"
	     	refreshrate="auto"
 	     	onloaded=""
	     	onover=""
	     	onhover="showtext(Lift im Berg)"
	     	onout=""
	     	ondown=""
	     	onup=""
	     	onclick="loadpano(101_d01_liftimberg.xml,null,MERGE,BLEND(1));
			 		  lookat(217.24,1.29,90);
				 	  plugin[map].activatespot(_101_d01_liftimberg);
					  plugin[map].pantospot(_101_d01_liftimberg);"
	     	devices="all"
	     	/>	
</krpano>


i thought that should be enough but maybe i missunderstood something about the automatic xml mode.

it only works if i use the the "trackevent" call at the hotspot:

e.g.

Source code

1
2
3
4
5
onclick="loadpano(039_d01_aiola.xml,null,MERGE,BLEND(1));
			 		  lookat(35.44,0,90);
				 	  plugin[map].activatespot(_039_d01_aiola);
					  plugin[map].pantospot(_039_d01_aiola);
					  plugin[ga].trackevent(Buttons, Go to pano, Pano1, 1); activatepano(039_d01_aiola.xml);"


or

Source code

1
2
3
4
5
onclick="loadpano(039_d01_aiola.xml,null,MERGE,BLEND(1));
			 		  lookat(35.44,0,90);
				 	  plugin[map].activatespot(_039_d01_aiola);
					  plugin[map].pantospot(_039_d01_aiola);
					  plugin[ga].trackpageview(/039_d01_aiola); activatepano(039_d01_aiola.xml);"

why istn't it working automatic? i thought naming the different panos in a subnote should be enough for tracking the pano vist?

any help would be great - thanks

regards
christian

This post has been edited 1 times, last edit by "pano_ramic" (Feb 14th 2011, 10:51am)


7

Monday, February 14th 2011, 1:27pm

Hi Christian!

I have reproduced your code, and have no problems with the automatic mode of the plugin. You can download my code through this link.
(Don't forget to replace included version of the plugin with the purchased and protect purchased version with the krpotect tool).
Maybe you have some misprints in your code?
Please, check you code for correct:
- GA account value
- XML URLs of the pano subnodes (in your code you have xmlurl="/039_d01_aiola.xml", do you mean xmlurl="039_d01_aiola.xml"?)

Contact me for further assistance by email, if needed.

8

Friday, February 25th 2011, 6:08am

I purchased this plugin and still missing version numbers or change logs on the 'official' plugin page or in this forum thread.
How do I get future updates?

9

Friday, February 25th 2011, 6:32am

Laie

Nothing has been changed since the plugin release.
Change log will be added to this thread and official plugin page when an updates will be released.
If you have an feature requests, post it here.

regards,
Alexandr

10

Wednesday, March 30th 2011, 6:04am

Update v1.1

Update to plugin have been released. The major changes include:
  • auto|xml and auto|scenes modes are deprecated. New auto mode supports both XML files and scenes simultaneously
  • version attribute added

View changelog and documentation for the details.

All current customers will recieve update for free. My contact e-mail is listed at this page. Use that to request the updated version of the plugin. Don't forget to include your registration info (first name, last name and e-mail) in the body of message.

--
regards,
Alexandr

11

Monday, May 16th 2011, 10:10am

HI jaydee

I want to know if I can get the events click for each scene separatly ?

Many thank's

12

Monday, May 16th 2011, 12:35pm

HI jaydee

I want to know if I can get the events click for each scene separatly ?

Many thank's

Hi!
Of course, you need to pass additional parameter(s) to trackevent method.
For example,

Source code

1
2
plugin[ga].trackevent("Video", "Play", "Scene1");
plugin[ga].trackevent("Video", "Play", "Scene2");


Here is the complete guide to event tracking.

13

Monday, May 16th 2011, 12:41pm

Thanks for your reply jaydee

I hope it's the same for click on openurl actions

14

Monday, May 16th 2011, 12:53pm

Thanks for your reply jaydee

I hope it's the same for click on openurl actions

Do you mean button, that opens external URLs?

15

Monday, May 16th 2011, 12:55pm

Yes button or hotspot open external url

16

Monday, May 16th 2011, 1:01pm

I want to know how much people click on a hotspot witch have a external url

17

Monday, May 16th 2011, 1:02pm

Yes button or hotspot open external url

In that case you need to track event before openning external URL

Source code

1
onclick="plugin[ga].trackevent('UI', 'Open External URL', 'Scene1');openurl(URL_TO_OPEN);"

18

Monday, May 16th 2011, 1:09pm

Thank's jaydee

I think it's exactly what I need for a virtual tour *thumbsup*

I will puchase it this week *w00t*

19

Tuesday, May 17th 2011, 12:16am

Hi jaydee

somes trouble with it

I get only the scene



but nothing for the others trackevents

my code for exit fullscreen
plugin[ga].trackevent(Viewer,Exit Fullscreen);

my code for mute
plugin[ga].trackevent(Viewer,Mute);

my code for any URL
plugin[ga].trackevent(URL, MailClubdesetoiles, Club42);

I try with debug in true and the track was send *confused*

I don't understand *confused*

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

20

Tuesday, May 17th 2011, 12:54am

Are you familiar with analytics for tracking variables? If not check your user defined segment.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour