Guide to Indexing Event and Place Pages from DXP Modules in Wix
This guide will help you display dynamic event and place URLs on a WordPress page and ensure they can be discovered and indexed by Google
Step 1: Enable Dev Mode (Velo) in Wix
Log in to your Wix Dashboard and click on edit site
In the top bar, click Dev Mode > Turn on Dev Mode
This enables: Code Panel (bottom of screen)
Step 2: Add Required Page
In the Pages panel, click “ Add Page”
Name it something like:
Imgoing Page XML
Add two text elements to display the title:
One titled
Events
One titled
Places
✅ Step 3: Assign Element IDs
Add two text paragraph elements to display the data:
Click on each text element and In the Properties Panel (right), set the element IDs to:
EventsContainer
PlacesContainer
Step 4: Add API Fetch Code in Page Code Panel
In the page’s code (bottom panel), you need to remove the existing code and paste the code below. Then click on 'Publish' to publish this page.
- Replace 'YourDXPAccountName' in the code with the Hub name identified in your module embed code (it is typically your city name and two letter state abbreviation).
// Velo API Reference: https://www.wix.com/velo/reference/api-overview/introduction $w.onReady(function () { const apiEndpoint = 'https://imgoing-prod-api.xyz/api/visitors/YourDXPAccountName/ig-links-for-seo'; fetch(apiEndpoint) .then(response => response.json()) .then(data => { if (data.eventUrls && data.eventUrls.length) { const eventLinks = data.eventUrls.map(url => `<a href="${url}" target="_blank">${url}</a>`).join('<br>'); $w('#eventsContainer').html = eventLinks; } else { $w('#eventsContainer').html = "<p>No event URLs found.</p>"; } if (data.placeUrls && data.placeUrls.length) { const placeLinks = data.placeUrls.map(url => `<a href="${url}" target="_blank">${url}</a>`).join('<br>'); $w('#placesContainer').html = placeLinks; } else { $w('#placesContainer').html = "<p>No place URLs found.</p>"; } }) .catch(error => { console.error("Error fetching API:", error); $w('#eventsContainer').html = "<p>Error loading events.</p>"; $w('#placesContainer').html = "<p>Error loading places.</p>"; }); });
Step 5: Confirm That the Page Is Working
Visit the page URL:
https://yourwebsite.com/imgoing-page-xml/
You should see:
A section for Events and one for Places
If everything is working, links will appear in 3–5 seconds.
If no data is found, it will display “No event/place URLs found.”
If your website has only Events module then only events URLs will be displayed and vice versa.
Step 6: Allow Search Engines to Crawl These Pages
1. Go to Site & Mobile App > SEO
In the tools and setting click on robots.txt editor
You need to copy the existing rules and paste them into Notepad. Then, add these two additional rules to it. After that, copy entire rules and paste it back, then save it.
Allow: /*?imgoing-event=
Allow: /*?imgoing-place=
Step 7: Add a Script to Help Google "See" Dynamic Content
Go to your Wix Dashboard
Navigate to Settings > Custom Code
Click + Add Custom Code
Paste the below code:
- Replace 'YourDXPAccountName' in the code with the Hub name identified in your module embed code (it is typically your city name and two letter state abbreviation).
<script src="https://next.imgoingcalendar.com/imgoing-prerender.js?hubName=YourDXPAccountName"></script>
Apply to All Pages (or just the new page)
Place it in the Head section and click on Apply.
Step 8: Disable Canonical Tags on Specific Pages
This prevents search engines from ignoring your dynamic content.
Go to your Wix Dashboard
Go to Settings ➜ Custom Code
Click + Add Custom Code
Paste this below code and click on apply:
<script> document.addEventListener("DOMContentLoaded", function () { const path = window.location.pathname; const pagesToRemoveCanon = ["/events", "/stay"]; if (pagesToRemoveCanon.includes(path)) { const canonicalTag = document.querySelector('link[rel="canonical"]'); if (canonicalTag) { canonicalTag.remove(); console.log("Canonical tag removed from", path); } } }); </script>
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article