PHP Page NOT counted


(SxM) #1

Hi to all, i’m using successufully piwik in my websites from about two months but now i have a page that is not counted.

The page is in php code and it’s composed by an header.php files, a main files in php, and a footer in php.

I inserted the code in footer.php but the page is not counted…here is the code:

<?php

echo "<div class=\"legenda\">
<p>$legenda</p>
<p><a href=\"mailto:mailcensored\"><b>$infolista</b></a> </p>";
?>

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ?
"https://www.argenteriadabbene.com/piwik/" :
"http://www.argenteriadabbene.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js'
type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img
src="http://www.argenteriadabbene.com/piwik/piwik.php?idsite=1"
style="border:0" alt=""/></p></noscript>
<!-- End Piwik Tag -->


<?
echo "</div>";
echo "</body>";
echo "</html>";

/**
 *
 *
 * @version $Id$
 * @copyright 2006
 */


?>

Where is the error ? style_emoticons/<#EMO_DIR#>/mellow.gif


(Karlsson) #2

Is the tracking code included in the generated html file?


(SxM) #3

I suppose not, sorry but i don’t know php language, main php files it’s only php files and the header.php it’s :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?
if(isset($sposi)) {
$titolo = $sposi;
}else{
$titolo = "Argenterie Dabbene";
}
echo $titolo;
?> </title>
<link href="style.css" rel="stylesheet" type="text/css"/>

<link rel="stylesheet" type="text/css" href="shadowbox/shadowbox.css"/>
<script type="text/javascript" src="shadowbox/shadowbox.js"></script>
<script type="text/javascript" src="shadowbox/shadowbox.skin2.js"></script>
<link rel="stylesheet" type="text/css" href="shadowbox/shadowbox.skin2.css" />
<script type="text/javascript">
Shadowbox.init();
</script>
<script type="text/javascript">
function chiudi(){
parent.Shadowbox.close()
parent.location.reload()
}
</script>

</head>
<body>

And after Starts php code


(SxM) #4

it’s not possible to call it from an echo function like echo or put it in msyql table and load it ?

I think i wrote a lot of bullshit style_emoticons/<#EMO_DIR#>/laugh.gif


(SxM) #5

ok solvede, it was a stupid error (i made a mistake copying the code in the footer.php)