Has anyone successfully implemented Google Optimize using DTM?

Avatar

Avatar

umang1

Avatar

umang1

umang1

12-03-2017

Hi all,

Recently I got invitation to use Google's new tool Google Optimize. I have been trying to add it using Adobe's DTM using Google Universal Analytics tool and adding the container tag using "Customize Page Code" option. The Optimize libraries are being called, however I am seeing following error in the page console itself:

"Refused to execute script from 'https://optimize.google.com/optimize/inject/inject.js........ because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled."

Just wondering anyone out there has been able to successfully inject Google Optimize using Adobe's DTM?

Umang

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

308

Correct Answer

570

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

308

Correct Answer

570
jantzen_belliston-Adobe
Community Manager

14-03-2017

Hi Umang,

I'm not familiar with Google Optimize, but it seems like the error you were receiving is a pretty common one. A quick web search of "MIME type ('text/html') is not executable, and strict MIME type checking is enabled" brought back several links from Stack Overflow and Get Hub with similar issues. From the threads I read, it looks like it may be a configuration issue with the script and the web server. 

Have you tried deploying the Google library outside of DTM on a test site? If you still receive the error when deploying the code outside of DTM, we know that the error must be coming from the library itself.

Cheers,

Jantzen

Answers (0)