Server-Side GTM - GA4 Measurement Protocol events to Piwik

Hello,

We are currently using server-side GTM with GA4 measurement protocol API to track events that happen in our backend (e.g recurring purchases).

We tried to forward all the Measurement Protocol events to Piwik via sGTM, but for some reason, Piwik doesn’t receive them.

We also tested this for normal browser events, and in that case, it worked.

We are using the latest Piwik Pro templates for sGTM. We just installed them yesterday.

Also, keep in mind that we are using GA4 and GA4 MP clients to pass the event objects to the Piwik Pro tag in sGTM.
So, we don’t use the Piwik Pro client in sGTM as that’s not possible, considering that the events come in sGTM via the Measurement Protocol client.

My question is:
Is Piwik capable of receiving GA4 MP events from sGTM? Do you have any docs/tutorials for that?

Thank you in advance!

Hi @felix_app!

Have you seen this article on how to map the GA4 data stream to the Piwik PRO tag?

Yes, this is actually the guide I followed to implement Piwik Pro via sGTM.

Okay, so there’s few things to check what’s wrong with the setup:

  1. Check the Piwik PRO Tracker Debugger for Broken Events (event type filter).
  2. Check the sGTM debugger for outgoing requests. If possible paste an example here or in a private message.
  3. Send some screenshots of the sGTM setup and how the mapping is configured.

My initial thought was that because your sGTM template is capable of grabbing the event properties automatically from GA4 events and passing them to Piwik, it should be able to do the same for GA4 measurement protocol events.

I am talking about what I found in this article: GA4 to Piwik PRO Using Server-side Google Tag Manager | Simo Ahava's blog

I understand now that this is not the case for GA4 measurement protocol events? And I need to map all the fields manually as per this doc?

Yes, as of now we provide mapping support only for the regular GA4 client, so MP would have to be done manually.