regnarok Posted June 11, 2013 Share Posted June 11, 2013 Hi guys! I'm trying to certify my site in alexa and I have a problem with add alexa code snippet to all of my sites. They require "Paste the Certify Code into EVERY page of your website just below the opening <body> tag in the HTML." I've tried to put this code in footer.tpl but it doesn't work :/ Maybe sb had the same problem ? Any suggestions? Link to comment Share on other sites More sharing options...
safa Posted June 11, 2013 Share Posted June 11, 2013 if you tryind add javascript code open header.tpl and open close literal tag example.. {literal} //alexa code {/literal} Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 i think that you should try to add this in the header.tpl file because there is <body> tag. and follow safa suggestion - use the {literal} {/literal} tags just put your code between these tags Link to comment Share on other sites More sharing options...
regnarok Posted June 11, 2013 Author Share Posted June 11, 2013 Thanks for advice but still alexa could verify my webpage :/ I did as you recommend in footer.tpl and later also in header.tpl I still receive this information in Alexa: "We could not find the code snippet on your homepage. Please 1. Verify the snippet was correctly added to your homepage. 2. If the problem persists, please contact Alexa Support." Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 if it is possible: can you paste the url to your website? can you paste your code that you inserted to the footer / header template files? Link to comment Share on other sites More sharing options...
regnarok Posted June 11, 2013 Author Share Posted June 11, 2013 (edited) This is my site: www.tekstyle.pl JAva script code: {literal} //<!-- Start Alexa Certify Javascript --> <script type="text/javascript"> _atrk_opts = { atrk_acct:"aAxJh1aIE700i5", domain:"tekstyle.pl",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=aAxJh1aIE700i5" style="display:none" height="1" width="1" alt="" /></noscript> <!-- End Alexa Certify Javascript --> {/literal} Edited June 11, 2013 by regnarok (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 i checked your website, there is no alexa certify script, i think that you should turn force compilation under the preferences > performance tab in your back office - then refresh your website. if this doesn't help - try to turn off cache (if you've got it ENABLED) let us know what's going on Link to comment Share on other sites More sharing options...
regnarok Posted June 11, 2013 Author Share Posted June 11, 2013 Unfortunately, it doesn't help :/ Even if I turn off cache and turn on force compile Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 are you sure that you append changes to the correct theme? i've noticed that you use: /theme420/ - so you need to change the .tpl files located in this theme (not /default/) i know that this may be dumb question - but sometimes it happens to make changes not just where you need;) Link to comment Share on other sites More sharing options...
regnarok Posted June 11, 2013 Author Share Posted June 11, 2013 Yeah I've checked it once again and these files are located in themes->theme420 Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 really weird, because i can't find script that you pasted in the source of your website. So it looks like theme is not compiled with new content (script) you added. another thing is to clear the contents of cache folders: cache/smarty/cache cache/smarty/compile Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 UPDATE now i see the code in the source! stil it doesn't work ? Link to comment Share on other sites More sharing options...
regnarok Posted June 11, 2013 Author Share Posted June 11, 2013 (edited) Strange when I once again did what you adviced to me at last it started to work thanks for solving my problem Edited June 11, 2013 by regnarok (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2013 Share Posted June 11, 2013 you're welcome im going to mark this thread as [solved] if you've got any questions related to this case - feel free to continue discussion here regards Link to comment Share on other sites More sharing options...
Dolke Posted September 2, 2013 Share Posted September 2, 2013 Hi, I have only one page left to add my code from what Alexa is reporting and thats mobile theme. How to add this code to a mobile theme and what file do I need to modify? Link to comment Share on other sites More sharing options...
caris789 Posted October 30, 2013 Share Posted October 30, 2013 Hello, I can not find the <body> tag in both my custom and default theme i see <body {if.... and when I try to add it after the if statement or anywhere at all my site stops loading. I'm kind of confused. Any help will be appreciated Link to comment Share on other sites More sharing options...
pittbrosnan Posted August 7, 2016 Share Posted August 7, 2016 I'm trying to certify my site in alexa and I have a problem with add alexa code snippet to all of my sites. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now