Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

OpinionLab deployment in DTM: who successfully implemented this.

Avatar

Avatar
Validate 1
Level 1
alla_omelchenk1
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
alla_omelchenk1
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
alla_omelchenk1
Level 1

15-10-2015

Previously the Opinion lab was set via page load rule with non-sequential javascript which looked like that:

(function () {
        // MAIN OL ENGINE 
        var voc2 = document.createElement("script");
        var b = document.getElementsByTagName('body')[0];
        voc2.language = "javascript";
        voc2.type = "text/javascript";
        voc2.charset = "windows-1252";
        
        voc2.src = "//xx-tagging.s3.amazonaws.com/onlineopinionV7/oo_engine_invite.min.js";
    
        b.appendChild(voc2, b);
    }());

 

As Opinion Lab changed their set up now I need to load three new files via DTM: oo_engine.js, oo_config.js and oo_style.js . Is the best to host the files locally and reference them like shown above or place the actual code in the three separate page load rules? I'd really appreciate if anybody could share their experience. Also I need to make sure the engine file is loaded prior the configuration file. What is the best way to achieve this?

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
Level 4
mikethompson
Level 4

Likes

62 likes

Total Posts

102 posts

Correct Reply

14 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Contributor
Level 4
mikethompson
Level 4

Likes

62 likes

Total Posts

102 posts

Correct Reply

14 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
mikethompson
Level 4

15-10-2015

We put the content of the .js files in a third party tag with sequential javascript (you can order them in there by dragging them around so the oo_engine fires first) in a page load rule triggered on top of the page. You should probably load all the files from the same page load rule in order to get the sequencing correct.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
alla_omelchenk1
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
alla_omelchenk1
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
alla_omelchenk1
Level 1

15-10-2015

Thanks. I will try it.