Basic Functionality ↑ Back to top
Product recommendations on my site are not rendered at all, or are rendered incorrectly. Moreover, recommendation views and clicks do not seem to be tracked accurately. ↑ Back to top
If your server is configured to serve cached content/pages, certain recommendation engines deployed in catalog/product pages may:
- fail to display dynamic, personalized, or conditional content; or even
- not be rendered at all.
To get these recommendations to display properly for visitors without an active session, you can use an alternative method for rendering recommendations that will bypass your server’s page cache on these pages:
- Go to WooCommerce > Settings > Recommendations.
- Locate the Deployments rendering > Use AJAX option and enable it.
Note that enabling this option may introduce a noticeable delay between the time that a page has fully loaded and the time that recommendations become visible to visitors without an active session. This delay will depend on the speed of your server, and the quality of your each visitor’s network connection. If this is an issue, the next option is to completely disable the page caching features enabled on your site/server (not recommended!).
Event Tracking and Reporting ↑ Back to top
Is there a way to disable event tracking and reporting for Product Recommendations? Are there any benefits from doing so? ↑ Back to top
To generate Recommendation Reports, the plugin relies on tracking 3 types of events, which are logged in dedicated database tables:
- Unique Views
- Unique Clicks
Event tracking utilizes more resources on your server, and is not recommended for very high traffic stores. If needed, event tracking can be disabled with the following snippet, which prevents event-related cookies from being written:
add_filter( 'woocommerce_prl_tracking_enabled', '__return_false' );
If you are running a very high traffic store, please consider rolling out a custom Analytics implementation to track the performance of your recommendations.