Do you have an example of the code snippet your trying to deploy?
From the information provided, I would recommend setting up a data element to capture the query parameter. I would then setup a page load rule that uses the "Data Element Value" condition. This will result in a page load rule that checks the data element value at the beginning of each page load. If the condition is met, the rule will fire.