• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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