{"id":20481182,"url":"https://github.com/st0yanov/action_mailer_pixel","last_synced_at":"2026-03-06T12:03:05.280Z","repository":{"id":56842036,"uuid":"154047626","full_name":"st0yanov/action_mailer_pixel","owner":"st0yanov","description":"Tracks email open rate by including a tracking pixel in the message body.","archived":false,"fork":false,"pushed_at":"2018-10-21T20:25:56.000Z","size":33,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-27T20:27:03.355Z","etag":null,"topics":["action-mailer","ruby","ruby-on-rails","rubygem"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/st0yanov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-21T20:06:31.000Z","updated_at":"2024-06-12T13:58:00.000Z","dependencies_parsed_at":"2022-09-01T09:02:48.757Z","dependency_job_id":null,"html_url":"https://github.com/st0yanov/action_mailer_pixel","commit_stats":null,"previous_names":["st0yanov/action_mailer_pixel","veskoy/action_mailer_pixel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/st0yanov/action_mailer_pixel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st0yanov%2Faction_mailer_pixel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st0yanov%2Faction_mailer_pixel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st0yanov%2Faction_mailer_pixel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st0yanov%2Faction_mailer_pixel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/st0yanov","download_url":"https://codeload.github.com/st0yanov/action_mailer_pixel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st0yanov%2Faction_mailer_pixel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30175907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T11:48:51.886Z","status":"ssl_error","status_checked_at":"2026-03-06T11:48:51.460Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action-mailer","ruby","ruby-on-rails","rubygem"],"created_at":"2024-11-15T16:07:17.744Z","updated_at":"2026-03-06T12:03:05.261Z","avatar_url":"https://github.com/st0yanov.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# ActionMailerPixel\nActionMailerPixel allows you to easily track your mailers' open rate.\n\n## How it works\nWhen you enable the open tracking pixel on a mailer, a simple **img** tag will be inserted right before the closing body tag upon delivery. The source of the image tag leads to the /open.png path wherever you mounted the engine in your application. The response is a 1x1px transparent PNG image. When the email is opened by an email client, the pixel might get rendered (depending on the security/privacy settings) and the opening will be saved. Open rate is tracked by user and by email campaign. This way you can see exactly who opened a specific email.\n\n## Usage\n**1. Default (convention over configuration)** - pixel is created with the first available of the following:\n- *@user* -\u003e *params[:user]* -\u003e *recipient_class.find_by(email: message.to.first)*\n- *@campaign* -\u003e *params[:campaign]*\n```ruby\nclass PixelMailer \u003c ApplicationMailer\n  open_tracking_pixel\n\n  def sample\n    mail(to: 'recipient@example.com')\n  end\nend\n```\n\n**2. Explicit use** - pixel is created with the provided data\n```ruby\nclass PixelMailer \u003c ApplicationMailer\n  open_tracking_pixel recipient: -\u003e { params[:user] },\n                      campaign:  -\u003e { params[:campaign] }\n\n  def sample\n    mail(to: 'recipient@example.com')\n  end\nend\n```\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'action_mailer_pixel'\n```\n\nAnd then execute:\n```bash\n$ bundle\n$ bundle exec rails action_mailer_pixel:install:migrations\n$ bundle exec rails db:migrate\n$ bundle exec rails action_mailer_pixel:install\n```\n\nMount the engine on a path of choice in **config/routes.rb**:\n```ruby\nmount ActionMailerPixel::Engine =\u003e '/action_mailer_pixel'\n```\n\n## Contributing\nContributions are welcome.\n\n## License\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst0yanov%2Faction_mailer_pixel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fst0yanov%2Faction_mailer_pixel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst0yanov%2Faction_mailer_pixel/lists"}