• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • This community is user driven. Be polite with other users.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.

add google anaytics

SirMarcel

Chevereto Noob
here's a short tutorial how to add a google analytics to your installation

1) if you don't have, create an account with http://google.com/analytics and get the tracking code for your site. Remember to check the following options:


2) create a file, name it tracking.php and insert the code given by google into it. It will look something like:
Code:
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-xxxxxxxx-1']);
  _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);
  })();

</script>

Don't use this code, or if you do, replace "UA-xxxxxxxx-1" to your own unique analytics ID

3) upload the file to your chevereto's folder

4) open index.php and locate: "<body>"

5) add another line after "<body>":
Code:
<?php include_once("tracking.php") ?>

6) save index.php and upload

7) that's it. enjoy 🙂
 
Back
Top