Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'd like to track users that clicks the "returning link" using google analytics.
I thought it should be enough to add the campaign' string ?utm_source=account_remainder&utm_medium=email&utm_campaign=account_remainder
to the !login_url
variable in the email body. Is this correct? Will it be rendered in a right way? I'm not sure how to test this.
Thanks.
Comments
Comment #1
jaydub CreditAttribution: jaydub commentedI'm not sure that will work for the Drupal 6 version. Right now I am getting the Drupal 7 version ready and your suggested method works fine there since the patterns in the email have changed in Drupal7 from the form !login_url to the form [user:site-login] which is a result of token support getting into Drupal core.
Let me get back to this after the drupal 7 work is done.
Comment #2
jaydub CreditAttribution: jaydub commentedComment #3
jaydub CreditAttribution: jaydub commentedI verified that adding the query string to the d7 version of the token replacement pattern (in this case [user:site-login]) works as intended. Setting issue back to drupal 6 to test there later.