Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lastmod to sitemap #8681

Merged
merged 11 commits into from
Nov 8, 2024
4 changes: 2 additions & 2 deletions website/docs/feature-flag-tutorials/flutter/a-b-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ In your Unleash instance, create a new feature flag called `likeOptionExperiment

![Set Up Variant in Unleash](/img/variant-setup-1.png)

Now that you have created your feature flag, let’s create two new [variants](https://docs.getunleash.io/reference/feature-toggle-variants) gridTile'' and imageDetails respectively. These variants will help you position your like image button.
Now that you have created your feature flag, let’s create two new [variants](https://docs.getunleash.io/reference/feature-toggle-variants) `gridTile` and `imageDetails` respectively. These variants will help you position your **like image** button.
melindafekete marked this conversation as resolved.
Show resolved Hide resolved

![Succesfully setting up variant in Unleash](/img/setup-variant-2.png)

Expand All @@ -34,7 +34,7 @@ Below is a screenshot of experimentation in action based on the `likeOptionExper

For analytics and metrics, we’ll use [Mixpanel](https://mixpanel.com/) to track user behavior and usage patterns. We have chosen Mixpanel because it offers a user-friendly setup and in-depth user analytics and segmentation. Given that the project follows clean architecture and Test-Driven Development (TDD) principles, you’ll want to create an abstract layer to interact with the Mixpanel.

Whenever a user opens the app, we track `like-variant` if `likeOptionExperiment` is enabled to tag them with their assigned variant (gridTile or imageDetails). The stored variant in Mixpanel can be used later to analyze how each variant impacts user behavior to like an image.
Whenever a user opens the app, we track `like-variant` if `likeOptionExperiment` is enabled to tag them with their assigned variant (`gridTile` or `imageDetails`). The stored variant in Mixpanel can be used later to analyze how each variant impacts user behavior to like an image.

Whenever a user interacts with the `LikeButton`, we track `trackLikeEventForExperimentation`, along with their assigned variants. By correlating the `trackLikeEventForExperimentation` with the `like-variant`, you can effectively measure the impact of a variant on user behavior and make data-driven decisions. To learn how to correlate and generate reports, see the [Mixpanel docs](https://docs.mixpanel.com/docs/analysis/reports).

Expand Down
14 changes: 13 additions & 1 deletion website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ const config: Config = {
routeBasePath: '/',
remarkPlugins: [[pluginNpm2Yarn, { sync: true }]],
docItemComponent: '@theme/ApiItem',
sidebarPath: './sidebars.ts',
sidebarPath: './sidebars.ts'
},
theme: {
customCss: './src/css/custom.css',
Expand All @@ -305,6 +305,18 @@ const config: Config = {
googleTagManager: {
containerId: 'GTM-KV5PRR2',
},
sitemap: {
changefreq: 'weekly',
lastmod: 'date',
priority: 0.5,
createSitemapItems: async (params) => {
const { defaultCreateSitemapItems, ...rest } = params;
const items = await defaultCreateSitemapItems(rest);
return items.filter(
(item) => !item.url.includes('/page/'),
);
},
},
},
],
],
Expand Down
Loading