Need help with Javascript

I’m trying to implement this code in my site which will tell me if someone adds something to the cart. I understand I need to substitute the info on the right with variable tags… but for information like “$value” (which I assume is cart $ total) and “addeditemquantity”, what do I put there so it pulls the right info?

Here’s the full example code I’m referring to:


Here is my site Read-Only: https://preview.webflow.com/preview/turnt-watches?utm_medium=preview_link&utm_source=designer&utm_content=turnt-watches&preview=2d8cd53e66cd6721109fb8b19d90a949&mode=preview