Hand-on guide on how to integrate Avada Cookie Consent seamlessly with Shopify Hydrogen store.
Setup for Integrate Avada Cookie Consent with Hydrogen
Step 1: How to set up your Hydrogen store
If you've already developed your Hydrogen store, you're all set! However, if you haven't started yet or are looking to test a Hydrogen store with Avada Cookie Consent, don't worry. You can easily set up a quick-start Hydrogen store by following this guide: Getting Started with Hydrogen.
If you are not on Shopify Plus plan but still want to test this out with the development store first. You can update your .env file with Storefront API key from your Custom App
Update your entry.server.jsx to include the CSP whitelist for Avada Cookie Consent:
Turn on the integration in-app
Now, let's head back to the Hydrogen integration screen.
Click 'Turn on' to integrate the Avada Consent banner with your Hydrogen store.
Test the integration
After these are implemented, you will see the Cookie banner displays on your custom storefront according to your settings. However, you can compare the banner on the custom storefront and the Online Store channel to make sure both are working properly.