Skip to content

[MKT-737]:feat/integrate Klaviyo subscription when creating Send links#945

Open
jaaaaavier wants to merge 3 commits intomasterfrom
feat/tracking-service-for-send
Open

[MKT-737]:feat/integrate Klaviyo subscription when creating Send links#945
jaaaaavier wants to merge 3 commits intomasterfrom
feat/tracking-service-for-send

Conversation

@jaaaaavier
Copy link
Contributor

This PR introduces the integration with Klaviyo for the Send feature. It ensures that whenever a user creates a Send link, the sender's email is automatically subscribed to a specific Klaviyo list.

Key Changes:

  • NewsletterService: Modified the subscribe method to accept an optional listId parameter, making it reusable to subscribe users to different Klaviyo lists using the newly assigned resolvedListId.

  • Configuration updates: Added klaviyo.sendListId to the configuration, retrieving the list ID dynamically from the .env
    (using the variable KLAVIYO_SEND_LIST_ID).

  • SendUseCases tracking integration: Integrated the NewsletterService into the createSendLinks use case. The subscription call is executed as a fire-and-forget background task (with .catch), ensuring it does not block the link creation process or affect performance if Klaviyo is unreachable.

@jaaaaavier jaaaaavier self-assigned this Feb 25, 2026
@jaaaaavier jaaaaavier added the enhancement New feature or request label Feb 25, 2026
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 25, 2026

title: 'title',
subject: 'subject',
expirationAt: new Date(),
hashedPassword: 'hashed',

Check failure

Code scanning / SonarCloud

Credentials should not be hard-coded High test

Review this potentially hard-coded password. See more on SonarQube Cloud
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats a false positive

@jaaaaavier jaaaaavier marked this pull request as ready for review February 25, 2026 12:25
@github-actions
Copy link

This PR is stale because it has been open for more than 15 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ready-for-preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant