Alternatively
Instead of creating and only display an optin form on each category posts, you can also create a form that allows subscribers select which post category to subscribe to.
To do this, instead of choosing “automatic” as segmentation method as shown above, choose manual and select the groups to make available for subscribers to select.