Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Dynamically set the variations when split testing emails #300

Open
hraynaud opened this issue Jun 14, 2016 · 2 comments
Open

Dynamically set the variations when split testing emails #300

hraynaud opened this issue Jun 14, 2016 · 2 comments

Comments

@hraynaud
Copy link

Is there a way to dynamically provide the "subject line" variations. My allows users to provide the variations at runtime.

@phillbaker
Copy link
Collaborator

@hraynaud can you give an example of what you're looking for? Not quite sure I understand.

An example of testing email subject lines is here: http://vanity.labnotes.org/email.html#subject.

@hraynaud
Copy link
Author

@phillbaker Thanks for getting back to me. I believe this issue, #269 is more or less what I'm trying to achieve. My application allows an administrator to create emails on-the-fly( using a normal html form) that goes out to users associated with their account. I'd like to offer admins the ability to A/B test two subject lines when sending out emails.

As I understand the way vanity works I must hardcode the subject variations

ab_test "Invite subject" do
    description "Optimize invite subject line"
    alternatives "Join now!", "You're invited to an exclusive event."
    metrics :open
end

there is no way to do something like ...

ab_test "Invite subject" do
    description "Optimize invite subject line"
    alternatives AdminUser.find(1).subject_lines #pseudocode returning comma delim string.
    metrics :open
end

I hope this clarifies what I'm trying to do.

thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants