要跟踪邮件是否打开或单击,我正在使用 ahoy_email。
类 UserMailer < ApplicationMailer track utm_campaign: "boom" default from: 'myemailid'
def welcome_email(user)
@user = user
@url = 'linkofmywebsite'
track user: user
mail(to: @user.email, subject: 'Welcome to My Site')
end
打开工作正常,但即使在我单击电子邮件中的链接后,单击表中仍显示 nil。对这个问题有任何想法吗?