HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/tco-google-analytics/views/site/google-analytics.php
<?php

// =============================================================================
// VIEWS/SITE/GOOGLE-ANALYTICS.PHP
// -----------------------------------------------------------------------------
// Plugin site output.
// =============================================================================

// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
//   01. Require Options
//   02. Output
// =============================================================================

// Require Options
// =============================================================================

require( TCO_GOOGLE_ANALYTICS_PATH . '/functions/options.php' );



// Output
// =============================================================================

// Check if has admin capabilities
if ( (! ( is_user_logged_in() && current_user_can( 'update_core' ) ) ) || $tco_google_analytics_track_all == true ) {
?>

<!-- Google Analytics -->
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

    ga('create', '<?php echo $tco_google_analytics_id; ?>', 'auto');
    ga('send', 'pageview');
</script>
<!-- End Google Analytics -->

<?php
	echo $tco_meta_tag;
}