The macros referring to pages should provide the page ID as data-projectdoc-id attribute. This includes the Tour Macro.