I remember when ANY 3rd party code was considered an unacceptable security risk, but enter ad money, tracking and analytics and 3rd party code quickly became the gold standard.