_version: "1" _name: DesktopVisitors - Optimization Event - New Balance Shoes _metadata: base_url: https://www.ebay.com/ treeShakeDependencies: false dependencies: [] deviceSettings: device: show-by-default: true default: true title: Laptop with MDPI screen screen: horizontal: width: 1280 height: 800 device-pixel-ratio: 1 vertical: width: 800 height: 1280 capabilities: [] user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 type: notebook modes: - title: default orientation: horizontal insets: left: 0 top: 0 right: 0 bottom: 0 orientation: horizontal zoomFactor: 1 web: 3uq2fz94x: _id: 3uq2fz94x _display_name: New Balance Shoes _metadata: page_def: is_entry_context: true domain_match_type: full path_match_type: exact reference_urls: - https://www.ebay.com/itm/New-Balance-Mens-574-Shoes-Navy-with-Brown/193802800961 - https://www.ebay.com/itm/PUMA-Womens-UP-Sneakers/274550072608 _pattern: itm/New-Balance-Mens-574-Shoes-Navy-with-Brown/193802800961 script: >- var buyBtn = document.querySelector('body.vi-bb-flex.vi-bb-btnclr1 #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim'); var addBtn = document.querySelector('#Body #CenterPanelDF .watch-redesign.new-brdr-btns #atcRedesignId_btn'); buyBtn.addEventListener("click", function() { // send event on primary CTA click window.evolv.client.emit('button.buy_it_now.click'); }); addBtn.addEventListener("click", function() { // send event on secondary CTA click window.evolv.client.emit('button.add_to_cart.click'); }); styles: "" fatd5if07: _id: fatd5if07 _display_name: 1 Buy It Now CTA color _metadata: null _values: - _display_name: Control _metadata: generated_control: true _value: type: noop - _display_name: 1 Purple _metadata: {} _value: id: aosm2b9xs type: compound _metadata: {} script: "" styles: >- #Body #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim { background-color: purple !important; border: 1px solid purple; } _screenshots: [] - _display_name: 2 Orange _metadata: {} _value: id: n9a1750xn type: compound _metadata: {} script: "" styles: >- #Body #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim { background-color: orange !important; border: 1px solid orange; } _screenshots: [] _expanded: true _expanded: true wq698vqt7: _id: wq698vqt7 _display_name: 2 Buy It Now CTA text _metadata: null _values: - _display_name: Control _metadata: generated_control: true _value: type: noop - _display_name: 1 Hello _metadata: {} _value: id: 7ghjq6omj type: compound _metadata: {} script: "" styles: >- #Body #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim { content: ""; font-size: 0; } #Body #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim:after { content: "Hello"; display: inline-block; font-size: 14px; vertical-align: middle; line-height: normal; } #Body #CenterPanelDF .watch-redesign.new-brdr-btns #atcRedesignId_btn { background-color: red !important; } _screenshots: [] - _display_name: 2 Get it! _metadata: {} _value: id: qfs9r1r6c type: compound _metadata: {} script: "" styles: >- #Body #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim { content: ""; font-size: 0; } #Body #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim:after { content: "Get it!"; display: inline-block; font-size: 14px; vertical-align: middle; line-height: normal; } _screenshots: [] - _display_name: 3 I want it _metadata: {} _value: id: tu856bqea type: compound _metadata: {} script: "" styles: >- #Body #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim { content: ""; font-size: 0; } #Body #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim:after { content: "I want it!"; display: inline-block; font-size: 14px; vertical-align: middle; line-height: normal; } _screenshots: [] _expanded: true _config: _id: 3uq2fz94x _type: url _is_entry_point: true _predicate: combinator: and rules: - field: web.url operator: regex64_match value: L2h0dHBzPzpcL1wvd3d3LmViYXkuY29tXC9pdG1cL05ldy1CYWxhbmNlLU1lbnMtNTc0LVNob2VzLU5hdnktd2l0aC1Ccm93blwvMTkzODAyODAwOTYxJC9p _initializers: - type: javascript code: >- var buyBtn = document.querySelector('body.vi-bb-flex.vi-bb-btnclr1 #CenterPanelDF .watch-redesign.new-brdr-btns a.btn-prim'); var addBtn = document.querySelector('#Body #CenterPanelDF .watch-redesign.new-brdr-btns #atcRedesignId_btn'); buyBtn.addEventListener("click", function() { // send event on primary CTA click window.evolv.client.emit('button.buy_it_now.click'); }); addBtn.addEventListener("click", function() { // send event on secondary CTA click window.evolv.client.emit('button.add_to_cart.click'); }); 0ooayl7xh: _id: 0ooayl7xh _display_name: Checkout _metadata: page_def: is_entry_context: true domain_match_type: full path_match_type: simple reference_urls: - https://pay.ebay.com/rxo?action=view&sessionid=1557410319018 - https://pay.ebay.com/rxo?action=view&sessionid=12347890 - https://pay.ebay.com/rxo?action=pay&sessionid=abcd _pattern: rxo script: >- // Send event on page load evolv.client.emit('page.checkout.loaded') styles: "" _config: _id: 0ooayl7xh _type: url _is_entry_point: true _predicate: combinator: and rules: - field: web.url operator: regex64_match value: L2h0dHBzPzpcL1wvcGF5LmViYXkuY29tXC9yeG9cLz8oPzokfFw/fCMpL2k= _initializers: - type: javascript code: >- // Send event on page load evolv.client.emit('page.checkout.loaded') _combination_previews: - uri: evolv-web://view/{account_id}/{metamodel_id}/{metamodel_version}?project_name={project_name}&combination={combination} display_name: Preview in Web Editor - uri: https://www.ebay.com/itm/New-Balance-Mens-574-Shoes-Navy-with-Brown/193802800961#evolvCandidateToken={candidate_token} display_name: Preview in Browser _config: dependencies: ""