Workers activate by ?ref=

Hello guys! Will be possible to create a worker trigger that will load a chat script in a landing page only if is coming from a pre determined reference? something like ?ref=producthunt and so the Chat plugin will load?

Thanks a lot
Mark