> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: onTagCreated(event: TagCreated) # Method package: wixBlogBackend # Method menu location: wixBlogBackend --> onTagCreated # Method Link: https://dev.wix.com/docs/velo/apis/wix-blog-backend/events/on-tag-created.md # Method Description: An event that is triggered when a tag is created. The `onTagCreated()` event handler runs when a tag is created. The received `TagCreated` object contains information about the tag that was created. >**Note:** Backend events don't work when previewing your site. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event that occurs when a tag is created ```javascript // Place this code in the events.js file // of your site's Backend section. // Add the file if it doesn't exist. export function wixBlog_onTagCreated(event) { const tagId = event.metadata.entityId; const tagUrl = event.entity.url; console.log('Tag created', event); } /* * { * "metadata":{ * "id":"f48ae946-a320-4805-985a-28384e9487f3", * "entityId":"2d85ff8e-885e-47ad-a73a-ce9631c73a77", * "eventTime":"2022-06-16T15:16:20.376Z" * }, * "entity":{ * "_createdDate":"2022-06-16T15:16:20.347Z", * "_id":"2d85ff8e-885e-47ad-a73a-ce9631c73a77", * "_updatedDate":"2022-06-16T15:16:20.347Z", * "label":"new label", * "language":"en" * "postCount":0, * "publishedPostCount":0, * "slug":"new-update", * "url":"http://https://tadasz7.wixsite.com/blog-velo-events/my-blog/tags/new-label" * } * } */ ``` ---