Jump to content

Google Optimize

Recommended Posts

  • 2 weeks later...
  • Replies 4
  • Views 2.7k
  • Created
  • Last Reply
  • 3 months later...
On 2/6/2020 at 2:17 AM, Markjack0 said:

Site URL: https://ww.oddbox.co.uk

Hello, 

I'm having trouble adding my Google Optimize snippet to custom code without breaking my existing GA tagging. Has anyone been able to successfully setup? Also, once in Google Optimize, any experiments I create don't display in live. I'm doing something wrong but I don't know what?

I'm new to SQS so would appreciate any pointers

Thanks, 

Mark

Where exactly are you adding it? /config/settings/advanced/code-injection ?

Link to comment

I'm having a problem installing google optimize on a squarespace website.

It seems like it could be a CSP issue. When I try to check the optimize installation from the optimize dashboard, it opens the site and there is an alert in the browser (see attachment)

I am also getting some cookie warnings and the following console error: Refused to execute script from 'https://accounts.google.com/ServiceLogin?service=analytics&passive=xxxxxxx&continue=https://optimize.google.com/optimize/inject/inject.js?...' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. (see attachment)

If anyone knows a solution, that would be amazing. 

The optimize snippet is added in  /config/settings/advanced/code-injection header

Screen Shot 2020-05-29 at 10.18.41 AM.png

Screen Shot 2020-05-29 at 10.16.53 AM.png

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.