docbrown/config/initializers/ahoy_email.rb
Josh Puetz f6dc638190
Upgrade to Ahoy 2.0.x (#13085)
* First set of changes for Ahoy 2.0

* Fix line length

* Change test

* Remove unused test

* Remove ahoy_messages.opened_at

* Simply digest email sending calculation to not rely on last_opened

* Remove outdated comment

* Fix typo in test

* Rework site config email digest to a single value

* Fix merge duplication

* Remove UTM references from ahoy emails

* Fix credits tests

* Remove UTM from expected email params
2021-04-06 10:12:32 -05:00

5 lines
202 B
Ruby

# enable tracking for open, click and UTM params
AhoyEmail.api = true
AhoyEmail.default_options[:click] = false
AhoyEmail.default_options[:utm_params] = false
AhoyEmail.default_options[:message] = true