A code snippet using the GA4 datalayer for each event. Must be editable/changed once a user updates.