PHP Classes

File: uploady/modules/analytics/main.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   Uploady PHP Upload File to MySQL   uploady/modules/analytics/main.php   Download  
File: uploady/modules/analytics/main.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Uploady PHP Upload File to MySQL
Store file upload details in a MySQL database
Author: By
Last change: update permission to 755
Date: 4 months ago
Size: 510 bytes
 

Contents

Class file image Download
<?php
$url
= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

if (!
strpos($url, 'install.php')) {
   
$analytics = $st['analytics_status'];

    if (
$analytics == true) {
       
$utils->script("https://www.googletagmanager.com/gtag/js?id={$st['analytics_code']}", true);

        echo
"<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', '"
. $st['analytics_code'] . "');
</script>"
;
    }
}