UTM tracking can also be used to track registrations when embedding the registration form on an external website. By adding UTM parameters to the embedded code, you can analyze which traffic sources or campaigns drove registrations via the embedded form.
Follow these steps to include UTM parameters for embedded registration forms:
How To Copy Event Registration Form Embed Code
1. On the Event Dashboard click on "Registration" on the side bar.
2. Click "Preview & Embed" on the side bar under Registrations
3. Click "Copy Code" on the top right hand corner to get the Embed Code to add to your website.
After copying the embed code, you can follow these steps to add UTM parameters for tracking.
Steps to Add UTM Parameters to Embedded Registration Forms
Locate Your Embedded Registration Form Code
The embed code for your registration form will look similar to the following:<div id="nunify-container-youreventcode" style="width: 100%; height: 95%"></div>
<div id="footer-nunify-container-youreventcode" style="font-family: inherit; padding: 0.5rem; text-align: center"><a style="text-decoration: none; font-size: 12px; color: #aaaaaa" href="https://www.nunify.com" target="_blank">Powered by Nunify</a></div>
<script src="https://www.nunify.com/events/embed.js"></script>
<script type="text/javascript">
window.NunifyWidgets.createRegistrationWidget({
eventCode: "youreventcode",
elementId: "nunify-container-youreventcode",
width: '100%',
// Tracking Parameters Go Here
})
</script>Enable UTM Tracking in the Embed Code
To enable UTM tracking, update thetracking
object in the embed script. This object accepts standard UTM parameters. For example:tracking: {
"utm_source": "facebook",
"utm_medium": "social",
"utm_campaign": "youreventcode2025",
"utm_content": "banner",
"utm_term": "event_registration"
},Customize the UTM Parameters
Replace the placeholder values in thetracking
object with your desired campaign details:utm_source
: Where the traffic is coming from (e.g., facebook, google).utm_medium
: How the traffic is being driven (e.g., social, email, cpc).utm_campaign
: The name of your campaign (e.g., spring_sale, event2025).utm_content
: (Optional) Additional detail to differentiate content, e.g.,sidebar_banner
.utm_term
: (Optional) Keywords, especially useful for paid campaigns.
Final Updated Code Example
Below is a complete example of an embed code with UTM parameters added:<div id="nunify-container-youreventcode" style="width: 100%; height: 95%"></div>
<div id="footer-nunify-container-youreventcode" style="font-family: inherit; padding: 0.5rem; text-align: center"><a style="text-decoration: none; font-size: 12px; color: #aaaaaa" href="https://www.nunify.com" target="_blank">Powered by Nunify</a></div>
<script src="https://www.nunify.com/events/embed.js"></script>
<script type="text/javascript">
window.NunifyWidgets.createRegistrationWidget({
eventCode: "youreventcode",
elementId: "nunify-container-youreventcode",
width: '100%',
tracking: {
"utm_source": "email",
"utm_medium": "newsletter",
"utm_campaign": "youreventcode_spring_event",
"utm_content": "cta_button",
"utm_term": "register_now"
}
})
</script>Test the Embed Code
Copy the final embed code and add it to the desired location on your website. Open the embedded form and test a registration to confirm that the UTM parameters are being recorded in Nunify’s analytics.View UTM Data in Nunify
Navigate to Analytics or Reports in the Admin CMS to view registration data categorized by your UTM parameters.
Use a unique UTM utm_campaign
name for every campaign to easily distinguish them in reports and, Always test the UTM links and embed forms before launching your campaign to avoid tracking errors.