Tracking code doesn't work

Hello,

I installed Piwik on my QNAP NAS.
Next, adding the tracking code in the head-section of my WordPress website (without plugin!) https://ticketassist.be
This is the code:

If i not at home then i can access my NAS via the myqnapcloud.com platform. This works very good.
For access Piwik over the internet then i can type:
http://81.165.214.204/Piwik/

But Piwik doens’t tracking the website.

Is there a solution for this?

(PS: i try test the url:
http://81.165.214.204/Piwik/piwik.php?idsite=1
And this works, but it doesnt tracking the website!)

Regards,
Christophe

I find out that, if i enter this url:
http://81.165.214.204/piwik/piwik.php?idsite=1&rec=1
The website is tracked!

But can’t find how id this in the tracking code.
Are there tracking code examples, how can add some url?

Regards,
Christophe

In the tracking code it sets _paq as an array that holds your data as well as methods that are run asynchronously. You can see in the tracking code that it sets the siteID to 1:

_paq.push([‘SetSiteId’, ‘1’]);

Using the examples at the client and guide you can do things like:

_paq.push([‘setDocumentTitle’, ‘Home Page’]);
_paq.push([‘trackPageView’]);

This is useful if your web site uses routing code (ie. #tags). In this case the routing “page” will always be tracked by Piwik instead of the actual “page”.

Hi,
I think that it is a SSL problem.

The website that i want tracking is SSL enabled (https), but Piwik is installed on my Qnap NAS without SSL and the https website blocked the not-secure connection with the my NAS.

I installed now on the secure hosting itself and ther it works perfect!