carlsednaoui / ouibounce

Increase your landing page conversion rates.
MIT License
2.31k stars 375 forks source link

Different cookie per popup or per site section #121

Closed JiveDig closed 7 years ago

JiveDig commented 8 years ago

First off, thanks for the amazing script!

I've created a little helper (WordPress) plugin that allows me to quickly create various popups with different styling, on different sections of the site. The issue i've run into is that the current script appears to only save 1 cookie, script wide. If I have 2 different popups (think: different optin or content per blog category), I need those 2 popups to be treated separately in regards to the cookie.

Maybe this is too annoying for users and shouldn't be considered, I haven't thought about it too long yet, i'm just trying to make this plugin really versatile.

Let me know your thoughts!

JiveDig commented 8 years ago

Turns out you can use a different cookie name per popup... then you can have different popups per section of your site. Cool!

Isengo1989 commented 7 years ago

Could you share your answer? Much appreciated ;-)

JiveDig commented 7 years ago

See the 2nd snippet here. https://github.com/JiveDig/slim-popups/blob/master/README.md I made a WordPress plugin to quickly setup popups.