Server-Side Tracking with Matomo Tag Manager and Stape Without Web GTM

Hi everyone,

I’m looking for some advice on a tracking setup.

Client’s Current Setup and Requirements

My client currently uses Matomo Tag Manager on their website and doesn’t want to use Google Tag Manager (GTM) in any form on the website.

They want to implement server-side conversion tracking for form submissions to Google Ads and Microsoft Ads, using Stape as the server-side tracking solution.

As far as I understand, the typical setup involves using a web GTM container to collect form submission events and relevant data, then sending that data to a server-side GTM container for processing and forwarding it to the advertising platforms.

However, the client doesn’t want to use web GTM at all, so I’m trying to understand what alternative approaches are available.

My Questions

1. Can Matomo Tag Manager send data to server-side GTM?

Is there a way to use Matomo Tag Manager to capture form submissions and send the events and relevant form data directly to a server-side GTM container hosted on Stape, without installing or using web GTM?

If this is possible, what would the implementation look like? Would it require custom JavaScript, a custom HTTP request, or another approach?

2. What challenges could I face with click IDs and attribution?

For Google Ads and Microsoft Ads conversion tracking, we may need to capture and preserve identifiers such as gclid, gbraid, wbraid, and msclkid.

Without web GTM, how should these identifiers be captured, stored, and passed along with the lead data? Are there any additional challenges with attribution, cookies, consent management, or matching offline conversions to the original ad clicks?

3. What are the available implementation options?

I know Stape provides a Matomo tag for server-side GTM, which can forward data from the server-side container to Matomo. However, my understanding is that this doesn’t automatically solve the challenge of collecting website events and sending them to the server-side container without web GTM.

4. Can Matomo Tag Manager use a custom loader hosted on Stape?

GTM can be configured to load its container through a custom first-party domain using Stape’s custom loader functionality.

Is there a similar way to modify or serve the Matomo Tag Manager container code through Stape, or would that require a completely different implementation?

5. Are there any relevant documentation or implementation examples?

If you’ve implemented something similar, I’d appreciate any documentation, guides, or real-world examples that explain how to connect Matomo Tag Manager with server-side GTM and send conversion data to advertising platforms without using web GTM.

Thanks in advance for your help!

In theory, this can be configured in Matomo tag manager using custom scripts and by sending data to the server container, as it is essentially an HTTP server that accepts requests in a specific format from any source. We do not have extensive experience with Matomo and have not set up such configurations, so we are unable to offer much assistance with the online implementation of this setup (MTM → Server GTM).
So you will need to conduct your own research into the capabilities of MTM.

However, it is all easier to configure using webhooks from your CRM or the CMS platform’s backend to the server, from where you will send everything to Google Ads or other platforms.
To store the click ID, use hidden fields in the forms, save them in the contacts within your CRM platform, and send them via a custom webhook payload along with other user data and trigger server conversion tags.

The Matomo server-side tag will not, in fact, resolve the issues you’ve raised here.

I cannot answer your question regarding the custom loader, as we have not attempted to implement this, since we do not work with MTM.
Consequently, we do not have any documentation on this matter.

Thanks a lot for the detailed explanation! I really appreciate you taking the time to clarify this.

I’ll explore whether we can send the conversion data directly to the server container.

I’ll also research the Matomo Tag Manager approach further to see whether it’s feasible without web GTM.

Thanks again for your help! :blush: