Binding the client side events via Launch and server side hits via Edge network
Note : This follows legacy Adobe Analytics implementation.
Issue : When order is completed on the website, there is an order element tag and purchase event which is being sent to the Adobe servers.
1. Order element Tag goes from the frontend or code side, going as smetrics call and setting up the eventx with eVars.
2. Purchase event is set in Adobe Launch via Rules , the standard way.
Order element Tag generates different visit/visitorID when debugged in the data feeds - which should not be the case. This should get in sync with the same session as purchase event is in.
Following this document:
https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/config-vars/visitorid
Solution says, if we can somehow bind these two events via IDs considering the ECID here to stitch the data :
1) Capture ECID during checkout (this should be on a browser cookie) and send to the server when placing order
2) Send the order purchase event via edge network with both a timestamp and the ECID.
3)In Data streams configuration we should add “ECID” as identity namespace.

Any thoughts on the above approach, if that is going to give the desired output and binding this with “ECID” namespace will be an efficient approach.