jdavidbakr / mail-tracker

Package for Laravel to inject tracking code into outgoing emails.
MIT License
562 stars 129 forks source link

Nothing tracked #219

Closed randohinn closed 6 months ago

randohinn commented 1 year ago

I am using this package on a brand new system after using it in 2021 on an older system. The new one is a rewrite of the old one and this package worked great in the 2021 system.

Require dependencies are

 "require": {
        "php": "^8.1",
        "blade-ui-kit/blade-ui-kit": "^0.4",
        "dokobit/gateway-php-sdk": "^1.3",
        "firebase/php-jwt": "^6.3",
        "guzzlehttp/guzzle": "^7.5",
        "jdavidbakr/mail-tracker": "^7.0",
        "lab404/laravel-impersonate": "^1.7",
        "laravel/framework": "^10.4",
        "laravel/sanctum": "^3.2",
        "laravel/tinker": "^2.8",
        "laravelcollective/html": "^6.4",
        "league/flysystem-aws-s3-v3": "^3.0",
        "livewire/livewire": "^2.11",
        "messente/messente-api-php": "^2.0",
        "romanzipp/laravel-queue-monitor": "^2.3",
        "spatie/browsershot": "^3.57",
        "spatie/laravel-comments": "^1.4",
        "spatie/laravel-comments-livewire": "^1.3",
        "spatie/laravel-ignition": "^2.0",
        "spatie/laravel-medialibrary": "^10.7",
        "spatie/laravel-menu": "^4.1",
        "spatie/laravel-query-builder": "^5.1",
        "stancl/tenancy": "^3.7",
        "staudenmeir/belongs-to-through": "^2.13",
        "symfony/intl": "^6.2",
        "verumconsilium/laravel-browsershot": "^1.3"
    },

The outgoing links all have the tracking redirect in them, but absolutely nothing ever gets logged. No views, no clicks.. Has something happened in the world of email clients or am I missing something?

jdavidbakr commented 1 year ago

Can you do some testing maybe with MailTrap or another browser email client? You should see the requests for the tracking pixels in the network activity of the browser and might get a clue as to why it's not getting to the application. Gmail is not a good test as they proxy the pixel requests so it's hard to see what's happening.

randohinn commented 1 year ago

Can you do some testing maybe with MailTrap or another browser email client? You should see the requests for the tracking pixels in the network activity of the browser and might get a clue as to why it's not getting to the application. Gmail is not a good test as they proxy the pixel requests so it's hard to see what's happening.

My local dev VM has Beyond Code's HELO as the mail server and client for testing and even clicks from there are not being logged :/

jdavidbakr commented 1 year ago

Is there a way for you to see what requests are being made for the link tracks? That's the first step. Either the tracking links are not being injected, or the requests are being blocked - we would need to know which it is to do any sort of troubleshooting.