Şu sürüme ilişkin yardım içeriğini görüntülüyorsunuz:
- 6.5
- 6.4
- 6.3
- 6.2
- Eski Sürümler
Analytics can provide you with important and interesting information about how your website is being used.
Various out-of-the box configurations are available for integrating with the appropriate service, for example:
You can also configure your own instance of the Generic Analytics Snippets to define a new service configurations.
The information is then collected by means of small snippets of code that are added to the web pages. For example:
Dikkat:
Scripts must not be enclosed in script tags.
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
Such snippets enable data to be collected and reports generated. The actual data collected depends on the provider and the actual code snippet used. Example statistics include:
- how many visitors over time
- how many pages visited
- search terms used
- landing pages
Dikkat:
The Geometrixx-Outdoors demo site is configured so that the attributes provided in the Page Properties are appended to the html source code (just above the </html> endtag) in the corresponding js script.
If your own /apps do not inherit from the default page component (/libs/foundation/components/page) you (or your developers) have to make sure that the corresponding js scripts are included, for example by either including cq/cloudserviceconfigs/components/servicescomponents, or using a similar mechanism.
Without this, none of the services (Generic, Analytics, Target, etc) will work.