How to send details to GA without using data layer

Alok_biswas
Level 2

How to send details to GA without using data layer

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.

 

GA.PNG

5 REPLIES 5
SanfordWhiteman
Level 10 - Community Moderator

Re: How to send details to GA without using data layer

The answer is kinda right in your question: events! https://support.google.com/analytics/answer/9322688?hl=en

Alok_biswas
Level 2

Re: How to send details to GA without using data layer

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?

SanfordWhiteman
Level 10 - Community Moderator

Re: How to send details to GA without using data layer

GA Events are not the same as DataLayer events.

Alok_biswas
Level 2

Re: How to send details to GA without using data layer

Hi Sanford, so what do we need to select instead of the data layer in GA. Below is the screenshot -

 

Alok_biswas_0-1668497906249.png

 

SanfordWhiteman
Level 10 - Community Moderator

Re: How to send details to GA without using data layer

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):

SanfordWhiteman_0-1668546568741.png