Has anyone successfully implemented Google Optimize using DTM? | Community
Skip to main content
New Participant
March 13, 2017
Solved

Has anyone successfully implemented Google Optimize using DTM?

  • March 13, 2017
  • 1 reply
  • 1541 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by jantzen_b

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

1 reply

jantzen_b
jantzen_bAccepted solution
Employee
March 15, 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