Guitar FX don't record on Audacity

Using the following set up. Fender Electric guitar - Boss Effects Pedal(s) - USB - Laptop running Audacity. Problem: I can capture a guitar track, but it’s totally dry; the effects pedals are not doing their thing at all. Yet the work perfectly when connected to an amp. Any suggestions?

Record the amp with a microphone.