Question:
I am working on a new project for a WIX app, i need the app to run on every page load to detect the page and have functionality according to the loaded page. for example i want to detect if the current page has a specific GET param in the URL. i have tried creating a mastePage.js in the public section of the app files but it seems that this does not run at all and i get an error notice using $w.onReady on that page. can anyone assist me and help me understand how can i have a main JS file that loads on every page of the site for the wix application?
Product:
WIX Blocks Editor