Expand my Community achievements bar.

SOLVED

Prehiding snippet for Target (Web SDK) not working.

Avatar

Level 2

Hello community!

I have implemented the target functionality using the web SDK and added the prehiding snippet above the launch script. However, I'm facing an issue where the website doesn't hide before target modifications. Currently, upon loading the page, I can observe the default version initially, and after 2-3 seconds, the target experience appears.

Can anyone help in understanding why my prehiding snippet isn't functioning as expected.

SaiGaneshReddy_0-1691065172266.png


Thanks
Sai

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Looks like there's a small error in the documentation because the snippet provided includes .body as a selector, which isn't correct, it should just be body. e.g. it should be "body { opacity: 0 !important }" not 

".body { opacity: 0 !important }"

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Looks like there's a small error in the documentation because the snippet provided includes .body as a selector, which isn't correct, it should just be body. e.g. it should be "body { opacity: 0 !important }" not 

".body { opacity: 0 !important }"