Dolke Posted September 1, 2013 Share Posted September 1, 2013 (edited) Hi to all,Alexa reported to me that I have only one page left that its not have tracking code installed.Its mobile theme.Where would be the best place to put the code and what file should I edit?Ty in advanceDean Edited September 9, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted September 4, 2013 Share Posted September 4, 2013 hello you attached alexa code also to the mobile theme? it is necessary how your alexa code looks like? and where you pasted it in default (not mobile) theme? Link to comment Share on other sites More sharing options...
Dolke Posted September 4, 2013 Author Share Posted September 4, 2013 (edited) Hello,I inserted this code on to footer.tpl as footer displayes on every page. That was the suggestion to my original question: http://www.prestashop.com/forums/topic/270032-solvedadding-alexa-tracking-code-on-every-page-of-my-website/?do=findComment&comment=1351058 This is Alexa.com code that I need to insert into my mobile theme: <!-- Start Alexa Certify Javascript --> <script type="text/javascript"> _atrk_opts = { atrk_acct:"2eP5i1acVE00Uq", domain:"dekom.co.rs",dynamic: true}; (function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "https://d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })(); </script> <noscript><img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=2eP5i1acVE00Uq" style="display:none" height="1" width="1" alt="" /></noscript> <!-- End Alexa Certify Javascript --> In that case I will have 100% coverage of that code on my website and Alexa will be able to track everything. ThanksDean Edited September 4, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
Dolke Posted September 9, 2013 Author Share Posted September 9, 2013 Any solution guys? Link to comment Share on other sites More sharing options...
vekia Posted September 9, 2013 Share Posted September 9, 2013 if you want to add it also to moble theme, you should edit mobile footer.tpl file: themes/YOUR_THEME/mobile/footer.tpl Link to comment Share on other sites More sharing options...
Dolke Posted September 9, 2013 Author Share Posted September 9, 2013 Thank you Vekia, I was stupid enough not to see the same footer.tpl file existing under mobile theme folder as well. Sorry for bothering all the people here. I will mark this topic as SOLVED. RegardsDean Link to comment Share on other sites More sharing options...
Recommended Posts