Testing CTAs on emails

23 views
Skip to first unread message

Diego Caliri

unread,
Nov 11, 2013, 3:27:35 PM11/11/13
to split...@googlegroups.com
I want to test both subjects and CTAs (Call to Action) on emails using Split.

As I couldn't use the same helpers we use on views. I made this approach:

    experiment = Split::Experiment.find_or_create 'Feedback CTA', t('registration_mailer.after_event.cta1'), t('registration_mailer.after_event.cta2'), t('registration_mailer.after_event.cta3')
    @trial = Split::Trial.new(experiment: experiment)
    @trial.choose!
    @cta_text = @trial.alternative.name

Then in the view I just use @cta_text of course and send that value as a param in the link on the CTA.

To mark a conversion I went to the controller and made this:

    cta_trial = Split::Trial.new(:experiment => Split::Experiment.find("Feedback CTA"))
    cta_trial.alternative = params[:cta]
    cta_trial.complete!

It seems to be working thou I'm not convinced if it's the correct or best way to do it.

Any thoughts on this? Should I have problems also with different locales?

Thanks




Andrew Nesbitt

unread,
Nov 24, 2013, 6:53:52 PM11/24/13
to Diego Caliri, split...@googlegroups.com
This seems like the best way to do it at the moment, trying to handle the idea of a session in an email makes it kinda messy what ever way you work it. Multiple languages look ok here as far as I can tell as well.


--
You received this message because you are subscribed to the Google Groups "Split Rubygem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to split-ruby+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages