Add analytics script and errorception scripts only if the IDs are there