AFL UTM Tracker Documentation

  1. Home
  2. Docs
  3. AFL UTM Tracker Documentation
  4. Other Form Integrations
  5. Formstack Integration

Formstack Integration

You can use our AFL UTM Tracker plugin to capture UTM parameters of your Formstack submissions.

We will using our Javascript Merge Tags feature to populate the UTM parameters and other attribution data into the Formstack hidden fields.

Requirements

  • AFL UTM Tracker v2.17.0
  • Formstack Javascript Embed Code on a WordPress site.

NOTE: Currently our plugin only works on the Formstack Javascript Embed Code.

Steps

Once you have installed our plugin, make sure that you have enabled the “Javascript Merge Tag” feature in our plugin settings. You will be placing our merge tags into the hidden field default value.

On Formstack.com

  1. Login to your Formstack account.
  2. Go to your form.
  3. Go to the “Build” tab.
  4. Let’s say you want to capture the “Last Touch UTM Source”:
    • Drag and drop a “Short Answer” field to the form.
    • Field Label: Last UTM Source
    • Hidden: Checked
    • Default Value: afl_utm_js:utm_source
Formstack > Short Answer
  1. Capture the “Last Touch UTM Medium”:
    • Drag and drop a “Short Answer” field to the form.
    • Field Label: Last UTM Medium
    • Hidden: Checked
    • Default Value: afl_utm_js:utm_medium
  2. Capture the “Last Touch UTM Campaign”:
    • Drag and drop a “Short Answer” field to the form.
    • Field Label: Last UTM Campaign
    • Hidden: Checked
    • Default Value: afl_utm_js:utm_campaign

Want to populate more attribution data?

Refer to our Javascript Merge Tag list to populate First Touch UTM parameters, Last Touch UTM parameters, click identifiers and other attribution data.

Certain attribution data like URLs may require you to use the “Long Answer” field.

  1. Drag and drop an “Embed Code” field to the form.
    • Paste the javascript code below into the ‘Field-Specific’.
Formstack > Embed Code
Formstack > Embed Code

Embedding Formstack on WordPress

  1. Go to the Formstack > Form > Share tab.
    • Website Embed > Javascript Embed Code.
    • Copy and paste the code into your WordPress page.
  2. Login to your WordPress page.
  3. Go to your Page.
  4. Add the “Custom HTML” block.
  5. Paste the Formstack Javascript Embed Code into the “Custom HTML” block.
  6. Save and test your form.
WordPress > Custom HTML
WordPress > Custom HTML

Testing your Formstack

  1. Generate your UTM tracking URL.
  2. Visit your UTM URL in private-browsing mode to simulate a new visitor.
  3. Submit the form.

Check your Formstack Submission

  1. Go to your Formstack account.
  2. Go to your Form > Submissions tab.
  3. View the submission.
Formstack Submission
Formstack Submission