First of al: many thanks for your answer.
I have to say that I am really a novice about this kind of arguments.
So the things that I have done are :
1) in my tour.html file I've added after the <head> section:
|
Quellcode
|
1
2
3
4
5
6
7
8
9
|
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=xxxxxxxxxx "></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){window.dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'xxxxxxxxxx');
</script>
|
where "xxxxxx" is the Google Analytics ID code
2) in my tour.xml file I've created an action associated to my hotspot with the following code:
|
Quellcode
|
1
2
3
4
5
6
7
8
|
<action name="pippo_clicked">
js gtag('event', 'pippo', {
'event_category': 'schede',
'event_label': 'apertura schede',
'value': '000'
});
</action>
|
So I really wish to know if I have made some mistake or have to add something other.
Sorry for my very novice question.