I have installed Google Optimize by adding the code to the Google Analytics Addon- Google advise that the Optimize script is placed before Analytics.
The following is showing up above the navigation bar at the top of my site.
async-hide {opacity: 0 !important}.
Please see the image:
You can see the script in the Inspect of Chrome.
Google refers here on how to implement this piece of code:
Google advises that
"In some cases you need to customize the page-hiding snippet. The most common reasons are:
to support loading multiple Optimize containers
to extend the callback timeout
to change the name of the class added to the element
Changing the timeout
To change the default amount of time Optimize will wait before removing the .async-hide class from the element (in the event Optimize takes too long to load), update the number passed at the end of the snippet.
The following code will wait 5000 milliseconds before showing the page:
.async-hide { opacity: 0 !important}Changing the async-hide class name
If the async-hide class name is already defined in your CSS, you can choose a different name. To change the name, update the class in both the tag as well as the argument passed at the end of the snippet."
Please can you advise me what the problem is? is it the way the code is implemented- do I need to change the class?
Many thanks for your help,
Alexandra