Joanna L.
Created Aug 14, 2023How to Add an Age Gate to your Website
In this tutorial, I walk through the steps on how to create an Age Gate for your website using Elfsight. Once this is done, I will copy the generated code and paste it into Squarespace (chosen web builder for demo purposes).
PART I: Sign up for Elfsight
PART II: Confirm your email address
PART III: Create an 'Age Verification' widget (Age Gate)
PART IV: Copy the generated code to Squarespace
Go to https://elfsight.com
🟠
PART II: Confirm your email address
If you do not see the 'Confirm your email address...' email from Elfsight, check your Junk / Spam folder. If that doesn't work, you can use the 'Resend' function on the final generated code page: click 'X' to close the EMBED CODE dialog box > click 'Resend' at the top of the page.
🟠
PART III: Create an 'Age Verification' widget (Age Gate)
Note: I recommend using your branding colors.
You can pull the exact Hex codes, use this Image Color Picker tool to upload an image containing your branding colors (Ex. company logo).

Note: Under the 'Lite' plan, the widget will stop working after 200 views.
Once expired, you will have to sign into your Elfsight account and upgrade to the 'Basic' plan OR restart this process all over again using a new Elfsight account.
All prices shown are in US dollars.

Note: If you are NOT using Squarespace as your web builder, select your provider from the 'Platform Tutorials' list. Instructions will be provided.
🟠
PART IV: Paste the generated code to Squarespace
Please note that Squarespace has updated their main user interface since the making of this tutorial. One of the changes is where to access the 'Code Injection' page.
Before: After signing in, go to Website > Settings > Developer Tools > Code Injection
Now: After signing in, go to Website > Website Tools (under Utilities) > Code Injection