As the name suggests, the content convention sets the name of the Layout Component depending on the content inside.
The content convention is best applied during the page building on the site. Or if you have a site with very similar pages such as an e-commerce site.
Advantages:
- Clear analytics reports where you see exactly where an interaction happened.
- Useful aggregation. You can aggregate a component with the same use case across the site.
- The content convention makes it easier to onboard new analysts.
Drawbacks:
- Harder to set up. Depends on how much you reuse your components.
- Requires more maintenance. Every new page created has to tag its components.
- Because every new page has to tag separately, you need to create a process for tagging new components.
The content naming convention gives you the best analytics reports.
Depending on your site it may mean a lot of maintenance.
– Samy
Component Analytics daily
Every weekday, I publish about Component Analytics and analytics collection strategies.
