E-commerce tracking with multiple category



I want to implement Tracking Add to Cart but i have a probleme because my products can have multiple category. So, i know the current category browsed by the user when he clicks on “Add product” but for others products in the cart i dont’ have this informations.

How could i do that ?