Jump to content

[solved] add Alexa Code Snippet to Prestashop


Recommended Posts

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

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. 1. Verify the snippet was correctly added to your homepage.
  2. 2. If the problem persists, please contact Alexa Support."

Link to comment
Share on other sites

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 by regnarok (see edit history)
Link to comment
Share on other sites

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

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

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:

  1. cache/smarty/cache
  2. cache/smarty/compile

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 2 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...