Guide to Indexing Event and Place Pages from DXP Modules in Wix

Created by ITI Digital Support Digital, Modified on Fri, 6 Jun at 11:03 AM by Evan Kenepp

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 

  1. Log in to your Wix Dashboard and click on edit site

    Open image-20250418-181255.png


     

  2. In the top bar, click Dev Mode > Turn on Dev Mode



Open image-20250418-181328.png
  1. This enables:  Code Panel (bottom of screen) 

Step 2: Add Required Page 

  1. In the Pages panel, click “ Add Page”

    Open image-20250418-181458.png

     

  2. Name it something like: Imgoing Page XML 

  3. Add two text elements to display the title: 

  4. One titled Events 

  5. One titled Places 

    Open image-20250418-181532.png

 

✅ Step 3: Assign Element IDs 

  1. Add two text paragraph elements to display the data: 

Open image-20250418-181608.png


 

  1. Click on each text element and In the Properties Panel (right), set the element IDs to: 

  2. EventsContainer 

    Open image-20250418-181636.png

     

  3. PlacesContainer


    Open image-20250418-181705.png

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>";         }); }); 
Open image-20250418-181826.png

 

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 

Open image-20250418-181855.png

 

 

  1. In the tools and setting click on robots.txt editor

    Open image-20250418-181925.png

 

  1. 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 

  1. Go to your Wix Dashboard 

  2. Navigate to Settings > Custom Code 

 

Open image-20250418-181949.png
  1. Click + Add Custom Code

    Open image-20250418-182012.png
  2. 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> 
  1. Apply to All Pages (or just the new page) 

  2. Place it in the Head section and click on Apply. 

 

Open image-20250418-182032.png

Step 8: Disable Canonical Tags on Specific Pages 

This prevents search engines from ignoring your dynamic content. 

  1. Go to your Wix Dashboard 

  2. Go to SettingsCustom Code 

  3. Click + Add Custom Code 

  4. 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article