PHP code example of marshmallow / marketing-data-tracker

1. Go to this page and download the library: Download marshmallow/marketing-data-tracker 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/ */

    

marshmallow / marketing-data-tracker example snippets


use Marshmallow\MarketingData\Fields\MarketingDataFields;

$this->getMarketingDataFields(
    with_utm_data: true,
    with_google_ids: true,
    with_all_data: false,
    with_raw_data: true
),


    use Marshmallow\MarketingData\Traits\HasMarketingParameters;

    $model->setUtmSourceData(forget: false);
bash
php artisan vendor:publish --tag="marketing-data-tracker-migrations"
php artisan migrate