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.
Hint: Each website receives a personalized HTML code, which you can get when you log in.
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', 'leave']); // do not remove leading www in domains (standard) _tcq.push(['www', 'strip']); // remove leading www in domains
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
Should it be necessary, you can also set your own domain the analysis cookies are set on.
Hint: We are using so-called "First-Party"-Cookies, that are giving an increased privacy protection, because they are not available across different domains.
By default, the analysis starts automatically after the 'init' call. Should your application require a separate start of the analysis (for example, AJAX pages), you can disable this feature. You can then start the analysis with a 'track'.
_tcq.push(['init', 'your-project-key', false]); // disabled auto tracking _tcq.push(['track']); // can be called whenever you need it
Dynamic applications sometimes require that URL and Title must be specified.
_tcq.push(['init', 'your-project-key', false]); _tcq.push(['track', 'Custom URL', 'Custom Title']);
We respect Privacy and Autonomy as a high commodity and have started adopting the DNT Initiative very early.
If a Visitor has configured his Browser to not beeing tracked, it sends us a special "Do Not Track" hint. Our system recognizes this and stops settings Cookies at our Anlytics solution and reduces several detailed information for this session.
That beeing said, trendcounter is fully DNT (Do Not Track) compliant and helps with the autonomy of your Visitors.