Update URL Fragment on Tour Node change

Q&A about the latest versions
Post Reply
LProbert
Posts: 92
Joined: Thu May 21, 2020 11:53 am

I want to use the Custom Node ID to create URL fragments, and this works one way, but I also need the URL to update when a node is selected or I move to another tour node through any other method.

I need the URL to update so I can assign Google Tag Manager triggers to the fragments.

Any ideas?
LProbert
Posts: 92
Joined: Thu May 21, 2020 11:53 am

This works if you set it as an action on the node skin:

Code: Select all

javascript:
let nodeTitle=pano.getNodeTitle();
window.location.hash = nodeTitle;
User avatar
Hopki
Gnome
Posts: 13025
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi LProbert,
I need to check my understanding of what it is you want.
At the moment you just see the tour URL, all not changes do not get translated to the URL,
If so please see the attached skin.
This updated the address bar and shows different fragments.
Regards,
Attachments
ShowURL.ggsk
(807 Bytes) Downloaded 99 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply