A silica–titania xerogel obtained by cetylpyridinium chloride (CPC) assisted synthesis has been used as a new sensor material for solid phase spectrophotometric and visual test determination of propyl gallate.