From efd0d5f5f50d61b53733b6a0fc1a93952a48857b Mon Sep 17 00:00:00 2001 From: Mohamad Fahmi Date: Thu, 2 Jan 2014 11:37:15 +0700 Subject: [PATCH] Added Function Google Analytics --- system/includes/functions.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 4b59824..1c307f2 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -600,6 +600,13 @@ function publisher(){ } } +function analytics(){ + $analytics = config('google.analytics.js'); + if (!empty($analytics)) { + return $analytics; + } +} + // Menu function menu(){ $menu = config('blog.menu'); @@ -641,4 +648,4 @@ function generate_rss($posts){ // Turn an array of posts into a JSON function generate_json($posts){ return json_encode($posts); -} \ No newline at end of file +}