SAN FRANCISCO — Apple Inc. will face a proposed class action accusing the company of letting advertisers track users’ activity without their permission, a federal judge ordered Tuesday.

Owners of Apple devices, including the iPhone, iPad and iPod Touch, may pursue claims under two California consumer protection laws, U.S. District Judge Lucy Koh said.