diff --git a/template/www.yohobuy.com/partials/index/home-analysis.phtml b/template/www.yohobuy.com/partials/index/home-analysis.phtml index 1b58be9..70419b0 100644 --- a/template/www.yohobuy.com/partials/index/home-analysis.phtml +++ b/template/www.yohobuy.com/partials/index/home-analysis.phtml @@ -1,5 +1,5 @@ <script> - (function() { + window.onload = function() { var hm = document.createElement("script"); hm.src = "http://static.criteo.net/js/ld/ld.js"; hm.async = 1; @@ -9,5 +9,5 @@ u = (u == 0) ? "" : u; window.criteo_q = window.criteo_q || []; window.criteo_q.push({event: "setAccount", account: 16184 },{event: "setCustomerId", id: u},{event: "setSiteType", type: "d" },{event: "viewHome" }); - })(); + }; </script> \ No newline at end of file