MozillaZine

How to add subject to HTML with a Thunderbird extension?

Talk about add-ons and extension development.
nxkryptor
 
Posts: 1
Joined: February 7th, 2019, 10:03 pm

Post Posted February 7th, 2019, 10:12 pm

I am trying to create an email tracking addon based on Google Analytics as discussed here [https://dyn.com/blog/tracking-email-opens-via-google-analytics/]. I need to modify the script such that the subject line of the email message is added to the Google Analytics URL, which is given below:

<img src="http://www.google-analytics.com/collect?v=1&tid=UA-12345678-1
&cid=CLIENT_ID_NUMBER&t=event&ec=email&ea=open
&el=recipient_id&cs=newsletter&cm=email&cn=CAMPAIGN_NAME">

I would like the CAMPAIGN_NAME to be a combination of the email subject in the email message and if possible the message number (i.e. in an email with multiple replies the position of the message). Can this be done in Thunderbird?

That is to say, I need to track the subject and reply separately in Google Analytics. Is this possible?

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 4 guests