MVT test when page is made up of two templates

User Name asked on April 7, 2015 15:54

I'm trying to setup a new MVT test so that I can change a button on our homepage to be a different colour. I figured out how to setup a new variant for the button on that page, but we have a second button above it in the navigation that also needs to be changed. The problem is that the second button is in the master page - a separate template.

I want both buttons to change to green for the test, but it seems that you can't just set someone to be in a single MVT bucket and then use that in two places in the CMS. Ideally I'd like to be able to use the same MVT codename on two pages so that they both read from the same cookie and both flip to variant 1 or 2 together.

Is there a way around this?

Recent Answers

User Name answered on April 9, 2015 23:40

Any advice?

0 votesVote for this answer Mark as a Correct answer

Brian McKeiver answered on April 12, 2015 17:25

Not that I know off. The MVT tests I have seen all revolve around the same page template. I can't think of a way to make them happen across page templates either on the server side.

However, with that being said, what about on your test variant that you are changing the button to a green color you drop a snippet of jQuery that finds the master page button and changes it via client side code? That way you are running the same test on just one page template ?


0 votesVote for this answer Mark as a Correct answer

David Komárek answered on June 10, 2015 08:05

Hello, as Brian metnioned, the javascript approach may indeed work in this case. Basically, once the page is loaded and the MVT cookie is set, all conversions are being logged to this MVT variant as well. Therefore if your button (that comes fromt the master page) is tracking conversions, they will be correctly assigned to your MVT variant event thought the button is not part of the actual page template.

The only thing missing is indeed changing the appearence, which can be handled by javascript.


0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.