Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the powerful-docs domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/spectra-qa-sites/webapps/sureforms-staging-qa/wp-includes/functions.php on line 6131

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the convertpro-addon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/spectra-qa-sites/webapps/sureforms-staging-qa/wp-includes/functions.php on line 6131

Notice: Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /home/spectra-qa-sites/webapps/sureforms-staging-qa/wp-includes/functions.php on line 6131
How to Fetch Query Parameters from URL - SureForms
|
/ Documentation /Single Form Settings/ How to Fetch Query Parameters from URL

How to Fetch Query Parameters from URL

Parameters are codes added to the end of a URL to help you track the source, medium, and campaign of your traffic. By integrating UTM tracking with SureForms, you can analyze how users interact with your forms based on different marketing campaigns. This guide will walk you through the steps to configure and track parameters with SureForms.

Understanding UTM Parameters

Here are the five main UTM parameters you can use:

  • utm_source: Identifies the traffic source (e.g., Google, Facebook, Newsletter).
  • utm_medium: Identifies the medium (e.g., organic, email, CPC).
  • utm_campaign: Tracks a specific campaign (e.g., Black_Friday_Sale).
  • utm_content: Differentiates variations of the same link (e.g., banner_ads, CTA_buttons).
  • utm_term: Tracks keywords used in paid search campaigns.

Adding UTM Parameters to Your URLs

  1. Use a UTM builder tool to generate URLs with appropriate UTM parameters.
  2. For example, a URL could look like this:
    https://example.com/form?utm_source=google&utm_medium=test&utm_campaign=winter_sale
  3. Ensure the URLs with UTM parameters are shared in your marketing campaigns.

Configuring SureForms to Track Parameters

SureForms automatically supports GET parameters, including UTM parameters. Here’s how you can ensure they are tracked:

  1. Set Up Hidden Fields for Parameters:
    • Edit your form and add  Hidden block for each UTM parameter you want to track (e.g., utm_source, utm_medium, etc.).
    • Use Default Value settings to map these fields to URL parameters.
      • For example, map the utm_source field to the utm_source parameter in the URL.
  1. Save and Test Your Form:
    • Save the changes to your form.
    • Test the form by submitting it using a URL with UTM parameters to verify that the data is captured.

Viewing Captured UTM Data

Once your form is set up:

  1. Go to the SureForms dashboard – Entries
  2. Review the UTM data captured in the hidden fields.
    • Each submission will display the UTM values associated with the user’s session.

Best Practices for UTM Tracking

  • Use consistent and descriptive naming conventions for UTM parameters.
  • Avoid using UTM parameters for internal links to prevent data misrepresentation.
  • Regularly monitor and analyze the UTM data in SureForms and your analytics tool (e.g., Google Analytics).

Conclusion

By integrating parameter tracking into SureForms, you gain valuable insights into your marketing campaign’s effectiveness. This setup ensures you can measure traffic sources and optimize your strategies for better results.

For additional help or questions, refer to the SureForms documentation or contact support.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top