This is useful for actions such as sign-ups, purchases, subscriptions, form submissions, or any other conversion event.
Create your GrowthOptix event snippet.
In your GrowthOptix dashboard, go to:
→ Events → Create Event → Copy Script
a) Click on Events in Marketing Attribution
b) Click on +New Event.
c) Name your event, choose the event type, and then click on Create Event.
d) The event has already been created.
e) Click on "View Script".
f) Copy your snippet to the clipboard.
You’ll get a small code snippet similar to:
<script>
window.GrowthOptix.trackEvent({
type: 'signup',
eventId: '3mqdf1qvg' // Example only — your eventId will be different
});
</script>
The implementation depends on where the conversion happens (button click, form submission, or a success/confirmation page load).
To keep this simple, we provide one example below: triggering an event when a user clicks a Sign Up button.
Most website builders (Webflow, Wix, Squarespace, Framer, etc.) allow adding a Custom Code or Embed section, so the process is usually the same across platforms.
Example: trigger an event when a button is clicked
⚠️ Important:
The following snippet is only an example.
Each event in GrowthOptix has a unique eventId, so you must paste your own snippet from the dashboard. Do not use the sample code shown below in a production site.
Open your website builder and locate the option to add Custom Code / Embed to the page.
Paste your GrowthOptix event snippet inside that code section.
Ensure the button ID matches the element on your page.
Save and publish your website.
Other event types
You can trigger events in similar ways for:
signup (user account creation).
lead (form submission or demo request).
upsell (plan upgrade or add-on purchase).
sale (checkout completion or purchase success).
Some examples of where you might place your snippet:
inside a form success callback,
inside your product’s payment success function, or
directly on your order confirmation / thank-you page.
The logic is the same: Fire the snippet exactly when the conversion is completed.
How to confirm your event is firing
After publishing:
Verify in GrowthOptix
Go to:
Dashboards → Overview→ Activity.
You should see your event appear in near real-time.
4. Notes & Best Practices
The snippet must fire after the conversion actually happens.
Do not put the event inside the <head>, only in the action logic.
Every event has a unique eventId.
If your site uses caching/CDN, clear it after adding the snippet.






