Install
Wix, Webflow and Squarespace
Where to paste the CookieTrue line in Wix, Webflow and Squarespace, and which plan each builder needs for custom code.
Website builders let you add your own code in one settings screen. The line is the same everywhere; only the place changes. Copy your line from Installation in the dashboard, then follow your builder below.
<script id="cookietrue" src="https://cdn.cookietrue.com/s/ct_yoursiteid.js"></script>#Wix
- In your Wix dashboard open Settings → Custom Code (under Advanced) and click + Add Custom Code.
- Paste the line.
- Choose All pages, Load code once, and place it in the Head. Click Apply.
#Webflow
- Open Site settings → Custom code.
- Paste the line at the top of Head code.
- Click Save, then Publish your site.
Custom code needs a paid Site plan. The banner will not show in the Designer; open the published site to see it.
#Squarespace
- Open Settings → Developer tools → Code injection. In some versions it is under Website → Pages → Custom code.
- Paste the line at the top of Header.
- Click Save.
Code injection is available on Business plans and higher.
#Check that it works
Open the published website in a private window. You should see the banner. Press Reject all and look at the cookies in your browser; analytics and marketing cookies should not be there. If you cannot see the banner, see Troubleshooting.
#About the order of scripts
On builders you do not control the whole page. Anything the builder itself adds, such as its own analytics, may load before custom code. If you see a tracker run before consent, check the scanner report (see the scanner), which shows what runs before a choice is made.