PHP code example of awcodes / gtm

1. Go to this page and download the library: Download awcodes/gtm 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/ */

    

awcodes / gtm example snippets


return [
    'id' => env('GTM_ID', 'GTM-XXXXXX'),
    'enabled' => env('GTM_ENABLED', true),
];
bash
php artisan vendor:publish --tag="gtm-config"
bash
php artisan vendor:publish --tag="gtm-views"