AMP currently supports a large number of analytics vendors.
Analytics must first be configured in the site settings and can be completed/overridden in page settings.
Setting up your analytics
Tap the settings menu at site or page level
Configure the "Analytics" tab with your vendor type and the appropriate json settings.
Example for GA
Configuration details for each vendor can be found here.