Two snippet formats
Enter the GA4 event name, then supply any parameter names and values that should accompany it. The gtag.js result expresses those entries as an event command. The dataLayer result expresses the same event information as a pushable object. This lets a tracking specification retain consistent names and parameters while offering code for either supported deployment style.