Do we have any alternative for dataLayer.push? we don't use data layer in our pages. So, we need any alternate solution to push event and formId to GA.
The answer is kinda right in your question: events! https://support.google.com/analytics/answer/9322688?hl=en
Hi Sanford,
Thanks for your feedback. But the question is I want an alternative datalayer.push. What other function I can use instead of using this?
GA Events are not the same as DataLayer events.
Hi Sanford, so what do we need to select instead of the data layer in GA. Below is the screenshot -
You don’t need to do anything in advance (on the server side) in order to send GA events. Just send them and report on them. For example, here is the Behavior tab in UA (similar exists for GA4):