Skip to content

[WEBSITE-723] Remove tracking from Personal emails sent by automations - #85

Merged
zackkatz merged 1 commit into
developfrom
feature/website-723-personal-untrack
Dec 4, 2026
Merged

zackkatz merged 1 commit into
developfrom
feature/website-723-personal-untrack

Conversation

@zackkatz

@zackkatz zackkatz commented Dec 4, 2026

Copy link
Copy Markdown
Member

The live test of the Personal template from an automation arrived with no footer or unsubscribe link, but the open-tracking pixel was still there and the docs link went through www.gravitykit.com?ns_url=…. Personal emails sent by automations now have no pixel and their links point straight at the real URL, as campaign and one-off Personal emails already did.

For review: the restore only touches links whose short code is in fc_url_stores and whose stored URL is not a Smart Link. Check that a Personal email can't lose a link FluentCRM needs to redirect.

Part of WEBSITE-723

What changed

  • Automation emails are queued by FunnelCampaign::subscribe(), which adds click tracking at queue time from the cached site-wide fluentcrmTrackClicking() and marks the body parsed. fluentcrm_email_body_text never runs for them, so [WEBSITE-723] Add a Personal email template so founder emails don't look like marketing #83's tracking switch never applied.
  • PersonalTemplate::render() now:
    • sets the campaign's open_tracker / click_tracker to no in memory. CampaignEmail::getEmailBody() reads $campaign->getOpenTrackingStatus() on that same object after the template renders, to decide the pixel.
    • swaps each href with ns_url=<short> back to the URL stored for that short code (UrlStores::getRowByShort()). Unknown codes and Smart Links (smart_url) stay tracked.
  • AGENTS.md: the two send paths and where each one's tracking is removed.

Blast radius

  • Touches: PersonalTemplate (added in [WEBSITE-723] Add a Personal email template so founder emails don't look like marketing #83; internal). Reads FluentCRM's UrlStores::getRowByShort(), present in 3.3.1 (production) and 3.3.5.
  • Used by: none outside fluent-crm-custom-features (used-by.sh, 0 hits for gk_personal).
  • Customer code: none found (IntelliKit threads, 0 conversations).
  • Docs: none (IntelliKit website, 0 matches).
  • Risk: Contained. Only emails using the Personal template change.

Release: none (internal gravitykit.com plugin; customers don't install it).

Tests

  • php84 vendor/bin/phpunit: 250 tests pass; the email tests also on PHP 7.4. Removing the link restore fails its test.
  • Local site, FluentCRM 3.3.5, emails queued the way an automation does (FunnelCampaign::processAndSubscribe()) and sent through Mailer::send(), captured in Mailpit. Both queued bodies had ns_url links before sending.
Simple Boxed Personal
List-Unsubscribe header yes none
Open pixel yes none
Click-tracking links yes none (href="https://www.gravitykit.com/docs/")
Footer and unsubscribe link yes none
  • After deploy: one Personal email from a temporary automation on production.

Abilities: none. Internal site plumbing.

The live automation test of the Personal template arrived with no footer or unsubscribe link but with the open pixel and its links rewritten through click tracking. Automation emails are queued by FunnelCampaign::subscribe(), which adds click tracking right then from the cached site-wide setting and marks the body parsed, so the fluentcrm_email_body_text filter never runs for them. The template's render hook now swaps each ns_url link back to the URL FluentCRM stored for it (Smart Links stay tracked, since they only work through the redirect) and turns off open tracking on the campaign before FluentCRM adds the pixel.

Part of WEBSITE-723.
@linear-code

linear-code Bot commented Dec 4, 2026

Copy link
Copy Markdown

WEBSITE-723

@coderabbitai

coderabbitai Bot commented Dec 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: e79b32fe-6569-4577-836b-9225468fa7bc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@zackkatz
zackkatz merged commit a2c641a into develop Dec 4, 2026
2 checks passed
@zackkatz
zackkatz deleted the feature/website-723-personal-untrack branch December 4, 2026 04:58
@zackkatz zackkatz mentioned this pull request Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant