GlisWeb framework
_625.google.php
Vai alla documentazione di questo file.
1 <?php
2 
14  // link al profilo GTM corrente
15  $cf['google']['gtm']['profile'] = ( ( isset( $cf['site']['google']['gtm']['profiles'][ $cf['site']['status'] ] ) )
16  ? $cf['site']['google']['gtm']['profiles'][ $cf['site']['status'] ]
17  : ( ( isset( $cf['google']['gtm']['profiles'][ $cf['site']['status'] ] ) )
18  ? $cf['google']['gtm']['profiles'][ $cf['site']['status'] ]
19  : NULL ) );
20 
21  // link al profilo Analytics corrente
22  $cf['google']['analytics']['profile'] = ( ( isset( $cf['site']['google']['analytics']['profiles'][ $cf['site']['status'] ] ) )
23  ? $cf['site']['google']['analytics']['profiles'][ $cf['site']['status'] ]
24  : ( ( isset( $cf['google']['analytics']['profiles'][ $cf['site']['status'] ] ) )
25  ? $cf['google']['analytics']['profiles'][ $cf['site']['status'] ]
26  : NULL ) );
27 
28  // link al profilo ADS corrente
29  $cf['google']['ads']['profile'] = ( ( isset( $cf['site']['google']['ads']['profiles'][ $cf['site']['status'] ] ) )
30  ? $cf['site']['google']['ads']['profiles'][ $cf['site']['status'] ]
31  : ( ( isset( $cf['google']['ads']['profiles'][ $cf['site']['status'] ] ) )
32  ? $cf['google']['ads']['profiles'][ $cf['site']['status'] ]
33  : NULL ) );
34 
35  // link al profilo RECAPTCHA corrente
36  $cf['google']['recaptcha']['profile'] = ( ( isset( $cf['site']['google']['recaptcha']['profiles'][ $cf['site']['status'] ] ) )
37  ? $cf['site']['google']['recaptcha']['profiles'][ $cf['site']['status'] ]
38  : ( ( isset( $cf['google']['recaptcha']['profiles'][ $cf['site']['status'] ] ) )
39  ? $cf['google']['recaptcha']['profiles'][ $cf['site']['status'] ]
40  : NULL ) );
41 
42  // collego i dati a $ct
43  $ct['google'] = &$cf['google'];
44 
45  // NOTA alla fine devono essere presenti i seguenti dati
46  // codice proprietà di Google Tag Manager
47  // $cf['google']['gtm']['property'] = NULL;
48  // Google Tag Manager è configurato per anonimizzare i dati?
49  // $cf['google']['gtm']['anonymous'] = NULL;
50  // codice proprietà di Google Analytics
51  // $cf['google']['analytics']['ua'] = NULL;
52  // Google Analytics è configurato per anonimizzare i dati?
53  // $cf['google']['analytics']['anonymous'] = NULL;
54 
55  // debug
56  // print_r( $cf['contents']['pages']['licenza']['content'] );
57  // print_r( $ct['site'] );
58  // print_r( $ct['google'] );
59 
60 ?>
$cf['google']['gtm']['profile']
Definition: _625.google.php:15
$ct['google']
Definition: _625.google.php:43