Sie sind nicht angemeldet.

1

Samstag, 15. August 2020, 21:54

Ajax call for tracking clicks ?

Hi,

I would like to track each click on hotspots throught an ajax call to an API.
How can I do that ?

Thanks for your help,

2

Dienstag, 1. September 2020, 16:22

Hello,

Did someone already had this thing to do ? Any help how to do it ?

3

Mittwoch, 2. September 2020, 18:42

We did a similar thing for google statistics - tracking all user actions in the tour.
The general idea is to add an action onclick - jscall.
You can see here how this is done https://www.vrtoursoft.com/editors/google.html.
vrTourSoft - Simple is better than Hard. Standalone WYSIWYG editor and development environment for krpano
https://www.vrtoursoft.com/

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

4

Donnerstag, 3. September 2020, 13:15

Hi,

you can do a post/request 'thingy' in a javascript type action with jquery for example.
That works fine!

Tuur *thumbsup*

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

5

Donnerstag, 3. September 2020, 21:50

Just use google analytics events tracking :


ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);

so from krpano
js(ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);)