Banner views and clicks

Hi, everybody. Guys, urgent question!!! does anyone know how to write a JS code that will send data to the bubble about banner views and clicks? Or how to implement it without this JS code. The user on the platform (created on bubble) creates a banner, the platform responds with a code that needs to be inserted into the user’s site, and this platform will receive Analytics on views and clicks of this banner.