Overthinking the problem like a NASA engineer.Save the click event in a database, connect site2 to that database an either check automatically every X seconds or onload if the click has been submitted.
Overthinking the problem like a NASA engineer.
It would be simpler to use client side Javacsript and cookies.
What about cross-site scripting restrictions in modern browsers? What if site one is not under your control, only loaded that gif, e.g. as advertising banner?Overthinking the problem like a NASA engineer.
It would be simpler to use client side Javacsript and cookies.