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!).
Is it possible to display product recommendations in pages and posts using shortcodes or blocks? ↑ Back to top
Yes! In addition to deploying Engines in the standard Locations available under WooCommerce > Recommendations > Locations, you can use the free Product Recommendations – Custom Locations feature plugin to create Custom Locations for deploying Engines. Each Custom Location has its own, unique shortcode that you can place in any page or post of your site.
Why don’t product recommendations load on the first visit to the page? ↑ Back to top
Τo protect the server from the overhead of costly database operations (queries) every time a customer is viewing a page with recommendations, the extension generates the results on the first page-load, and then refreshes those results every day.
More specifically, the first user to view a block of recommendations every 24 hours triggers their (re)generation. As a result, this first user will not see recommendations, but all the users who visit the same page afterwards will be able to see recommendations normally. Moreover, the page would load faster for these people as the recommendations would be cached.
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.