Transition from sGTM to CAPIG on stape

We are currently using the GTM implementation on our website for the Facebook Conversions API (CAPI). The data layer sends data from our website through GTM to stape.io servers, enabling deduplication. However, if GTM is blocked by the browser, the process is disrupted.

Now, we have a few questions regarding transitioning to the CAPI-G product and potentially eliminating GTM (for the FB side of things):

  1. How can we connect and send data/events from our website, such as addToCart, viewContent, initiateCheckout, addPaymentInfo, and purchase, without GTM?

  2. Does the CAPI-G integration handle this automatically by connecting our pixel, or is there something else we need to do?

  3. Does the CAPIG somehow add the pixel & its events to our site and therefore introduce the EventID for deduplication? or do we need to add this still?

We have searched the documentation but couldn’t find clear answers to these questions. Nonetheless, we proceeded with setting up CAPI-G and made the following changes:

  1. Turned off GTM server events.

  2. Optimized data routing using a subdomain. So far, it seems to be working well, but we’re waiting for event delays in the Event Manager to confirm its functionality.

  3. We noticed that mydomain/events requests are being fired.

Now, we have a couple of additional questions:

Question 1: Should the requests to …/…/stape.io/g/collect still be fired if the GTM server is switched off?

Question 2: If CAPI-G is active and we only need FB CAPI as the target, is the stape.io server still required?

On the Overview screen, we have some queries:

(a) How long does it usually take for events to appear in the Event Activity?
(b) Does the appearance of events in the Event Activity indicate that they have been received by the Event Manager?
(c) How long does the data stay on the Event Activity screen? We have noticed that sometimes it takes a while for events to appear, and they disappear after 10-15 minutes or some refreshes.
(d) Occasionally, upon page refresh, the last event shown is from 24 hours ago. Why does this happen?

Lastly, we have observed that the addToCart, viewContent, and initiateCheckout events are being sent in the Network browser tabs but not always appearing in the Event Activity screen. We would appreciate any insights on why this might be the case.

  1. How can we connect and send data/events from our website, such as addToCart, viewContent, initiateCheckout, addPaymentInfo, and purchase, without GTM?

a) inline code
b) you don’t need to get rid of web GTM to use CAPI Gateway, it’s the server GTM that becomes redundant

  1. Does the CAPI-G integration handle this automatically by connecting our pixel, or is there something else we need to do?

Handle what automatically? Once you procure capiG - there is a setup process which connects it to your pixel Meta Conversions API Gateway - Stape

  1. Does the CAPIG somehow add the pixel & its events to our site and therefore introduce the EventID for deduplication? or do we need to add this still?

CAPIG will use whatever you send to Pixel through normal means (client-side Pixel)

Question 1: Should the requests to …/…/stape.io/g/collect still be fired if the GTM server is switched off?

If you only fire facebook off of those, then yes, they would be redundant

Question 2: If CAPI-G is active and we only need FB CAPI as the target, is the stape.io server still required?

if you mean Stape sGTM server (given you only use it for FB) then no, you don’t need it anymore.

Thanks Dan! I’ve set capiG up and it data seems to be flowing nicely now.

  1. You’ve answered this. I was thinking of retiring GTM for the pixel stuff as it is a point of failure - if it gets block.
  2. Automatically handle the events being set up and fired off to CAPI.
  3. Ok that makes sense.
    So am I understanding correctly that:
    a) if the pixel fails/is blocked by browser for any reason - CAPIG doesn’t get its data/events?
    b) if so, is there a way for us to have a backup feeding data in CAPIG? i.e. from inline event JS calls

Ok great - so Stape sGTM server won’t be needed for me. Super thank you!

Would you say sgtm for web and capig for server side have been better performance for you ?