Implementing Pre-hiding Snippet in Adobe Launch for AEM Site | Community
Skip to main content
Bhuwan_B
Community Advisor
Community Advisor
March 20, 2024
Solved

Implementing Pre-hiding Snippet in Adobe Launch for AEM Site

  • March 20, 2024
  • 1 reply
  • 2904 views

As per documentation, the pre-hiding snippet is typically hardcoded before the launch tag, but I am seeking guidance on integrating it within Adobe Launch(integrated with AEM using ims approach) itself. Additionally, any best practices or recommendations for this integration would be greatly appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gokul_Agiwal

Hi @bhuwan_b  

Thank you for coming back to me. To be honest, I've had tried this approach in my project where the flicker impact noticeable if you have implemented pre-hide snippet through tag manager.  Also other issues been seen like other third party script conflict with pre hide code (sometimes) execution wise and moreover it's impacting the core web vitals metrics like the default timeout values on anti-flicker snippets are set high (3 seconds) especially when we consider the limits that are placed on metrics like Largest Contentful Paint.

 

So we decided to go with hard coded with less time out and able to measure the impact of pre hide snippet code using User Timings

 

I've followed below article which explain nicely.

https://andydavies.me/blog/2020/11/16/the-case-against-anti-flicker-snippets/ 

 

Hope this helps. 

1 reply

Gokul_Agiwal
Community Advisor
Community Advisor
March 20, 2024

Hello @bhuwan_b 

Do you mean adding the pre-hide snippet through tag manager - Adobe Launch rather hard coded on page and seeing the impact is this understanding correct? 

Bhuwan_B
Community Advisor
Bhuwan_BCommunity AdvisorAuthor
Community Advisor
March 21, 2024

Yes @gokul_agiwal , that's what I am looking for.

Gokul_Agiwal
Community Advisor
Gokul_AgiwalCommunity AdvisorAccepted solution
Community Advisor
March 22, 2024

Hi @bhuwan_b  

Thank you for coming back to me. To be honest, I've had tried this approach in my project where the flicker impact noticeable if you have implemented pre-hide snippet through tag manager.  Also other issues been seen like other third party script conflict with pre hide code (sometimes) execution wise and moreover it's impacting the core web vitals metrics like the default timeout values on anti-flicker snippets are set high (3 seconds) especially when we consider the limits that are placed on metrics like Largest Contentful Paint.

 

So we decided to go with hard coded with less time out and able to measure the impact of pre hide snippet code using User Timings

 

I've followed below article which explain nicely.

https://andydavies.me/blog/2020/11/16/the-case-against-anti-flicker-snippets/ 

 

Hope this helps.