Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Unable to track site search

$
0
0

@vincent3569 wrote:

hi

I am trying to track site search on my personnal website, using Zenphoto CMS.
The internal search of this CMS not uses URL parameters so I use trackSiteSearch() in my Piwik Tracking Code (Piwik Tracking Code is generated by php code).

But it doesn’t work and I never had site search tracking on my reports.

On all pages (except search page), the Piwik code is like following

<!-- Piwik Tracking Code -->
<script type="text/javascript">
	var _paq = _paq || [];
	_paq.push(['setDocumentTitle', "Galerie"]);
	_paq.push(['enableLinkTracking']);
	_paq.push(['setDownloadExtensions', "zip"]);
	_paq.push(['trackPageView']);
	(function() {
		var u = "//piwik.[my_domain_name].fr/";
		_paq.push(['setTrackerUrl', u + 'piwik.php']);
		_paq.push(['setSiteId', 4]);
		var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
		g.type = 'text/javascript'; g.async = true; g.defer = true; g.src = u + 'piwik.js';
		s.parentNode.insertBefore(g, s);
	})();
</script>
<!-- End Piwik Tracking Code -->

On search page, the Piwik code is like following


But I can’t see any reports on search on “test” keyword.
Can’t you point my in the right direction and help me to solve this issue ?

Posts: 3

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles