GlisWeb framework
measurement.01.php
Vai alla documentazione di questo file.
1 <?php
2 
3  require '../../../_src/_config.php';
4 
5  $ch = curl_init();
6 
7  // curl_setopt( $ch, CURLOPT_URL, "http://www.example.com/tester.phtml" );
8  curl_setopt( $ch, CURLOPT_URL, 'www.google-analytics.com/collect' );
9  curl_setopt( $ch, CURLOPT_POST, 1 );
10  curl_setopt( $ch, CURLOPT_POSTFIELDS,
11  http_build_query( array(
12  'v' => '1',
13  't' => 'pageview',
14  'dp' => '/foobar',
15  'tid' => $cf['google']['analytics']['ua'],
16  'cid' => '696969'
17  ) )
18  );
19 
20  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
21 
22  $rs = curl_exec( $ch );
23 
24  curl_close( $ch );
25 
26  // print_r( $rs );
27 
28  // header( 'Content-type: image/gif' );
29  // echo $rs;
30 
31 ?>
$cf['ricerca']['template']
Definition: _030.common.php:7