ItzNotABug / ghosler

Send newsletter emails to your Ghost CMS subscribers & members, using your own email credentials!
Apache License 2.0
41 stars 5 forks source link

Post Content Link Tracking #8

Closed ItzNotABug closed 6 months ago

ItzNotABug commented 7 months ago

This PR adds the ability to track URL clicks in the email. We use a redirect logic to do the tracking.

What links are tracked -

  1. All links directing to sites outside the Ghost domain are fully tracked, providing insights into user interaction with external content.

  2. Partial support for for Internal Ghost Domain Links

    • Excluded:
      • URL of/in the Featured Image and its caption (if found).
      • URLs that navigate the user to current post (View in browser), comments section, subscription page, unsubscribe page.
    • Supported:
      • Inter-article links, including those within the body of the article and in the "Keep Reading" section, are fully supported and tracked.

Limitation -

URLs are tracked using a redirect logic so if your server hosting Ghosler goes down or is not available when someone clicks a URL, the redirection would fail & the URL won't go to the actual destination.

ItzNotABug commented 7 months ago

An updated README.md highlighting this feature would also be a good idea I guess.

emanborg commented 1 month ago

I'm hosting ghosler and mailserver in intranet, so newsletters are being sent using the server's internal IP instead. (the tracking url ends up with http://192.168.100.20 instead of the public url. Shall I edit the config file manually using external IP or you suggest something else?