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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Coffee Break: Join us on Wednesday, April 5th at 10am PT to chat with Ben Gaines, Director of Product Management for Adobe Analytics. Ben will be online to answer your Analytics and Adobe Summit questions.

Uncaught EvalError: Refused to evaluate a string as JavaScript because \'unsafe-eval\' is not an allowed source of script in the following Content Security Policy directive: "script-src * \'unsafe-inline\'".

Avatar

Level 1

Facing unsafe-eval error while using appmeasurement and plugin code to trigger the page view.

Can you provide a solution and correct me the script to use the script to get the page view.

 

 

Example : how to use the alternate solution of not using eval for this below one.

 

//Utility Function: vpr - set the variable vs with value v
s.vpr=new Function("vs","v","if(typeof(v)!='undefined' && vs){var s=this; eval('s.'+vs+'=\"'+v+'\"')}");

 

Thanks,

Santhosh.

0 Replies