Anderson has been acting since she was five years old. She played Hazel in Disney Channel's A. N. T. Farm in 2011. She has also appeared in one episode of Raising Hope, as a little girl who gets a needle stuck in her hand. She made further appearances on Disney shows in 2013, being in Dog with a Blog as Darcy Stewart and Liv and Maddie as Jenny Peeke. In 2014, she played Mitzy in Nickelodeon's A Fairly Odd Summer. Anderson has portrayed Piper Hart in the Nickelodeon television series Henry Danger since 2014, and appeared in the film Unfinished Business. She has played Rachel Rawlings in The Boss, and Vicky in Mother's Day, both films from 2016, and Jeanette Walls at age 11 opposite Brie Larson in the 2017 film The Glass Castle.