Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Shanti

Fortgeschrittener

  • »Shanti« ist der Autor dieses Themas

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

1

Mittwoch, 13. Mai 2009, 19:55

Google Analytics plugin!

Here its a very basic/simple google analytics plugin, everything is explained in the readmeanalytics.txt included in the zip file

unfortunately, the source is around 350kb (for some strange reason) so I cannot upload it to the forum, if you need it, let me know I will upload it to another place

Enjoy *cool*

EDIT (02/02/2011) : Source Code uploaded to fileserve.

File name: analytics4krpano.zip File size: 328.90 KB
»Shanti« hat folgende Datei angehängt:

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »Shanti« (2. Februar 2011, 19:03)


2

Mittwoch, 13. Mai 2009, 20:22

Great !

I'll give it a try.

Well, I'm interested in the source. I'd like to implement a parsing function to automatically set the tracker in regards of the image loaded :-)
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Shanti

Fortgeschrittener

  • »Shanti« ist der Autor dieses Themas

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

3

Mittwoch, 13. Mai 2009, 20:23

I don't understand, isn't that the idea of the Prefix?

4

Mittwoch, 13. Mai 2009, 20:23

BTW, why is it so heavy ?

Because of the analytics tracker class ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

6

Mittwoch, 13. Mai 2009, 20:33

ok :-/

For the prefix, you need to put "/pano/" or just "pano" if you want to have /pano/ in analytics ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

7

Mittwoch, 13. Mai 2009, 20:37

I don't understand, isn't that the idea of the Prefix?


No it's completely different : the prefix is here to filter in analytics.

Parse the <image> inside the xml and track analytics on every change will avoid to set the tracker for every loadpano action. With this function, the plugin will be totally independent.
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

8

Mittwoch, 13. Mai 2009, 20:51

It doesn't seem to track the first pano loaded .. even with

Quellcode

1
wait(load);


:-(
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Shanti

Fortgeschrittener

  • »Shanti« ist der Autor dieses Themas

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

9

Mittwoch, 13. Mai 2009, 20:56

you need to put /pano/

http://rapidshare.com/files/232586059/analytics4krpano.zip

here is the source ;-)

if you make big changes please share it with the forum *smile*

10

Mittwoch, 13. Mai 2009, 21:05

Of course ! :-)

But as I'm going to holidays tomorrow evening, this may be not even 10 days ! ;-)
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Shanti

Fortgeschrittener

  • »Shanti« ist der Autor dieses Themas

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

11

Mittwoch, 13. Mai 2009, 23:54

It doesn't seem to track the first pano loaded .. even with

Quellcode

1
wait(load);


:-(


Klaus, is there some event we can check to make sure a plugin is completely loaded before we call functions from it?

something like wait(pluginloaded[plugin]) ?

12

Donnerstag, 14. Mai 2009, 10:02

I try this but it doesn't change anything :

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (stage)
{
	// run standalone
	// no automatic scaling
	stage.scaleMode = StageScaleMode.NO_SCALE;
	// align on top left corner
	stage.align     = StageAlign.TOP_LEFT;
	startup_plugin(null);
}
else
{
	// run as plugin in krpano
	this.addEventListener(Event.ADDED_TO_STAGE, startup_plugin);
}	
	
function startup_plugin(event:Event):void
{
	krpano.set("events.trackthis", TrackThisPano);
}
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

13

Donnerstag, 14. Mai 2009, 10:05

Also, Klaus, is there a event when a new pano is loaded (or when <image ... > change) ?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Shanti

Fortgeschrittener

  • »Shanti« ist der Autor dieses Themas

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

14

Donnerstag, 14. Mai 2009, 19:21

I try this but it doesn't change anything :

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (stage)
{
	// run standalone
	// no automatic scaling
	stage.scaleMode = StageScaleMode.NO_SCALE;
	// align on top left corner
	stage.align     = StageAlign.TOP_LEFT;
	startup_plugin(null);
}
else
{
	// run as plugin in krpano
	this.addEventListener(Event.ADDED_TO_STAGE, startup_plugin);
}	
	
function startup_plugin(event:Event):void
{
	krpano.set("events.trackthis", TrackThisPano);
}


thats becasue that code only checks if the plugin is running inside krpano or not.

I found the "onloaded" event for the plugins.... so maybe changing the onload from <krpano> to the onloaded from the plugin to load the first pano would probably work.

will have to check it later as I have little time right now *sad*

bulp

Fortgeschrittener

Beiträge: 389

Wohnort: Malaysia

  • Nachricht senden

15

Freitag, 15. Mai 2009, 05:17

thank you Shanti... will try this later,...

cheers

Shanti

Fortgeschrittener

  • »Shanti« ist der Autor dieses Themas

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

16

Sonntag, 24. Mai 2009, 00:00

anyone using this plugin?

Just wante to ask to see if I should update it, or just leave it as it is :)

I just found out that the similar plugin for FPP is 10 euros! which I think its a steal... since this was a 5 minute code and it does the same thing...

anyways, just wanted to know I should update it more.


Shanti

Graydon

Profi

Beiträge: 614

Wohnort: Texas

Beruf: Industrial gas turbine services.

  • Nachricht senden

17

Sonntag, 24. Mai 2009, 04:25

It's a long tail thing... people still just trying to make things look pretty... tracking info will be needed later... *thumbup*

Shanti

Fortgeschrittener

  • »Shanti« ist der Autor dieses Themas

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

18

Sonntag, 24. Mai 2009, 04:42

Graydon; I think you are right, I will wait more :)

Zephyr

Profi

Beiträge: 991

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

19

Sonntag, 24. Mai 2009, 21:06

Yeah, the other day I made something like this. Only I had some trouble tracing some stuff. Because I want to trace stuff like if fullscreen is pressed, or if certain navigation elements are used and which people prefer. Those are events. But I alsoo want to trace which panorama is visited the most, and for how long etc. And thats more a pageview. And I don't know how to distiguish those things from eachother. I ended putting certain different "folder" extensions infront of it. /events/fullscreen pressed /pano/location1.xml

How would you solve this?
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

Shanti

Fortgeschrittener

  • »Shanti« ist der Autor dieses Themas

Beiträge: 301

Wohnort: Puerto Vallarta

Beruf: Web Developer

  • Nachricht senden

20

Sonntag, 24. Mai 2009, 22:07

zephyr, thats a very good question... and I don't really know the answer, your solution seems to work for what you need, but what about goals? in GA you can define goals, but you would have to create one for each pano I guess :(

Ähnliche Themen