Added flag to capture analytics once per element