Tracking what products from Clerk.io consumers actually click on is the cornerstone of our AIs feedback loop and analytics dashboard.
Any template rendered via Clerk.js has click tracking on all products by default.
If you have rendered HTML via server-side API calls you can still use Clerk.js to add click tracking by doing the following:
- For each root element of a product add the attribute
data-clerk-product-idcontaining the products ID.
This will add click tracking to any clickable element in the rendered products.
Updated over 2 years ago