Frequently Asked Questions

How do I integrate the HTML code on my website?

In order that trendcounter is able to collect and process data, you only need to integrate a small HTML code into your website. This HTML code uses several asynchronous technologies that will ensure that the performance of your website is not affected.

<script type="text/javascript">

var _tcq = _tcq || [];
_tcq.push(['standard', '1234567890']); // log in to get your key 

(function() { 
    var e = document.createElement('script'); e.type = 'text/javascript';
    e.async = true; e.src = 'http://s.tcimg.com/w/v2/standard.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s);
})();

</script>

Hint: Each website receives a personalized HTML code, which you can get when you log in.

My site is accessible with and without www. What do I have to consider?

By default trendcounter removes a leading www of the domain name. This leads to clearer results and improves the accuracy of the analysis. If you do not wish that domains with and without www are merged, you can disable this behavior.

_tcq.push(['www', 'strip']); // remove leading www in domains (standard)
_tcq.push(['www', 'leave']); // do not remove leading www in domains 

How can I adjust the current URL?

For the analysis to be as exactly as possible you should ensure that every page is only accessible via one unique URL. Otherwise, each active page would emerge under different URLs in the analysis. For this you have several options available.

_tcq.push(['url', 'full']);      // use the full URL with parameters (standard)
_tcq.push(['url', 'strip']);     // keep only the path and remove all parameters
_tcq.push(['url', 'canonical']); // use the canonical tag of the current page

How can I prevent trendcounter to set cookies?

If you are concerned with the use of cookies, you can disable them easily. But then some stats are no longer recorded. You can for example not identify any recurring visitors.

Hint: We are using so-called "First-Party"-Cookies, that are giving an increased privacy protection, because they are not available across different domains.

_tcq.push(['use_cookies', 'yes']);  // use cookies (standard)
_tcq.push(['use_cookies', 'no']);   // dont't use cookies