Track package helps you track your every URL. Also, the package delivered to you the number of open rates.

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

pkg:composer/shuklajasmin/track

v0.0.2 2024-04-06 18:05 UTC

This package is auto-updated.

Last update: 2025-12-31 00:24:20 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="." 
/>