Start Free / Login (dynamic button)

I’m looking for a low-code/no-code way to have a button change text and url based on a 1st party cookie.

For context - we want to present a Start Free CTA in our navigation to help drive self-serve signups. Once a user signs into our product, we create a 1st party cookie. For users that return to the website, the same button should show Login instead of Start Free.

I’m open to other solutions but ideally I’d like to do this without engineering support (savvy user but not writing code daily).

It will be somewhat convoluted without code, but you can likely achieve much of this with a framework like Alpine.js.

This is the most difficult part to do with nocode. If you’re using Webflow User Accounts, Webflow does have some client-accessible cookies that are created after login. You might be able to “nocode” your way to detect that on an x-init and then create a new cookie that persists for your own purposes ( i.e. User has logged in before ).

That new cookie is then separately used to determine the Login button text.

Thanks @memetican. Alpine looks interesting. It seems to be focused on activities (they’ve clicked to Start Free), and not that they actually created an account. I may be missing something so I’ll continue to dig.

I don’t believe we’re using Webflow User Accounts. Confirming with the team. Thanks again for your thoughts.