1. Go to this page and download the library: Download label84/laravel-tagmanager 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/ */
use Label84\TagManager\Facades\TagManager;
TagManager::purchase('00001', 'Google', 'EUR', 12.10, 2.10, 0, [
new TagManagerItem('12345', 'Triblend Android T-Shirt', 10.00, 1),
]);
use Label84\TagManager\Facades\MeasurementProtocol;
MeasurementProtocol::event('some_event', ['foo' => 'bar']);
// Set a specific User-ID for this event (you can customize the key in the config file)
MeasurementProtocol::user($someUser)->event('some_event', ['foo' => 'bar']);
use Label84\TagManager\Facades\MeasurementProtocol;
dd(
MeasurementProtocol::debug()->event('some_event', ['foo' => 'bar'])
);
sh
php artisan vendor:publish --provider="Label84\TagManager\TagManagerServiceProvider" --tag="config"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.