The cohort view is part of the Odoo enterprise edition so you can not use it with only the community edition. If you are using the enterprise edition, you need to add web_cohort in the manifest file of your module. For our example, we will create a view to see the cohort analysis for tasks.