Hide button based on url parameter

Hey,

I would like to know how to hide a button based on URL parameter.

Let’s say my domain is www.google.com
I’ve a button with a class named pizza

What I want to do is to hide the pizza button, if url contains ?utm=7839

So for example, if the url is Google.

I’ve found this tutorial Dynamically change the content of a landing page based on the URL parameter, but it’s not exactly what I want.

I’ve tested this custom code, but It’s not working:

If someone has an idea, feel free to let me know :slight_smile:

Have a great day,
Olive