mint-metrics/mojito-js-delivery

Limit time that cookies persist for when set in preview mode

kingo55 opened this issue · 8 comments

Currently test cookies in preview mode persist for the standard duration set at the container level through cookieDuration (60 days is the default).

When previewing experiments, we don't need the cookie to persist for very long. And for tests being developed within staging mode, which have potential conflicts with other live experiments, it can cause experiments to break and cause confusion for users.

What if we limited the time for cookies set within preview mode?

@kingo55
Good point! We can limit the time for cookies set within preview mode. The other alternate could be: do not set cookies for preview mode, preview mode works only with the preview parameters.

(No markdown in email replies - attaching image from above message)

social-interaction-event

I'm not big fan of interfaces for preview mode. We end up disabling stuff like the optly ball and the GTM interface, whilst not as annoying, does take up a lot of screen real estate.

Maybe we can consider a half-way point? Small UI element, that can be quickly dismissed (but reappears on next load).

E.g.
image

Agree - and it'll need to be mobile friendly too.

Multiple tests could be active on the same page, so we might need a way to represent multiple:

Group 8

Rather than building this into the library directly, we could save on container weight and side-load this in.

With mint-metrics/mojito-chrome-inspector#1 being well-defined now, should this issue be closed? @kingo55 @allmywant

@dapperdrop
I think so.

@dapperdrop - yes, good point