only attactch event tracking if google analytics is active (js only)