I am using Google Analytics for AB testing. I recently did a test for using multiple variations for one page without using redirects from this article and it worked well.
I want to use this same test for the menu of my website. It is just some CSS changes and I am planning on using JQuery to change the class of the menu depending on the variation the user gets.
My main concern is whether this is possible to achieve. If I include the GA code to my layout code, should i have a condition to see if the menu is available for that page to run the test? Do I need to add the URL's for the other pages that have the menu? or Do I do my test similar to how the one in the article was like?
If anyone has done a test like this, some advice would be appreciated.