Installation
Install SourceTag on Wix
Add SourceTag’s tracking script to your Wix site through the Custom Code settings. No Wix apps or marketplace installs needed.
Step 1: Copy your script tag
In your SourceTag dashboard, go to your site’s detail page and copy the script tag. It looks like:
<script src="https://cdn.sourcetag.io/scripts/YOUR_SITE_ID/st.js" async></script> [IMAGE: Screenshot of the SourceTag dashboard showing the script tag on the site detail page]
Step 2: Open Custom Code settings
- In your Wix dashboard, go to Settings
- Click Custom Code (under the Advanced section)
If you don’t see Custom Code, you may need a Wix Premium plan. Free Wix plans don’t support custom code injection.
[IMAGE: Screenshot of the Wix dashboard Settings page with Custom Code highlighted]
Step 3: Add the script
- Click + Add Custom Code
- Paste the SourceTag script tag into the code box
- Give it a name like “SourceTag”
- Under Add Code to Pages, select All pages
- Under Place Code in, select Head
- Click Apply
[IMAGE: Screenshot of the Wix Add Custom Code dialogue with the script pasted and Head selected]
Step 4: Publish
Click Publish on your Wix site. The script won’t be active until the site is published.
Step 5: Test
Visit your published site with UTM parameters:
https://yoursite.com/?utm_source=test&utm_medium=cpc&utm_campaign=wix-test Open your browser’s developer tools (F12 or Cmd+Option+I on Mac) and check:
- View page source or the Elements panel to confirm the script tag is present in the
<head> - Application > Cookies to confirm a
_sourcetagcookie has been created - Submit a form on your site and check the form notification. You should see attribution data in the hidden fields.
[IMAGE: Screenshot of browser developer tools showing the _sourcetag cookie on a Wix site]
Notes
- SourceTag works with Wix’s native forms. Hidden fields are injected automatically when a form is detected on the page.
- If you’re embedding third-party forms (Typeform, JotForm, etc.) via HTML embed on Wix, the script will detect those too via MutationObserver.
- Browser cookies are limited to 7 days on Wix. There’s no server-side cookie option for Wix sites. See Safari Cookies for details.
- Wix Premium (or higher) is required for custom code injection. The free plan does not support it.