Has anyone deployed the opinionLab invitation feedback/survey code? I am struggling to get this up an running. I am pretty sure the issue is two fold. The first issue is I am not sure how best to include the following code on our site.

Gold Contributor
Gold Contributor
/* Run the Invitation Feedback instance */ new OOo.Invitation({ /* REQUIRED fields */ pathToAssets: '/onlineopinionV5/' /* Optional fields */ , promptTrigger: /products/ }); I believe it is probably best to set this up in a JS extension and scope it to our OpinionLab tag. The second issue I have is mapping the pathToAssets. I cannot simply drop all the files in a folder on the server. I have to get all the files include in our content management system. So I thought I could potential create another JS extension and map to opinionlab that uses Jquery to append the invitation html to all pages. Something like this: $j(document).ready(function() { $j( "body" ).append( "
Close Comment CardX

We Value Your Opinion!

After your website visit, would you be willing to answer a few brief questions?

"); });
3 REPLIES 3

Has anyone deployed the opinionLab invitation feedback/survey code? I am struggling to get this up an running. I am pretty sure the issue is two fold. The first issue is I am not sure how best to include the following code on our site.

Tealium Employee
Hi Joe, Looking at the feedback/survey code it appears to be just an initiation of an object so adding this to a JS extension and scoping to Opinion lab should do the trick. It confuses me though how this gets triggered: is this a trigger event that gets fired or just a settings/configs object that needs to be declared? In regard to injecting the code, you should be able to use the Content Modification extension. It only runs on DOM Ready like your code. You then just need to find a DOM ID to append to (After Node) and paste the HTML into the input. The other clarification I need is that the HTML code has no trigger event tied to the "Yes, I would" click. The "No thanks" onclick calls 'OOo.hidePrompt()' so it seems that the "Yes, I would" onclick would call 'OOo.showPrompt()' or whatever it is that triggers the survey. I'm not too sure how you can get around the pathToAssets. Mainly I don't see how injecting this code into HTML will resolve your problem. Is the pathToAssets just the HTML and CSS that displays the survey? I apologize for not giving a better answer as I'm not that familiar with the tag or what is trying to be accomplished. But hopefully this points you in the right direction and with a few follow-up questions gets you what you need. Cheers, -Dan

Has anyone deployed the opinionLab invitation feedback/survey code? I am struggling to get this up an running. I am pretty sure the issue is two fold. The first issue is I am not sure how best to include the following code on our site.

Gold Contributor
Gold Contributor
There is some additional js code I did not paste that handles the triggering. /* OPTIONAL - Configuration */ responseRate: 100, //Percentage of users who will receive the invitation repromptTime: 7776000, //90 days in seconds promptDelay: 3, //Time in seconds prompt will be delayed The html does have some triggered events tied to the the yes and no buttons. div id="oo_invitation_prompt"> div id="oo_close_prompt" onclick="OOo.hidePrompt()">span class="screen_reader">Close Comment CardX/div> div id="oo_company_logo">/div> h1>We Value Your Opinion!/h1> p>After your website visit, would you be willing to answer a few brief questions?/p> div id="prompt_buttons"> a href="javascript:void(0)" id="oo_launch_prompt">Yes, I would/a> a href="javascript:void(0)" id="oo_no_thanks" onclick="OOo.hidePrompt()">No thanks/a> a href="javascript:void(0)" id="oo_never_show" style="visibility:hidden;color:#252525;text-decoration:none;border:1px solid #cccccc;padding:5px 11px;">Don't ask again/a> /div> div id="oo_ol_brand">/div> /div> The pathtoassets is supposed to house the html css and various other js files olab uses, including the one that is now utag.#.js. I can email you all the files and instructions if you would like. Best, Joe

Has anyone deployed the opinionLab invitation feedback/survey code? I am struggling to get this up an running. I am pretty sure the issue is two fold. The first issue is I am not sure how best to include the following code on our site.

Tealium Employee
Hi Joe, I would suggest sending them to your AM who can loop in an SE who is familiar with the site and implementation. I think that would better suit your needs. Please be sure to post the answer back here once it the solution is in place.
Public