PHP code example of helick / gtm
1. Go to this page and download the library: Download helick/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/ */
helick / gtm example snippets
php
Config::define('GTM_CONTAINER_ID', env('GTM_CONTAINER_ID'));
php
wp_body_open();
php
add_filter('helick_gtm_data_layer', function (array $dataLayer) {
$dataLayer['foo'] = 'bar';
return $dataLayer;
});
php
add_filter('helick_gtm_enable_event_tracking', '__return_false');