I am trying to add Alexa Certify Code in head section in template but code appear in frontend and i also use the System - OpenPotion Head and Body plugin but same, and Google Analytics codes in body section also same.

I am using the gk_news template.

closed as unclear what you're asking by Lodder, Bakual, Valentin Despa Aug 10 '14 at 8:42

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


You can add the code directly in the template file:

  • Open the file /templates/gk_news/layouts/default.php
  • Go to line # 63 (aproximately) and find the </head> tag.
  • Add your code just before the </head> tag:
  • Save the file.

Your file should look something like this:

<jdoc:include type="head" />
<?php $this->layout->loadBlock('head'); ?>
<?php $this->layout->loadBlock('cookielaw'); ?>
  • thanks for reply, i am adding in same area but after i can see all cords in front-end top of the page. – Mumtaz Ali Khan Jul 30 '14 at 16:39
  • Are you sure the code is correct? There might be an error or a missing tag. Can you add the code (or parts of it) to your question? – johanpw Jul 30 '14 at 16:49
  • yes cords is correct, even if i add Google analytics cords in body section also same happen, and i have try with other template that also same. – Mumtaz Ali Khan Jul 30 '14 at 16:55
  • i have added the cords above in my Question – Mumtaz Ali Khan Jul 30 '14 at 17:20
  • OK, let's do a small test. Please remove any code you've added to your template, and add this right before the </head> tag: <script>window.onload = function () { alert("This message is coming from the head tag.") }</script>. Do you see the message when you load your website? Is the code visible on the page after you click OK? – johanpw Jul 30 '14 at 17:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.