only include segment javascript if app has a segment API key