Displaying 1 result from an estimated 1 matches for "campaign_group".
2013 Jun 06
1
Introducing MailJack: autogenerate querystring parameters that are appended to links in your emails
...''s what the configuration looks like
MailJack.config do |config|
config.mailers = [:user_notifier]
config.href_filter = /#{MyApp::Application.config.host}/
config.encode_to = :utm_source
config.trackable do |track|
track.campaign = lambda{|mailer| mailer.action_name}
track.campaign_group = lambda{|mailer| mailer.class.name}
end
end
So, *mailers* are your mailer classes that you want to track in underscore
notation. *Href_filter* is a regex that will be used to match hrefs in the
body of your email. This is useful so you don''t append parameters to links
that go...