AMP is using Magento’s Google Analytics functionality. So, if you are using System > Configuration > Sales > Google API > Google Analytics on your desktop site, our AMP module will add the script automatically.
Otherwise, you need to navigate to Magento Google Analytics configuration to enable it and fill your “Account Number”:
“Type” and “Enable IP anonymization” options are not used by AMP.