Fixed error in safari when data doesn't exist
CHange analytics to product and  load when not local