Has anyone successfully implemented Google Optimize using DTM?

Avatar

Avatar
Validate 1
Level 2
umang1
Level 2

Likes

7 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
umang1
Level 2

Likes

7 likes

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
View profile
umang1
Level 2

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
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
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)