Hello @leemcd ,
I am Gina from flareAI app helping Shopify merchants get $5Million+ in sales from Google Search, on autopilot.
It’s possible that the issue you’re experiencing with the GA4 Pixel not tracking checkout pages is related to the Content Security Policy (CSP) set up on your website. The error message you’re seeing suggests that the CSP directive “connect-src” is preventing the GA4 Pixel from connecting to the analytics server.
Here are a few potential solutions you can try:
- Add the Google Analytics domain to the connect-src directive in your CSP
You can add the domain “https://region1.analytics.google.com” to the connect-src directive in your website’s CSP. This will allow the GA4 Pixel to connect to the analytics server and track events on your checkout pages. For example, you could add this to your CSP header:
connect-src ‘self’ *.shopifycs.com https://region1.analytics.google.com;
- Modify the CSP policy in your Shopify store
You may be able to modify the CSP policy in your Shopify store to allow the GA4 Pixel to connect to the analytics server. This can be done by editing the “content_security_policy” section of your Shopify theme’s “config/settings_data.json” file. You can add the following to the “content_security_policy” section:
“connect-src”: “‘self’ *.shopifycs.com https://region1.analytics.google.com”,
-
Contact Shopify support
If you’re still having trouble after trying the above solutions, you may want to contact Shopify’s support team for assistance. They may be able to help you troubleshoot the issue or escalate it to the appropriate team for further investigation. -
Contact Google support
You can also try contacting Google’s support team for further assistance with the issue. They may be able to provide more specific guidance on how to resolve the CSP issue with your GA4 Pixel.
I hope these suggestions help you resolve the issue and successfully track events on your checkout pages with the GA4 Pixel.
Gina