How can I display data passed into dataLayer
in Google Analytics using GTM?
Let me share with you what I was able to do so far.
1 There is a part in my client side JavaScript code from where I am sending a data. I am doing it in this way: dataLayer.push({startedPlaying: true});
.
2 Now in GTM I am getting the data in a Message format:
Now I would like to send the data directly to Google Analytics. And in Google Analytics I would like to keep track of how many times such a message was sent from the client (in my example it means how many times a song play button was clicked).
I understand that the question may be a little bit too broad, but if it is so, then answer it is broadly as well, so that I got my next learning directions in the matter. Thank you.