How can I add Facebook Pixel base code without using 'document' variable?

Hi guys, I have a problem when trying to add facebook pixel base code.

Strict sandbox using web worker, so i cant use ‘document’ variable.

Is there any solution so that i can declare and use facebook pixel here?

1 Like