• 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.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Google Analytics

Status
Not open for further replies.

kestabillo

Chevereto Noob
Is there a way to add the Google Analytics Code to the index.php?

<?php include ("tracking.php"); ?>

The mentioned code above gives me a syntax error :( apparantely I'm not good with coding ..
 
As far as I know Google Analytic code is a simple Javascript line.
You can simply copy and paste this line at the complete bottom of footer.php in the template you are using.
 
It's very easy

open: chevereto/content/themes/Paefowl/index.php

after:

Code:
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
<?php include_theme_header(); ?>


add:

Code:
<?php include_once("tracking.php") ?>

and google analytics is running :)
 
But have you notice the include path? It will not work if you don't use the full path.
btw, analytics is just HTML open template's footer and place on it ;)
 
Status
Not open for further replies.
Back
Top