Skip to main content

Wix Integration

Add Ovyxa analytics to your Wix site using the built-in Custom Code feature. No third-party apps required.

Step 1: Open Custom Code Settings

  1. In your Wix Dashboard, go to Settings > Custom Code
  2. Click + Add Code in the Head section

Step 2: Add the Tracking Script

  1. Paste the following snippet:
<script
defer
data-domain="yourdomain.com"
src="https://ovyxa.com/js/script.js"
></script>
  1. Under Name, enter Ovyxa Analytics
  2. Under Add Code to Pages, select All pages
  3. Under Place Code in, select Head
  4. Click Apply

Tracking Custom Events

Track button clicks, form submissions, or other interactions using Wix Velo (formerly Corvid):

// In your Wix page code
import wixWindow from 'wix-window'

$w('#submitButton').onClick(() => {
wixWindow.postMessage({ type: 'ovyxa-event', name: 'FormSubmit' })
})

Or add a second Custom Code snippet in the Body - end section:

<script>
document.addEventListener('click', function(e) {
if (e.target.closest('[data-ovyxa-event]')) {
var eventName = e.target.closest('[data-ovyxa-event]').dataset.ovyxaEvent
window.ovyxa('event', eventName, { props: { source: 'wix' } })
}
})
</script>

Cookieless Mode

To avoid cookie consent requirements, add the data-cookieless attribute:

<script
defer
data-domain="yourdomain.com"
data-cookieless
src="https://ovyxa.com/js/script.js"
></script>

Verify Installation

  1. Publish your Wix site
  2. Visit the live site (not the editor preview)
  3. Open the browser Network tab and look for a request to ovyxa.com/js/script.js
  4. Check your Ovyxa dashboard to confirm pageviews are appearing

Note: Custom Code requires a Wix Premium plan (not available on the free Wix plan).

Next Steps