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
- In your Wix Dashboard, go to Settings > Custom Code
- Click + Add Code in the Head section
Step 2: Add the Tracking Script
- Paste the following snippet:
<script
defer
data-domain="yourdomain.com"
src="https://ovyxa.com/js/script.js"
></script>
- Under Name, enter
Ovyxa Analytics - Under Add Code to Pages, select All pages
- Under Place Code in, select Head
- 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
- Publish your Wix site
- Visit the live site (not the editor preview)
- Open the browser Network tab and look for a request to
ovyxa.com/js/script.js - Check your Ovyxa dashboard to confirm pageviews are appearing
Note: Custom Code requires a Wix Premium plan (not available on the free Wix plan).