Uniq Posted August 13, 2013 Share Posted August 13, 2013 (edited) Ok I tried using the module and it does not seem to be working. Should I add it to the foot.tpl? I have my Ganalytics there so not sure if it needs to be in the same place. Thanks In advance Missy Edited August 14, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 can you show the code that you've got + a little bit information for what purposes you want to use this code? Link to comment Share on other sites More sharing options...
NemoPS Posted August 14, 2013 Share Posted August 14, 2013 I second vekia. If I remember correctly, anyway, it should be put in the footer It's a tracking code for statistics right? Link to comment Share on other sites More sharing options...
Uniq Posted August 14, 2013 Author Share Posted August 14, 2013 Hi vekia and Nemo1, Yes for statistics. This is my code <!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(["setDocumentTitle", document.domain + "/" + document.title]); _paq.push(["setCookieDomain", "*.www.uniqjewelrydesigns.com"]); _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.uniqjewelrydesigns.com/piwik/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "1"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Piwik Code --> Link to comment Share on other sites More sharing options...
NemoPS Posted August 14, 2013 Share Posted August 14, 2013 Yeah, you can place it in footer.tpl then, at the very end before closing the body Link to comment Share on other sites More sharing options...
Uniq Posted August 14, 2013 Author Share Posted August 14, 2013 (edited) Ok I added it back. I will give it some time and see if I start getting stats. Thanks ! Edited August 14, 2013 by Uniq (see edit history) Link to comment Share on other sites More sharing options...
Uniq Posted August 14, 2013 Author Share Posted August 14, 2013 So that would be the correct place? themes/default/footer.tpl 1 Link to comment Share on other sites More sharing options...
NemoPS Posted August 14, 2013 Share Posted August 14, 2013 If you're using the default theme, yes. Is it showing up in the front office, when examining the html? Prestashop version? Also, try setting Force COmpile in advanced parameters->performance in the back office Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 i've noticed that it's a script, so don't forget to use {literal} {/literal} tags like this: <!-- Piwik --> {literal} <script type="text/javascript"> var _paq = _paq || []; _paq.push(["setDocumentTitle", document.domain + "/" + document.title]); _paq.push(["setCookieDomain", "*.www.uniqjewelrydesigns.com"]); _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.uniqjewelrydesigns.com/piwik/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "1"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })(); </script> {/literal} <!-- End Piwik Code --> Link to comment Share on other sites More sharing options...
NemoPS Posted August 14, 2013 Share Posted August 14, 2013 right, it hs some brackets so it needs literal (otherisde it wouldn't afaik!) Link to comment Share on other sites More sharing options...
Uniq Posted August 14, 2013 Author Share Posted August 14, 2013 Ok got it. I have just one other problem. I posted it on another link thou. Don't want to confuse the two. Thanks again Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 thanks for cofirmation im going to mark this topic as [solved] can you share the url to other thread? regards Link to comment Share on other sites More sharing options...
Recommended Posts