How to Publish an Event in Google Calendar to Get a Link or Embed Code

Sharing an event on a public website, blog post, or newsletter often requires providing an easy way for visitors to add the date directly to their own calendars without sending individual email invitations. Google Calendar includes a built-in event publishing feature that generates both an HTML embed code for direct insertion into web pages and an interactive link that opens Google Calendar directly on the recipient’s device.

Understanding How Published Google Calendar Events Function

When you publish an event from Google Calendar, the platform creates an open invitation endpoint containing all the event parameters, including title, date, time, description, location, and guest permissions. Anyone who clicks the generated link or interacts with the embedded badge will see the event pre-populated in their personal Google Calendar interface, where they can click Save to add it to their primary agenda.

For the link or embed code to work properly for external visitors, the parent calendar containing the event must be configured with appropriate public permissions, or the specific event must be made accessible. If the event is hosted on a strictly private calendar, external users may encounter an error or an empty calendar view upon clicking the link.

Step 1: Verify Calendar Visibility Settings

Before extracting the event link or HTML code, confirm that your calendar settings permit public access so that external guests can view the event details:

  1. Open Google Calendar in any desktop web browser and sign in to your Google Account.
  2. Locate the My calendars list in the left-hand navigation sidebar.
  3. Hover over the calendar where your event will reside, click the three-dot vertical menu icon, and select Settings and sharing.
  4. Scroll down to the Access permissions for events section.
  5. Tick the box next to Make available to public. In the adjacent drop-down menu, ensure it is set to See all event details so attendees can read the agenda, location, and description.
  6. Click the back arrow in the upper-left corner to return to your calendar schedule.

Step 2: Generate the Event Embed Code and Direct Link

Once public permissions are enabled, create or open the specific event to generate its publishing code:

  1. Click on the target event on your calendar grid to open its quick preview card.
  2. Click the pencil-shaped Edit event icon to open the full event configuration screen.
  3. Review your event title, start and end times, location, and description to ensure all details are accurate and finalised.
  4. Click the More actions drop-down menu located at the top of the screen next to the Save button.
  5. Select Publish event from the menu options.
  6. A modal dialogue titled Publish event will appear on screen displaying two distinct options:
    • Embed code: A block of HTML code (<a target="_blank" href="..."><img src="..."></a>) featuring an official Google Calendar button suitable for embedding on WordPress, Squarespace, or custom web pages.
    • Link to event: A clean web address (https://calendar.google.com/calendar/render?action=TEMPLATE...) ideal for hyperlinking text, sending in emails, or posting on social media channels.
  7. Click the Copy button next to your desired format, then click Close.

Step 3: Test and Embed the Event Link

After copying the code or URL, paste it into your target publication medium to ensure seamless user onboarding:

  • Web Page Integration: In WordPress or any standard CMS, insert a Custom HTML block and paste the copied embed snippet. It will render an interactive “Add to Google Calendar” button.
  • Newsletter or Email Hyperlinks: If pasting into an email campaign or button block, use the direct URL from the second field. When clicked, it automatically opens the recipient’s web browser directly to the event confirmation page.
  • Verification Test: Open an Incognito or Private browsing window, paste the copied link, and confirm that the event details load correctly without requiring access requests or administrative permissions.

By using Google Calendar’s native event publishing tools, you provide audiences with a frictionless way to save important meetings, webinars, and public gatherings directly into their schedules.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.