@Rahi_1994 both @curzey and I provided the only two ways to do it currently.
both require users to be signed-in before checkout. One adds it to the cart/cart-items, one has it stored on the session.
Other suggestions like LTV here = What is the roadmap for Custom/Web Pixels