Adobe provides multiple options to integrate analytics with AEM which is
Classic version : Legacy version where manual scripting is involved to track the visitors.
Standard version : which is recommend way where integration is done through Adobe launch /DTM. Adobe recommend way is to use the Adobe launch to do an integration with Analytics and AEM.Since an integration with DTM support will be taken out in coming days.
Below documents has detail guide for integration. Please have look.