shuklajasmin / track
Track package helps you track your every URL. Also, the package delivered to you the number of open rates.
v0.0.2
2024-04-06 18:05 UTC
This package is auto-updated.
Last update: 2025-05-31 10:23:32 UTC
README
A lightweight Laravel package to track whether your sent emails have been opened by embedding a tracking pixel.
Developed by @shuklajasmin
🚀 Installation
Install the package via Composer:
composer require shuklajasmin/track
Run the install command to publish necessary files (migrations, config, etc.):
php artisan shuklajasmin:install
⚙️ Integration
Step 1: Generate Tracking Link
$data = $this->createTrackingLog($recipient, $subject);
$this->subscriber = $data['campaign'];
$this->tracking = $data['tracking'];
Step 2: Add Tracking Pixel to Email
<img
src="{{ route('email.track', ['id' => $subscriber->id, 'campaign' => $subscriber->id]) }}"
width="1"
height="1"
alt="."
/>