README.md in ahoy_email-0.2.0 vs README.md in ahoy_email-0.2.1
- old
+ new
@@ -114,13 +114,24 @@
<a data-skip-utm-params="true" href="...">Break it down</a>
```
## Customize
+### Tracking
+
+Skip tracking of attributes by removing them from your model. You can safely remove:
+
+- to
+- mailer
+- subject
+- content
+
+### Configuration
+
There are 3 places to set options. Here’s the order of precedence.
-### Action
+#### Action
``` ruby
class UserMailer < ActionMailer::Base
def welcome_email(user)
# ...
@@ -128,19 +139,19 @@
mail to: user.email
end
end
```
-### Mailer
+#### Mailer
```ruby
class UserMailer < ActionMailer::Base
track utm_campaign: "boom"
end
```
-### Global
+#### Global
```ruby
AhoyEmail.track open: false
```
@@ -178,9 +189,16 @@
Disable tracking for an email
```ruby
track message: false
+```
+
+Or specific actions
+
+```ruby
+track only: [:welcome_email]
+track except: [:welcome_email]
```
Or by default
```ruby