I have a custom web template used to provision site collections that activates features with onet.xml and is deployed as a farm solution. I've tried both feature receivers and event receivers (on WebProvisioned from the solution proposed here: Is feature activation code allowed in Web Template Project?) and neither are firing when a new site collection (or web) is provisioned using the web template or when the feature is activated.
Is there something I'm missing? Is there anyways to fire off custom code after a site collection is provisioned using a web template? Thanks.