Magento 2 Recommendations Script
If you are using Magento 2, the recommendations script for require JS is different. You need to replace the first line in the default script found in the recommendations section with the following:
Default script
New script line
<script>
var dfUrl = 'https://cdn.doofinder.com/recommendations/js/doofinderRecommendation.min.js';
(function(c,o,k,e){var r,t,i=setInterval(function(){t+=c;r=typeof(require)==='function';
if(t>=o||r)clearInterval(i);if(r)require([k],e)},c)})(100, 10000, dfUrl);
</script>
Final script
The final script should look like this:
<script>
var dfUrl = 'https://cdn.doofinder.com/recommendations/js/doofinderRecommendation.min.js';
(function(c,o,k,e){var r,t,i=setInterval(function(){t+=c;r=typeof(require)==='function';
if(t>=o||r)clearInterval(i);if(r)require([k],e)},c)})(100, 10000, dfUrl);
</script>
<df-recommendations
hashid="5bdf17409acaa64fd36fc4fcf7c25820"
total-products="10">
</df-recommendations>
Please note that in order to work properly the recommendations must also be activated in your Doofinder Admin .