Site icon Hip-Hop Website Design and Development

How to Update / Change URL when Popup Modal Loads?

I’m looking for a way to have a popup modal with a form, and whent he popup loads, the URL changes.

For example, if a person is viewing web.com/about and the popup loads, then it will change the URL to web.com/about?utm_form=popup

Is this possible?

Maybe it will add this utm to the URL when the popup is open, and removes it when closed? A plugin would be helpful.

Thanks for any thoughts.