Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add params to campaign memberships #50

Open
joshuap opened this issue Feb 27, 2020 · 1 comment
Open

Add params to campaign memberships #50

joshuap opened this issue Feb 27, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@joshuap
Copy link
Member

joshuap commented Feb 27, 2020

Given a campaign TrialConversionCampaign, I want to be able to specify a trial end date when adding users to campaigns, so that I can reference the date in campaign emails (i.e. "Your trial is ending on 2020-02-26"). These values are unique to each user in the campaign, but may not be persisted on the user object--in this case, the value is part of an event that is triggering the campaign for the user. It would be nice to be able to add/override params like this:

TrialConversionCampaign.add(user, params: {
  ending_on: "2020-02-26"
})

I think this could be accomplished by adding a params jsonb/hstore/etc. column to the heya_campaign_memberships table. A nice extra would be to transparently support Global IDs for referencing objects.

@joshuap joshuap added the enhancement New feature or request label Feb 27, 2020
@marckohlbrugge
Copy link

marckohlbrugge commented Oct 31, 2024

+1

I have a similar need. When a customer's payment fails, I add them to a PaymentDeclinedCampaign which starts sending them emails asking to update their payment details.

When triggering the campaign, I have access to a specific "update billing details" for the failed invoice. I don't have (easy) access to this elsewhere in the code. Being able to pass in this URL to the campaign would be very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants