No Data - is it a Tracking Code problem?

I have recently downloaded Piwik but still cannot get any data in my Dashboard (even the Real Time data is blank).

As a relative newbie, I have researched the FAQ and other suggested links but I am struggling very much. Please would some kind person take a look at my coding and advise where I am going wrong.

It would be much appreciated.

My website is www.rentapartmentmakati.com and the Piwik software is download to www.rentapartmentmakati.com/piwidir

This is the tracking code code in my Child Theme


<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content
 * after. Calls sidebar-footer.php for bottom widgets.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
?>
	</div><!-- #main -->

	<div id="footer" role="contentinfo">
		<div id="colophon">

<?php
	/* A sidebar in the footer? Yep. You can can customize
	 * your footer with four columns of widgets.
	 */
	get_sidebar( 'footer' );
?>

			<div id="site-info">
				<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
					<?php bloginfo( 'name' ); ?>
				</a>
			</div><!-- #site-info -->

			<div id="site-generator">
				<?php do_action( 'twentyten_credits' ); ?>
				<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
			</div><!-- #site-generator -->

		</div><!-- #colophon -->
	</div><!-- #footer -->

</div><!-- #wrapper -->

<!-- Piwik -->

<script type="text/javascript"> var _paq = _paq || []; (function(){ var u=(("https:" == document.location.protocol) ? "https://www.rentapartmentmakati.com/piwidir/" : "http://www.rentapartmentmakati.com/"); _paq.push(['setSiteId', "1"]); _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); </script>

<!-- End Piwik Code -->

<?php
	/* Always have wp_footer() just before the closing </body>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */

	wp_footer();
?>

</body>
</html>

I still cannot get Piwik to show me any data??!! :frowning: :frowning:

I tried changing the code and currently have the following code at the bottom of my footer.php


<?php
	/* Always have wp_footer() just before the closing </body>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */

	wp_footer();
?>
<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.rentapartmentmakati.com/piwidir/index.php";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 1]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
    g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();

</script>
<noscript><p><img src="http://demo.piwik.org/piwik.php?idsite=3" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->



</body>
</html>

I face the same problem.

My website is : http://www.locations-de-vacances.fr/
is there a paying support solution ? I want to run piwik

The code javascript you put here, is not correct. Did you change it after copy pasting?

I changed the code to a new domain locavaca.net to understand the problem
now it is 1 hour I am looking to solve that problem

aaaaaaaaaaaaaaaaaaah

I have 1 visit

I changed the js code and it worked. Finally !

I dont understand from where I got the wrong code !

also there is a small bug in the email when creating an account, the link is not correct to activate the account, u have to remove ,2

Matt,

I did change the name of the website and the SetSiteID and I got it wrong.

So now, after twiddling around with it, I managed to get a visitor.

Now I can’t wait to get going an analyse my stats on Piwik.

Cheers.