soubor plugin.googleanalytics.php
<?php
/*
Plugin Name: Google Analytics
Plugin URI:
Description:
Author:
Version: 1.0
Author URI:
*/
function plugin_googleAnalytics() {
?>
<script>
// sem vložte kód z http://www.google.com/analytics/
</script>
<?php
}
add_action(’wp_footer’, ’plugin_googleAnalytics’);
?>
Do skriptu vložte kód z analytics.google.com
Najdete jej v Administrátor > Údaje o měření > Měřící kód
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-88384173-1”></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(’js’, new Date());
gtag(’config’, ’UA-88384173-1′);
</script>
Poté jej v Administraci-Pluginy zapněte, automaticky se vloží do patičky stránky.
Pátek, Srpen 30, 2019 na 11:43:05
Google Analytics is the most prominent device you can use to quantify those visitors. You shouldn’t use a tool since it is mainstream, however. Google’s enormous cloud foundation enables them to tear through huge informational indexes rather rapidly.