PHP code example of analytical42 / googleanalyticscookie

1. Go to this page and download the library: Download analytical42/googleanalyticscookie library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

analytical42 / googleanalyticscookie example snippets


$gaCookie = new Analytical42\GoogleAnalyticsCookie\Cookie;

$gaCookie = new Analytical42\GoogleAnalyticsCookie\Cookie( '_myGaCookieName', 'mydomain.com', true );