RE: Hosting events on external website
Hi Jacques,
We need this script for every newly created event, the Event URL field will be only automatically generated with portal-hosted option.
As we can see in screenshots below, data-website-id and data-form-block-id properties are different for each event record.
Event 1

Event 2

From final row(Link to the event website) of table below, we can also find how the Event URL field will be populated when hosting with different options.
https://docs.microsoft.com/en-us/dynamics365/marketing/set-up-event-portal#customize-and-host-the-event-website
As summary:
Portal-hosted:
The Event URL is generated automatically for each event.
externally hosted:
The Event URL depends on where you host the site. You can store the URL in the event record by selecting the Custom event URL check box and then filling in the Event URL field.
In a word, on our own website, we should create multiple web pages and paste script of each event record to those pages.
www.xxx.com/event/event1.html -> script 1(Event 1)
www.xxx.com/event/event2.html -> script 2(Event 2)
Regards,
Clofly