Answers.Body: <p>One of our clients has done something similar to this answer:</p>
  
  <ul>
  <li><a href="https://civicrm.stackexchange.com/questions/4899/how-can-i-pass-in-the-contribution-amount-via-url/4901">How can I pass in the contribution amount via URL?</a></li>
  </ul>
  
  <p>but using a campaign selector or a custom field on the contribution page. Not sure from memory whether they did it with JS or Smarty, but the end result was an invisible field which tracked this.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-22T22:11:49.653Z
Answers.LastActivityDate: 2015-10-22T22:11:49.653Z
Answers.LastEditDate: 2017-04-13T12:53:13.017Z
Answers.UserDisplayName: Chris Burgess
Body: <p>If I add this to the inbound link: <a href="https://mysite.org/civicrm/contribute/transact?reset=1&amp;id=1&amp;" rel="nofollow">https://mysite.org/civicrm/contribute/transact?reset=1&amp;id=1&amp;</a><strong>source=facebookcampaign123</strong></p>
  
  <p>Will my source addendum be added to the contribution record?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-22T21:16:13.363Z
Comments.Text: did you test this? what was the outcome?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-23T22:27:34.693Z
Comments.Text: it did not work. as Cheis Burgess notes below, this can be done with JavaScript- but only if it fills a different custom field.
Comments.UserDisplayName: Cullen McGough
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-23T22:36:09.560Z
Comments.Text: You can add 'campaign' as a profile used for Contributions. So i don't think you need a custom field per se. Just the js solution chris suggests.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-24T00:09:37.680Z
Comments.Text: yeah- sadly I'm already using "campaign" for a higher level of organization. for example, a fundraising campaign (let's call it End of Year Giving) might share the same mailing list of targets but have at least three four inbound sources: direct mail response, one of several emails in a series, a Facebook campaign and a radio promotion. tracking everything is probably impossible, but it's important for me to know if a gift resulted from email #1, 2 or 3... or from some other online source.
Comments.UserDisplayName: Cullen McGough
Tags: <civicontribute>
Title: What's the right way override the default source on a contribution page?
ThreadText: # What's the right way override the default source on a contribution page?
  
  (Asked by: username_0 on 2015-10-22)
  
  If I add this to the inbound link: <https://mysite.org/civicrm/contribute/transact?reset=1&id=1&>**source=facebookcampaign123**
  
  Will my source addendum be added to the contribution record?
  
  **Tags:** civicontribute
  
  > **Comments:**
  > **username_1**: did you test this? what was the outcome?  
  > **username_0**: it did not work. as Cheis username_2 notes below, this can be done with JavaScript- but only if it fills a different custom field.  
  > **username_1**: You can add 'campaign' as a profile used for Contributions. So i don't think you need a custom field per se. Just the js solution username_2 suggests.  
  > **username_0**: yeah- sadly I'm already using "campaign" for a higher level of organization. for example, a fundraising campaign (let's call it End of Year Giving) might share the same mailing list of targets but have at least three four inbound sources: direct mail response, one of several emails in a series, a Facebook campaign and a radio promotion. tracking everything is probably impossible, but it's important for me to know if a gift resulted from email #1, 2 or 3... or from some other online source.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-10-22. Score: 1
  
  One of our clients has done something similar to this answer:
  
  * [How can I pass in the contribution amount via URL?](https://civicrm.stackexchange.com/questions/4899/how-can-i-pass-in-the-contribution-amount-via-url/4901)
  
  but using a campaign selector or a custom field on the contribution page. Not sure from memory whether they did it with JS or Smarty, but the end result was an invisible field which tracked this.
  
  
  ---
  
  