Piwik on subdomain don't record data

Hi all, I need some help! I used piwik in some site installed on the mail domain and all works fine.
Now I created a new-separated-site (a wordpress one) in a subdomain, aaa.domain.it and I want to record data, but doesn’t work!

My piwik js, inserted in the footer.php file, so I’m sure that it’s correct in the html output:

Can somebody help me to understand what’s wrong?

Thank you!

are you using the code given by Piwik in Settings>Tracking code?

It should work if aaa.domain.it/piwik/ has a working piwik server