Add a Cookie Consent Banner and Google Analytics with AI
Count your visitors with Google Analytics, only after they accept cookies.
What you need
- A site on SiteShip
- A Google Analytics 4 property and its measurement ID (starts with G-)
The prompt
Add Google Analytics to my SiteShip site [site name]. My measurement ID is [G-XXXXXXXXXX]. Add a cookie banner on every page with Accept and Decline buttons, so Analytics only starts after a visitor accepts. The banner should say: "[We use cookies to see how people use this site.]" and link to my [Privacy] page. Put a "Cookie settings" link in the footer so people can change their mind. Match the banner to my site's colours. If I don't have a privacy page yet, tell me and offer to write a simple one.
Fill in the [brackets] with your details.
What you get
- Google Analytics on every page, switched on only after a visitor accepts
- A cookie banner in your site's colours, with Accept and Decline
- A "Cookie settings" link in the footer
Good to know
- The built-in analytics setting is for Google Analytics 4 only.
- This is not legal advice: check what your country requires your banner and privacy page to say.
Not connected yet?