old_contents: import os
  
  
  GOOGLE_TAG_MANAGER_ID = os.environ.get("GOOGLE_TAG_MANAGER_ID", None)
  #use server-vars.yml instead of `env`
  
  #include intercom stuff too
new_contents: import os
  import json
  
  from path import path
  
  SERVICE_VARIANT = os.environ.get('SERVICE_VARIANT', None)
  CONFIG_ROOT = path('/edx/app/edxapp/') #don't hardcode this in the future
  CONFIG_PREFIX = SERVICE_VARIANT + "." if SERVICE_VARIANT else ""
  with open(CONFIG_ROOT / CONFIG_PREFIX + 'env.json') as env_file:
      ENV_TOKENS = json.load(env_file)
  
  APPSEMBLER_FEATURES = ENV_TOKENS.get('APPSEMBLER_FEATURES',None)
  
  # search APPSEMBLER_FEATURES first, env variables second, fallback to None
  GOOGLE_TAG_MANAGER_ID = APPSEMBLER_FEATURES.get('GOOGLE_TAG_MANAGER_ID','')
  
  INTERCOM_APP_ID = APPSEMBLER_FEATURES.get('INTERCOM_APP_ID', os.environ.get("INTERCOM_APP_ID", ""))
  INTERCOM_API_KEY = APPSEMBLER_FEATURES.get('INTERCOM_API_KEY', os.environ.get("INTERCOM_API_KEY", ""))
  INTERCOM_USER_EMAIL = APPSEMBLER_FEATURES.get('INTERCOM_USER_EMAIL', os.environ.get("INTERCOM_USER_EMAIL", ""))
  
subject: copy changes over to cms/envs/appsembler.py