fix showing events code if gtm is not set