Tracking page title if is disabled javascript


#1

The following code track the page with a specified title:

_paq.push([‘setDocumentTitle’, “<?php echo $model->id ?>”]);
_paq.push([‘trackPageView’]);

If javascript is disabled, how can track the page?


(Matthieu Aubry) #2

see How to - Analytics Platform - Matomo


#3

In below line, can we set document title as a parameter?


<noscript><p><img src="http://piwik-server.com/piwik.php?idsite=1&rec=1" style="border:0" alt="" /></p></noscript>

I need to change the document title.

Thanks


(Matthieu Aubry) #4

&action_name=Here%20title


#5

I used following code but after a while noticed don’t work.


<noscript><img src="http://localhost/minudasht/piwik/piwik.php?idsite=1&rec=1&action_name=<?php echo $model->id ?>" style="border:0" alt="" /><noscript>

what is the problem?


(Matthieu Aubry) #6

Is it normal that you have “localhost” in there, maybe you should put the Internet URL of your piwik


#7

[quote=matt]
Is it normal that you have “localhost” in there, maybe you should put the Internet URL of your piwik[/quote]
yes, after uploading the site on the host, it works correctly. what is the reason on local host don’t work?


(Matthieu Aubry) #8

because localhost does not work for other people (only works for you) see Localhost - Wikipedia