I had read some of other topics to learn more about how it works and to know how and what to ask exactly. I need to add some scripts in the structure of some places, like the index page, journals, and some articles. The script i need to add right now is the Google Analytics script.
1.- Is there a way to know the exact structure of the templates? I know is different in 2.2 and 2.3 versions. I suposse the common handles the entire place, the article just an article, and rt for reading tools. But i couldn't find the journal place exactly.
2.- I add the script in the template/common/header.tpl, supossing that was the path for general pages. But it returned an error, something like "error in line x (something with var) and something with smarty". I was reading about it, and what i could know was it was a problem with some php - html difference in the handle of the ojs.
3.- I tryed the script in a blogger and it worked perfectly.
I wait for your response
PD: I apologize if i make some mistakes in the language, but i still have problems with my english
PD2: this is the google analytics script
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17694522-1']);
_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>
