That is why it isn't working. are there any other places where you know you can put stuff in? The place where you put it seems to be a box. The first couple of lines should be at the top of the page, not simply before the script. Is there some sort of place where you can edit the complete HTML of the page?
I'm not sure how it works, but my guess is that ezgenerator processes the whole page and uses a function to insert that code at the top. What I do know is that the program and devs say it puts the code on the top.
yes this is possible, if you need to add it for all pages in website, you can use menu extra --> project settings -->advanced --> DOC_TOP
if you need just on some pages: use insert html function and add following code (anywhere on page)
<!--doc_top-->your code here<!--/doc_top-->
AND THE OTHER THREAD:
hi
doc top macro still works here
are you sure you didn't defined DOC_TOP value in site.ini (in project directory) ?
DOC_TOP in site.ini have higher priority than doc top macro inserted on page
This is the script in site.ini:
[/BODY]<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-16268771-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);
})();
It might be duplicate variables. Try changing the include script to
PHP Code:
<?php
$temp_page_id_bckp = $page_id; $page_id = "2"; $path_to_comments_folder = "comments/"; define ('IN_COMMENTICS', 'true'); //no need to edit this line require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line $page_id = $temp_page_id_bckp; ?>