javascript - AB Testing (GA) - Menu bar changes for multiple web pages -
i using google analytics ab testing. did test using multiple variations 1 page without using redirects this article , worked well.
i want use same test menu of website. css changes , planning on using jquery change class of menu depending on variation user gets.
my main concern whether possible achieve. if include ga code layout code, should have condition see if menu available page run test? need add url's other pages have menu? or do test similar how 1 in article like?
if has done test this, advice appreciated.
1st - relevant audience
make sure have equal possibility display menu both tested groups (menu available visitors) - original variant - changed menu variant
2nd - custom dimensions
create custom dimension in google analytics (session scope)
3rd - decision mechanism
use math.random() reach 50% probability each variant. dave information cookie , since time, use variant particular user time test running
4th - set ga tracker
ga("set","dimension2","variant b");
5th - modify structure
change menu structure/design/behavior
6th - track pageview
ga("send","pageview")
7th - set event listeners
if want capture specific behavior, set event listeners particular points of website track them. useful, if name events like:
category: a/b action: menu click label: subcategory best articles
8th - conversion goals
in google analytics set conversion goal new event (from step 8).
9th - create custom report
use new event , custom dimension see performance of experiments.
ps: if first time, test mechanism a/a test. mean there technically 2 variants 100% same content, mechanisms on background working. after this, run test.
Comments
Post a Comment