Metric for viewing two pages
I am trying to create an event for a user hitting two separate pages. I know that I can create a pageview goal for 1 of several pages, but I need this to only fire when a user visits both pages. Is there a way to do this with a standard pageview event? Or do I need to figure out a way to do this through code?
I don't think the normal process of creating an event will be enough for your use case. The big question is: how can we track user behavior or determine that the user has already visited a specific webpage?
In my knowledge, you will surely need some kind of code which will
1) store the webpage visit information on a cookie,
2) check the cookie and fire a custom event if the visitor has gone to both webpages.
This link will get more details on how to create a custom event: https://help.optimizely.com/Build_Campaigns_and_Experiments/Custom_events_in_Optimizely_X
If I understand correctly, you want a conversion metric on your optimizely test that says that a user hit 2 specific pages (meaning they have to hit both pages). Does the order of these page visits matter, or do they always go from one to the other? If there is an order, you could use the last page (since the first was passed through to get there). If not, you may try creating that metric within your analytics tool. I've done that before in Adobe Analytics, and it is usually pretty simple.