in this video I want to show you how to prolong cookie lifetime using a cookie keeper uh cookie keeper is a state power up that helps you uh prolong cookie lifetime so the logic of uh cookie keeper is that it use Master cookie uh to uh restore cookies so basically for example we have a PL for uh WordPress supery Magento and vcommerce and uh for this uh for the website that uses this samees cookie keeper Works automatically uh so what app does it U like um uh uses a master cookie uh that defines a user
ID and uh uh it helps to restore like basically it stores cookie if it detects that uh cookies were erased it restores cookie for from the database um let me show you in practice how it works uh I will use again WordPress side uh just to simplify the uh configuration process um you can uh use also like cookie keeper for custom websites uh but the process is of configuring cookie keeper is a little bit complicated since you will need to uh manually Define the master cookie uh for for like different CSS this process is um
more simple since uh all CMS have some sort of Master cookie uh available by default and the name of this master cookie are the same for like each platform so um yeah that is why like if you use a custom website there is no uh Master cookie uh with a standard cookie name that we can use to restore to store and restore your cookies okay so let's go back to uh my WordPress plug-in and what you like to uh make a cookie keeper work what you need to do is add your uh stap container identifier
here you can find it inside your uh stape account so past it here and then just click uh cookie keeper and click save changes um now we need to open the cookie keeper Power Up Click use activate it and uh here you will see like standard cookies um that you can just um select to prolong um in case you want to understand exactly what type of cookies cookie keeper prolong just uh uh click here and you will see like the list of all the cookies for example for affiliate cookies we uh prolong like aen Rodan
and out brain cookies uh okay let's go back and select which type of cookies uh you want to prolong uh besides that in in case you use any custom platform or platform that is not listed here um you can add a name of the cookie and expiration time in days so for example if we were not like if if cookie keeper was not able to extend um these cookies by default you will just need to type here cookie name and then set expiration time so but I won't do that uh so once done just uh
click save here um you need to select the domain uh for which you are or you want to prolong cookie uh so in my case I'm using only one domain I do not use a multi domain feature for this container so uh I created I selected my tag and server URL then add your web Google teag manager ID so to find your web Google tech manager ID open your web GTM container please ensure that uh it's web GTM container not the server one and uh just copy uh a this ID here and uh select a
platform so uh I I'm using Wordpress and uh um yeah I selected WordPress and click generate uh once done uh you will see the uh configuration data that you need to add to your uh WordPress plugin but we already uh did it so I won't do that now uh let me verify that everything is correct so yeah cookie keeper power up is enabled and uh the cookies that I want to extend are selected um yeah so basically that's it uh now we need to test if cookie like cookie keeper works correctly um you need to
test it inside Safari uh because this browser has uh the biggest restrictions in terms of cookie lifetime so I will open my my website in Safari uh click open console and uh go to cookies so uh just to simplify the process let me uh remove the first two cookies so basically it's a uh stape cookie and fbp and we need to remember that uh like a stape cookie ends with uh 785 and uh uh fbp uh uh 282 so I will remove this one um then just let me uh click uh my website and for
you can see here that um stape cookie uh and fbp cookie were restored and the value of the cookie is the same that it was previously before I erased the cookie so basically it's 785 and 282 um so this is it so basically the configuring of cookie keep keeper is extremely simple for standard samees for which they provides um plugins just enable it inside your plugin and enable it on stape and then just use Safari to test if cookie were restored correctly with the with the same value that uh it was before you erased the
cookies um let me quickly talk on how to configure it for uh the custom platforms so in case you have a custom platform or um a platform that is not listed here uh select other and uh uh you need to add here like Master cookie or user identifier so uh there can be a few ways uh on how you can identify user it either cookie Lo at storage Dom El JavaScript variable or use tape user ID um so for example if it's a cookie um then just type a cookie name so it's pretty simple and
the same with local storage or any other other variable so like the process of defining it inside tape is simple but you need to uh know exactly uh which parameter uh fits um like the requirement of Master cookie basically uh this master cookie it should be uh the same uh for one user in one browser or or for example if if it can be the same for one user different browsers it it would be even better um yeah so uh that's it that's everything that I wanted to talk about uh uh in this video so
thank you for watching and see you in the next video