1. Help Center
  2. Using Campaigns

URL Parameters

In order to use URL Parameters you should be using our hosted form on Anedot. You can use embedded forms but this requires additional coding and adjustments to the iframe code before it will work.

URL Parameters Example

To use URL Parameters, determine what data you'd like to pass to the form, then simply pass it using a link to the browser such as:

https://secure.anedot.com/demo/single-1?amount=5&city=Baton+Rouge&email=johnsmith%40anedot.com&employer=Anedot&first_name=John&last_name=Smith&occupation=Founder&phone=2252501301&state=LA&street=123+Test+St&zip=70808

Notice that before the first parameter entered, you will need to add the "?" symbol and between each consecutive parameter, the "&" symbol will need to be entered.

Action Pages Parameters

  • amount ( `100` - single number to choose default amount)
  • amounts ( `10,25,50,100,250` - number separated list )   
  • city
  • country
  • email
  • embed
  • employer_name
  • first_name
  • last_name
  • line_1
  • line_2
  • nb_election_cycle
  • nb_election_period
  • nb_election_period_ngp_code
  • nb_is_private
  • nb_note
  • nb_recruiter_id
  • nb_recruiter_name_or_email
  • nb_tracking_code_slug
  • occupation
  • phone
  • postal_code
  • region
  • source_code
  • state (accepts state abbreviation; e.g. `LA` not `Louisiana`)
  • street
  • street_2
  • ucampaign_token
  • utm_campaign
  • utm_content
  • utm_medium
  • utm_source
  • utm_term
  • zip

The following aliases are also available for URL params:

  • street => line_1
  • street_2 => line_2
  • zip => postal_code
  • state => region

Custom field URL params are specified by their internal name. Note that you can use a URL parameter to specify and fetch custom field data.

 

Screen Shot 2021-12-22 at 11.38.16 AM

Screen Shot 2021-12-22 at 11.40.13 AM-1

Action Pages — Success Sandbox 2022-01-10 17-04-02

Campaigns Parameters

  • amount ( `100` - single number to choose default amount)   
  • amounts ( `10,25,50,100,250` - number separated list )   
  • callback_url
  • city
  • country
  • email
  • embed
  • employer
  • employer_address
  • employer_city
  • employer_state
  • employer_zip
  • first_name
  • frequency ( `weekly` , `monthly` , `quarterly` , `yearly` )   
  • lang
  • last_name
  • nb_actblue_order_number
  • nb_election_cycle
  • nb_election_period
  • nb_election_period_ngp_code
  • nb_is_private
  • nb_note
  • nb_recruiter_id
  • nb_recruiter_name_or_email
  • nb_tracking_code_slug
  • occupation
  • organization
  • other_amount
  • phone
  • referred_by
  • referrer_to_form
  • rr_id
  • source_code
  • state (accepts state abbreviation; e.g. `LA` not `Louisiana`)   
  • street
  • ucampaign_token
  • utm_campaign
  • utm_content
  • utm_medium
  • utm_source
  • utm_term
  • zip

Custom field URL params are specified using the prefix custom_field_ and the order the field appears on the page. A campaign having two custom fields would set their values using params custom_field_1 and custom_field_2.

Campaigns Notes

Amounts

For the amounts attribute, you can pass a string of numeric values such amounts=10,25,50,100  and it will override all donation option values on the form. 

Important: You must enable the URL Amounts override in Campaign Editor in the Finance section. See below:

 

Callback URL's

ActionPage Callback URLs can utilize tokens to retrieve data. Simply reference the token in the call back url enclosed in double curly braces; (ex: ).

The following tokens are supported in ActionPage call back URLs:

  • address_city
  • address_country
  • address_line_1
  • address_line_2
  • address_postal_code
  • address_region email
  • employer_name
  • donation_ids (will contain an ID for single fund pages or a comma separated list of IDs for multifund)
  • donation_statuses (will contain a status for single fund pages or a comma separated list of statuses for multifund)
  • List order matches ID order for donation_ids)
  • first_name
  • last_name
  • occupation
  • phone
  • total_amount (value is returned in cents) 

    Custom field values are also available by using their key as a token.

The following call back URL example is referencing an ActionPage with a custom field having a key of custom1.

Example: https://afakeurlthatdoesnotexist.com?city=&country=&address_line_1=&address_line_2=&zip=&state=&email=&employer_name=&donation_ids=&donation_statuses=&first_name=&last_name=&occupation=&phone=&total_amount=&custom1=

Source Codes

For tracking different initiatives you may choose to use Source Codes. Learn more about using Source Codes.

Google Tag Manager, Analytics and UTM Codes

Learn more about GTM, Analytics and UTM Codes.