Home > widget-integration > RecommendationWidgetController > trackProductLinkClick
RecommendationWidgetController.trackProductLinkClick() method
Tracks product link clicks and handles navigation to product detail page. Stores the selected variant ID in session storage for consistency with old implementation.
Signature:
protected trackProductLinkClick(link: HTMLAnchorElement, model: RecommendationModel): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
link |
HTMLAnchorElement |
The clicked link element |
|
model |
The recommendation model for context |
Returns:
void