Hello Rudderstack team, Context: We are pushing a ...
# support
i
Hello Rudderstack team, Context: We are pushing a conversion event from Rudderstack to GA4. Issue: Those events are "isolated" from other events which are pushed by the frontend through GTM and we are not able to retrieve the acquisition channel for example Solution: Is there a way to stich together all of the events ? using
user_id
or
client_id
? If yes, how could we realize the setup ? Many thanks for your help
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Tanguy, yes it is possible to stitch these events together. You need to pass the client_id and the session_id to your backend and pass those information along with the event. Checkout this doc for more context
Note:- You have to pass the clientId as an externalId as shown here
And your sessionId under `context > sessionId`⁣
i
Many thanks for your answer @shy-kite-21035. Where should we actually push the
clientId
? (using the transformation module) Is the
sessionId
mandatory ?
m
You must send both the clientId and sessionId in your conversion event. Yes both are mandatory. You do not need a user transformation for this.
s
Sample Event:
Copy code
rudderanalytics.track('<Your_Event_Name>',   event_properties_object, {
    externalId: [{
        type: "ga4ClientId",
        id: <your_client_id>
    }], context: {
        sessionId: <your_session_id>
    }
});
So basically Google does the mapping based on the client_id and session_id