You must place your code with literal, in your footer before "/body", 100 working.
EX:
{literal}
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxxx-x]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
{/literal}
Quote:
Originally Posted by Gokk
Hi there,
sorry to interrupt original post, but I would need some help about Oxy.
I'm trying to integrate Google automatic translation into Oxy, but don't know where to paste google code:
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'fr',
layout: google.translate.TranslateElement.InlineLayout.SI MPLE
}, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
I've tried to paste it in index.php file, but crashes the page, also tried to templates/header.html file - same thing...
I'm asking this because I'm doing this for a friend, and his support has expired months ago...
He claims that he wrote to them, but no reply!?!, anyone had similar experience?
I would recommend using Oxy, for what I have seen so far, the script is very versatile!
Thanks for any support you can provide!
|