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) »
  • Tweet this button does not work with CiviMail?
Pages: [1]

Author Topic: Tweet this button does not work with CiviMail?  (Read 964 times)

Gregorio

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: using 3.4 demo
  • CMS version: joomla 1.5
  • MySQL version: Mysql v.5.0.83
  • PHP version: PHP v. 5.2.9
Tweet this button does not work with CiviMail?
June 08, 2012, 06:54:11 pm
Hi there,

I would like to use the 'tweeter this' button in my email. I am following the instructions that Twitter people are providing:
http://www.campaignmonitor.com/blog/post/3489/how-to-add-a-tweet-this-link-to-your-email-or-webpage/

The implementation is not the issue. Once I am ready with  the template and the button, I send the TEST mail and  the link "Tweet this button" or in my case the button (image) itself  does not work at all. I am testing it on Gmail and Hotmail and both recognise it as an link when mousing over. However it does not make any action when clicking on it.

Important: I have tested same HTML template with the same tweeter button with Gmail and... surprise!!!! The Twitter button works on my hotmail and gmail. So, it must be something weird that CiviCRM or CiviMail makes with the link?

Please I need help with this! Any suggestion? Is it possible that the tracking code that CiviCRM for the click throughs is making the tweeter button not working properly? If so, how could I manage to keep the tracking code and make the tweeter button work?

PS: Facebook share button works fine

Thanks a lot for your help!!!!!!
« Last Edit: June 08, 2012, 07:03:38 pm by Gregorio »

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Tweet this button does not work with CiviMail?
June 08, 2012, 07:31:37 pm
Quote from: Gregorio on June 08, 2012, 06:54:11 pm
Please I need help with this! Any suggestion? Is it possible that the tracking code that CiviCRM for the click throughs is making the tweeter button not working properly? If so, how could I manage to keep the tracking code and make the tweeter button work?
Have you tried turning 'clickthrough' off on screen 2 of civimail?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Gregorio

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: using 3.4 demo
  • CMS version: joomla 1.5
  • MySQL version: Mysql v.5.0.83
  • PHP version: PHP v. 5.2.9
Re: Tweet this button does not work with CiviMail?
June 09, 2012, 03:40:43 am
Yes, I have. I gave a try before going to bed last night and the Tweeter button worked. However, I need the tweeter buttons (many) to be tracked.

Any idea how to make it work? Thanks  a lot! Really!



 

Gregorio

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: using 3.4 demo
  • CMS version: joomla 1.5
  • MySQL version: Mysql v.5.0.83
  • PHP version: PHP v. 5.2.9
Re: Tweet this button does not work with CiviMail?
June 10, 2012, 01:27:45 am
Hi,

Part of the issue is sorted out when encoding part of url of the "tweeter button". However, the problem is still there.

Basically, this is an example code of a "tweet this" button. As said before, this link wouldn't make any action when sent  through CiviMail with enabled click-throughs.

Code: [Select]
<a href="http://twitter.com/intent/tweet?url=http://campaignmonitor.com/blog&text=I love the Campaign Monitor blog!&via=campaignmonitor&related=yarrcat" target="_blank">Tweet This button</a>

Enconding part of the URL would look like this and would open the Tweet box but, wouldn't copy the content of the tweet into the tweet box.... so the main purpose of this fuctionality wouldn't still work:
Code: [Select]
<a href="http://twitter.com/intent/tweet?url=http%3A%2F%2Fcampaignmonitor.com%2Fblog%26text%3DI%20love%20the%20Campaign%20Monitor%20blog!%26via%3Dcampaignmonitor%26related%3Dyarrcat" target="_blank">Tweet This button</a>

Any suggestion how to make this work?
Work around? Is there anyway to say to CiviMail: do not track this specific urls? So, I could track it with ganalytics....

Regards and Thanks!


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Tweet this button does not work with CiviMail?
June 10, 2012, 07:52:58 am

1. CiviMail cannot track specific urls, its either all or nothing :(

2. Most likely there is an issue with the way CiviCRM stores the url and then expands it when the link is clicked. Your best bet would be to check and debug that code. The relevant files are:

CRM/Mailing/BAO/TrackableURL.php - to encode and store the url
extern/url.php - when a link is clicked

If you do patch it, please file an issue along with a patch so others can benefit

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Tweet this button does not work with CiviMail?

This forum was archived on 2017-11-26.