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) »
  • click tracking of personalised emails: not working on purpose?
Pages: [1]

Author Topic: click tracking of personalised emails: not working on purpose?  (Read 533 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
click tracking of personalised emails: not working on purpose?
November 21, 2014, 10:24:45 am
Hi,

I sent an email with a link to a webform /webform/name?cid1={$contact.contact_id}&{$contact.checksum} and tracked click through. the only tracked links are the "static" ones, but the personalised ones aren't tracked. Is this normal or waiting for a fix?

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: click tracking of personalised emails: not working on purpose?
November 21, 2014, 10:27:13 am
As far as I can tell, links that use tokens do not ever get rewritten. That's probably a good thing.
Try asking your question on the new CiviCRM help site.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: click tracking of personalised emails: not working on purpose?
November 24, 2014, 01:11:24 am
Well the fact that you can't track the amount of clicks on your personalised webform or profile it is not a good thing.

I know that it is not a trivial fix since I've brought it up before and Lobo told me so.  Not sure of the details why.

Quote
waiting for a fix?

At least one person has been waiting for a fix for a while :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: click tracking of personalised emails: not working on purpose?
November 24, 2014, 05:08:40 am
An option (workaround?) might be to have
1) a {mailing.track} that generates the whatever params needed for the tracking code
2) modify the routing code to check if the tracking params exist on the url and call the tracking code (without redirecting)

If we were to go all smart, we could as well not to rewrite the urls that point to civicrm when tracking is enabled and directly add the tracking code

and more generally, we might want to use something else than civi to track the clicks (eg google analytics). It has the trick of tacking into account extra params in the url, we might want to move to a similar syntax so those that use google analytics on their civi install can track from both google and civi?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: click tracking of personalised emails: not working on purpose?
November 24, 2014, 06:32:41 am
Quote
If we were to go all smart, we could as well not to rewrite the urls that point to civicrm when tracking is enabled and directly add the tracking code
That would be way too smart for the likes of us.

Quote
we might want to use something else than civi to track the clicks
Do I sense a new X+ extension coming up?
Try asking your question on the new CiviCRM help site.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: click tracking of personalised emails: not working on purpose?
November 24, 2014, 08:44:55 am
Trying to figure out how to track the url.

For google, what they have is
Campaign Source (utm_source)
   Required. Use utm_source to identify a search engine, newsletter name, or other source.
Example: utm_source=google

Campaign Medium (utm_medium)
   Required. Use utm_medium to identify a medium such as email or cost-per- click.
Example: utm_medium=cpc

Campaign Term (utm_term)
   Used for paid search. Use utm_term to note the keywords for this ad.
Example: utm_term=running+shoes

Campaign Content (utm_content)
   Used for A/B testing and content-targeted ads. Use utm_content to differentiate ads or links that point to the same URL.
Examples: utm_content=logolink or utm_content=textlink

Campaign Name (utm_campaign)
   Used for keyword analysis. Use utm_campaign to identify a specific product promotion or strategic campaign.
Example: utm_campaign=spring_sale

So might go for something like
example.org/civicrm/profile/edit?utm_source=civimail&utm_medium=email&utm_content=1234&utm_campaign=42&cid=1234&gid=2&cs=dfgpin4

so {mailing.track} expends to
utm_source=civimail&utm_medium=email
&utm_content= contact Id & utm_campaign= mailing id


quite a lot of duplication between the params for the profile/event registration/contribution and tracking, but given that each profile/event registration/contribution/webform url is likely to have different get param (eg. cid or contact_id or contactid id or cid1) not sure I can avoid it.


-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • click tracking of personalised emails: not working on purpose?

This forum was archived on 2017-11-26.