CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Tokens and ClickThru Encoding
Pages: [1]

Author Topic: Tokens and ClickThru Encoding  (Read 2035 times)

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Tokens and ClickThru Encoding
June 06, 2013, 08:00:30 am
I've noticed something odd, and in my case unfortunate about the way civimail processes tokens. 

Apparently the token processing happens AFTER the code which creates the click-thru tracking links.   As a result, if a link is provided by a token, the link isn't set up for click-thru tracking. In my case this is really problematic because we use some custom tokens to pull content for the newsletter.  Content we'd love to be able to track click -thrus on.

I've replicated this on demo and left the troubling test here: http://drupal.demo.civicrm.org/civicrm/mailing/send?mid=7&continue=true&reset=1

Here's the summery  of what you'd find if you went to that mailing.

The HTML for the mailing is just:
Code: [Select]
{mailing.viewUrl}

http://www.civicrm.org

The source of the mailing preview is:
Code: [Select]
<p>http://drupal.demo.civicrm.org/civicrm/mailing/view?reset=1&id=7</p>

<p><a href='http://drupal.demo.civicrm.org/sites/drupal.demo.civicrm.org/modules/civicrm/extern/url.php?u=5&qid='>http://www.civicrm.org</a></p>

Notice that the first link, which comes from the viewURL token is not run through url.php, but the other, which I hand entered is.

Any thing that can be done to correct this? 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Tokens and ClickThru Encoding

This forum was archived on 2017-11-26.