iFaisal what version of flarum are you using?
In the following:
Your requirements could not be resolved to an installable set of packages.
- Installation request for flagrow/flarum-ext-analytics 0.4.0 -> satisfiable by flagrow/flarum-ext-analytics[0.4.0].
# PROBLEM DOWN BELOW
- flagrow/flarum-ext-analytics 0.4.0 requires flarum/core 0.1.0-beta.5 -> no matching package found.
# PROBLEM UP ABOVE
One would imagine you are not running beta5 of Flarum.