# WIX App - master page JS - file to detect every page load

**URL:** <https://forum.wixstudio.com/t/wix-app-master-page-js-file-to-detect-every-page-load/61981>\
**Category:** Ask the community\
**Tags:** wix-blocks, code, question, wix-apps-market\
**Created:** [August 17, 2024, 8:31am UTC](https://forum.wixstudio.com/t/wix-app-master-page-js-file-to-detect-every-page-load/61981 "2024-08-17T08:31:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagee\_Lupin](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sagee_lupin/32/90630_2.png) [@Sagee\_Lupin](https://forum.wixstudio.com/u/Sagee_Lupin)\
**Post date:** [August 17, 2024, 8:31am UTC](https://forum.wixstudio.com/t/wix-app-master-page-js-file-to-detect-every-page-load/61981/1 "2024-08-17T08:31:25Z")

</div>

**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
