Answers.Body: <p>The easiest way to do this (whilst not 100% foolproof) would be to create a special donation page for the link in the email (i.e. separate from the donation page that presumably appears as link and 'proper' page on your website).</p>
  
  <p>Go to <em>Contributions >> New Contribution Page</em> or <em>Administer >> CiviContribute >> Manage Contribution Pages</em>.</p>
  
  <p>Then once your new contribution page is complete, simply copy the URL you get from <strong>Links >> Live Page</strong> into where you have the donate link in your emails. It will look something like <a href="https://your-site.com/civicrm/?page=CiviCRM&amp;q=civicrm/contribute/transact&amp;reset=1&amp;id=2" rel="noreferrer">https://your-site.com/civicrm/?page=CiviCRM&amp;q=civicrm/contribute/transact&amp;reset=1&amp;id=2</a></p>
  
  <p>As long as you don't link to that URL from anywhere else (like a button on your website), it should only ever be used by someone clicking on an email. You can then use a Contribution Report for that particular donation page.</p>
  
  <p>It looks like you may also be able to do it with custom fields and passing URL parameters, but that's more complicated. See this entry in the wiki, from 2014: <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Update+custom+fields+in+contributions+and+events+by+passing+variables+in+a+URL" rel="noreferrer">https://wiki.civicrm.org/confluence/display/CRMDOC/Update+custom+fields+in+contributions+and+events+by+passing+variables+in+a+URL</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-19T16:51:05.160Z
Answers.Text: Thanks for the answers Hugh!  I had considered both these options but hoped there was something simpler I was missing.  I may write an extension to implement the "pass a custom field via URL" technique, but it will handle automatically adding a mailing ID so as to reduce the learning curve for the end user.  Maybe by extending the "Fancy Tokens" extension.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-23T17:38:10.387Z
Answers.Text: Agreed that Hugh's suggestion is likely the intended solution. Jon: I like your ideas around adding extra information to the contribution via a url - if not in a custom field, perhaps by appending something to the contribution source field?  The 'civicampaign' feature is also designed for measuring the success of a campaign, though it's probably too large a sieve for answering the more specific question you're asking.
Answers.UserDisplayName: Alan Dixon
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-23T23:44:22.867Z
Answers.Text: @AlanDixon I'd use the Campaign ID, but many larger organizations use email appeals as part of a larger campaign.  I'd like mailing-specific details.  This also should allow us to correlate folks who clicked through to the donation page from a link but didn't convert.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-02T14:03:38.673Z
Answers.Text: Random thought: assuming click-through are enabled, we could correlate with the contribution date/time? ex: for each click, if the contact has a contribution in the same day, count the revenue towards that mailing. Caveat: assumes working deduping.
Answers.UserDisplayName: bgm
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-19T04:02:33.250Z
Answers.LastActivityDate: 2018-01-19T04:08:41.790Z
Answers.LastEditDate: 2018-01-19T04:08:41.790Z
Answers.UserDisplayName: Hugh
Body: <p>I know that I can see who clicked through on the "donate" link on an email - but I don't see a way to check if the donation was made as part of that interaction.</p>
  
  <p>Is there a way to determine this?</p>
  
Tags: <civimail><contribution-page>
Title: How can I track donations made as a result of a particular email?
ThreadText: # How can I track donations made as a result of a particular email?
  
  (Asked by: username_0 on 2018-01-16)
  
  I know that I can see who clicked through on the "donate" link on an email - but I don't see a way to check if the donation was made as part of that interaction.
  
  Is there a way to determine this?
  
  **Tags:** civimail, contribution-page
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-01-19. Score: 4
  
  The easiest way to do this (whilst not 100% foolproof) would be to create a special donation page for the link in the email (i.e. separate from the donation page that presumably appears as link and 'proper' page on your website).
  
  Go to *Contributions >> New Contribution Page* or *Administer >> CiviContribute >> Manage Contribution Pages*.
  
  Then once your new contribution page is complete, simply copy the URL you get from **Links >> Live Page** into where you have the donate link in your emails. It will look something like <https://your-site.com/civicrm/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=2>
  
  As long as you don't link to that URL from anywhere else (like a button on your website), it should only ever be used by someone clicking on an email. You can then use a Contribution Report for that particular donation page.
  
  It looks like you may also be able to do it with custom fields and passing URL parameters, but that's more complicated. See this entry in the wiki, from 2014: <https://wiki.civicrm.org/confluence/display/CRMDOC/Update+custom+fields+in+contributions+and+events+by+passing+variables+in+a+URL>
  
  > **Comments:**
  > **username_0**: Thanks for the answers username_1!  I had considered both these options but hoped there was something simpler I was missing.  I may write an extension to implement the "pass a custom field via URL" technique, but it will handle automatically adding a mailing ID so as to reduce the learning curve for the end user.  Maybe by extending the "Fancy Tokens" extension.  
  > **username_2**: Agreed that username_1's suggestion is likely the intended solution. Jon: I like your ideas around adding extra information to the contribution via a url - if not in a custom field, perhaps by appending something to the contribution source field?  The 'civicampaign' feature is also designed for measuring the success of a campaign, though it's probably too large a sieve for answering the more specific question you're asking.  
  > **username_0**: @username_2 I'd use the Campaign ID, but many larger organizations use email appeals as part of a larger campaign.  I'd like mailing-specific details.  This also should allow us to correlate folks who clicked through to the donation page from a link but didn't convert.  
  > **username_3**: Random thought: assuming click-through are enabled, we could correlate with the contribution date/time? ex: for each click, if the contact has a contribution in the same day, count the revenue towards that mailing. Caveat: assumes working deduping.  
  
  ---
  
  