Retailers have long struggled to determine whether online ads fuel sales in their bricks-and-mortar stores. Now, Google Inc. is testing a way to solve that puzzle.

A pilot program begun by the Internet company is helping about six advertisers match the anonymous tracking cookies on users' computers to in-store sales information collected by data providers like Acxiom Corp. and DataLogix Holdings Inc., according to people familiar with the test.

...