The user fills out the contact form and a email with the data of the form comes to the mail. But is there any way to get UTM parameters of the submitted form? I think this is quite a serious problem because we have know idea on what page the form was submitted
Topic summary
Issue: Capture UTM parameters (campaign tags) and the exact page for Shopify contact form submissions, ideally included in the default notification email.
Context: Store has multiple contact forms and uses Google Tag Manager (GTM). URLs provided for homepage and contact page. A screenshot shows the default Shopify email, which lacks UTM/page data.
Constraints/Decisions:
- Shopify’s default contact form email cannot include additional data beyond what Shopify provides. Adding UTMs/page info to that email is not supported.
Recommended approaches:
- Use GTM to create Form Submit events for each form/page.
- Include event parameters (page URL, UTM_source/medium/campaign, and optional form fields) so they appear in Google Analytics 4 under Engagement → Events.
- Use distinct event names to identify which page/form was submitted.
- Alternative (not via default email): capture UTMs via JavaScript (store in cookies), pass them into hidden form fields, and handle via a custom process/app to include in emails.
Status: Guidance provided; no confirmation of implementation. Screenshot is central to understanding the email limitation.
Hi @Overhood
Welcome to Shopify Community.
Based on the info that was provided above, it seems like you have more than one contact form on your site. Is that correct?
Also, are you tracking form submission from GTM?
If you are, you can add events on GTM, that tracks the URL as well.
If possible, can you please share your store URL( with the pages that have the forms).
I will check and suggest you the solution.
Thank you.
Sajat
Hi,
Hope this will help
Need to use JavaScript to store UTM parameters in cookies
Add hidden fields to contact form
Adjust the script that processes the contact form submission to include UTM parameters in the email notification.
-Yes, it is correct
-Yes, we are using GTM
-We’ve added the event to track but, honestly, I don’t know how to add tracking of UTM parameters in the even
-1) https://over-hood.com 2) https://over-hood.com/pages/contact
Thank you, Sajat!
Thanks for the replies. Let me clarify a bit. This is the default email that comes from Shopify when someone fills out a form. Is it possible to add page data with UTM parameters to this email?
Hi @Overhood
Thank you for the screenshot.
Right now, it is not possible to include other data apart from what is provided by default by Shopify on the emails sent by shopify.
What you can do is, create an Event for Form Submit on GTM for both the pages.
That way, you will see the form submission record on Google Analytics → Engagement → Events, with the unique name indicating from which the forms were submitted.
In case, you want to catch the data of the submitted form, you will have to add additional keys on the GA events.
Hope this helps you.
Thank you.
Sajat
If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
