_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: kk42zkh1s: _id: kk42zkh1s _display_name: Product Landing Page _metadata: page_def: is_entry_context: true domain_match_type: full path_match_type: simple reference_urls: - https://www.ebay.com/b/Mens-Shoes/93427/bn_61999 _pattern: b/Mens-Shoes/93427/bn_61999 script: >- // Send event on Product landing page load evolv.client.emit('page.product_landing.loaded'); styles: "" _config: _id: kk42zkh1s _type: url _is_entry_point: true _predicate: combinator: and rules: - field: web.url operator: regex64_match value: L2h0dHBzPzpcL1wvd3d3LmViYXkuY29tXC9iXC9NZW5zLVNob2VzXC85MzQyN1wvYm5fNjE5OTlcLz8oPzokfFw/fCMpL2k= _initializers: - type: javascript code: >- // Send event on Product landing page load evolv.client.emit('page.product_landing.loaded'); timing: immediate timingSelectors: [] l8xysl3rz: _id: l8xysl3rz _display_name: New Balance Shoe PDP _metadata: page_def: is_entry_context: true domain_match_type: full path_match_type: simple reference_urls: - https://www.ebay.com/itm/193802800961 _pattern: itm/193802800961 script: >- // TODO: Add page load event for PDP 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'); // send event on primary CTA click buyBtn.addEventListener("click", function() { window.evolv.client.emit('button.buy_it_now.click'); }); // send event on secondary CTA click addBtn.addEventListener("click", function() { window.evolv.client.emit('button.add_to_cart.click'); }); styles: "" wqpuetrtz: _id: wqpuetrtz _display_name: 1 Buy it now CTA color _metadata: null _values: - _display_name: Control _metadata: generated_control: true _value: type: noop - _display_name: Untitled Variant _metadata: {} _value: id: lyee24i6u type: compound _metadata: {} script: "" styles: "" _screenshots: [] - _display_name: 1 Purple _metadata: {} _value: id: vun0e4wor type: compound _metadata: {} script: "" styles: "" _screenshots: [] _expanded: true _expanded: true bi8tcmfa6: _id: bi8tcmfa6 _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: otrn1qhhi type: compound _metadata: {} script: "" styles: "" _screenshots: [] - _display_name: 2 Get it! _metadata: {} _value: id: 6lxdqwh7o type: compound _metadata: {} script: "" styles: "" _screenshots: [] - _display_name: 3 I want it _metadata: {} _value: id: k9jdebmgr type: compound _metadata: {} script: "" styles: "" _screenshots: [] _expanded: true _config: _id: l8xysl3rz _type: url _is_entry_point: true _predicate: combinator: and rules: - field: web.url operator: regex64_match value: L2h0dHBzPzpcL1wvd3d3LmViYXkuY29tXC9pdG1cLzE5MzgwMjgwMDk2MVwvPyg/OiR8XD98IykvaQ== _initializers: - type: javascript code: >- // TODO: Add page load event for PDP 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'); // send event on primary CTA click buyBtn.addEventListener("click", function() { window.evolv.client.emit('button.buy_it_now.click'); }); // send event on secondary CTA click addBtn.addEventListener("click", function() { window.evolv.client.emit('button.add_to_cart.click'); }); timing: immediate timingSelectors: [] hocnqx79q: _id: hocnqx79q _display_name: Cart Page _metadata: page_def: is_entry_context: true domain_match_type: full path_match_type: simple reference_urls: - https://cart.ebay.com/ _pattern: "" script: > // TODO: Add Cart page load event styles: "" _config: _id: hocnqx79q _type: url _is_entry_point: true _predicate: combinator: and rules: - field: web.url operator: regex64_match value: L2h0dHBzPzpcL1wvY2FydC5lYmF5LmNvbVwvXC8/KD86JHxcP3wjKS9p _initializers: - type: javascript code: > // TODO: Add Cart page load event timing: immediate timingSelectors: [] wlsy4bjv2: _id: wlsy4bjv2 _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: > // TODO: Add checkout page load event styles: "" _config: _id: wlsy4bjv2 _type: url _is_entry_point: true _predicate: combinator: and rules: - field: web.url operator: regex64_match value: L2h0dHBzPzpcL1wvcGF5LmViYXkuY29tXC9yeG9cLz8oPzokfFw/fCMpL2k= _initializers: - type: javascript code: > // TODO: Add checkout page load event timing: immediate timingSelectors: [] _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/b/Mens-Shoes/93427/bn_61999#evolvCandidateToken={candidate_token} display_name: Preview in Browser _config: dependencies: ""