Companies like Amazon recommend other products based on what you are buying, looking at, or others have bought. What is this strategy called in marketing?

cross selling- is offering other products like you said
up selling- is offering more of what you want (instead of that 10 pack, wouldnt you want this 20 pack)