Problem with a code

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Nov 26, 2012 11:56 am
Reply with quote
Report this post
Hello.

I want to put this code
Code: Select all
<script type="text/javascript">
  var vglnk = { api_url: '//api.viglink.com/api',
                key: '26c352a29d86f810b20b85cd80b6ef85' };

  (function(d, t) {
    var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;
    s.src = ('https:' == document.location.protocol ? vglnk.api_url :
             '//cdn.viglink.com/api') + '/vglnk.js';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
  }(document, 'script'));
</script>

in my site. They say in documendary this
How to Install
This code should be inserted at the very end of your pages, just before the </body> tag.
The code needs to be present on every page where you'd like VigLink to work. The best way to install this code everywhere is to add it to your site's template.

But i dont know what i must to do. Can you help me please.
Thanks
User avatar
Junior Boarder

Konrad M
Mon Nov 26, 2012 12:01 pm
Reply with quote
Report this post
Hi,
please try put this code in layouts/default.php at the bottom just before '</body>' tag.
User avatar

GK User
Tue Nov 27, 2012 12:33 pm
Reply with quote
Report this post
Thank you very much
User avatar
Junior Boarder


cron