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

jaydub’s picture

Assigned: Unassigned » jaydub

I'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.

jaydub’s picture

Version: 6.x-1.2 » 7.x-1.x-dev
jaydub’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

I 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.