Hi, I am using google analytics, it sets up a function in the common layout -> head, then I need to set up another function which uses the first one, then I need to invoke the last function on button click.
Even though the function is defined in the head, when I try to call it from a script tag set up with an event listener, it doesn't have access to what's in the head.
This must be very basic, I highly appreciate any advice ๐๐ป