Now it is working after deactivation of autoptimize and wetotal cache plugin.
Okay thanks you I hope you soon implement in this plugin. Do you suggest any alternative to measure analytics of amp because I have Google analytics GA4 version? Is there any way to downgrade to GA3?