SlideShare una empresa de Scribd logo
1 de 26
Descargar para leer sin conexión
Solutions Architect
Maximizing Optimizely
Performance
Brad Taylor
Optimization Is A Journey
1. Snippet Implementation
2. Snippet Delivery and Timing
3. Common Causes of Flashing
4. Snippet & Website Performance
5. Tips & Tricks
Webinar Agenda
Snippet Implementation
Recommended Snippet Placement
Your jQuery
Your visitor / page-level
data (optional)
Optimizely custom tags
(optional)
Optimizely snippet (required)
Optimizely Revenue
(recommended on
confirmation page only)
Optimizely Snippet Implementation + external data:
Your Analytics
Platform
Technical: Sync vs Async Snippet
Synchronous (recommended) Asynchronous
Definition: Loading of the included file is performed to
completion before any more of the including page is
rendered/executed
Definition: The page to carry on rendering/
executing while at the same time loading the
specified included file
Pros:
•Reduce potential for page flashing
•Avoid analytics integration timing issues
Pros:
•Avoid page load delay
Cons:
•May delay page load
Cons:
•Higher potential for page flashing
•May encounter timing issues with analytics
integrations
• Load synchronously
• Fire the Optimizely snippet before other content

...including analytics tags
• Don’t add the tag manager at the bottom of the page
Technical: Tag Managers
Best Practices:
Snippet Delivery
and Timing
Optimizely CDN Delivery
A content delivery network (CDN) is a system of distributed servers (network) that deliver webpages and
other Web content to a user based on the geographic locations of the user, the origin of the webpage and a
content delivery server.
Technical: Order of Execution
• URL Targeting
• Audiences
• Segmentation
Fail
targeting
conditions
Targeting
Conditions
Traffic
Allocation
Snippet Loads
Excluded From
Experiment
Activation
Mode
• Evaluate whether experiment
should be activated at this time
Wait for
activation
condition / API
Experiment
Not EvaluatedExperiment 1
Experiment 2
Experiment 3
Check Next
Experiment
Check Next
Experiment
• Probability of inclusion in
experiment
• Probability of seeing a variation
Fail traffic
allocation
requirements
Excluded From
Experiment
Check Next
Experiment
Visitor is Bucketed into a Variation
10 year cookie is set on visitors browser so they will see this same version every time they revisit the site.
*
A B
Pass targeting conditions
*
*
Technical: Order of Execution
Experiment 1:
Variation 1
Experiment 3:
Original
• Runs safely as the DOM
is loading
• Is executed for every variation
of the experiment, including the
original
Experiment
Javascript &
CSS
Variation Code
Executes
Execute Next
Experiment
Experiment Prioritization:
1. Redirect Experiment
2. Experiments with /* _optimizely_evaluate=force */
3. Order in which they were created (subject to change and should
not be relied on)
Prioritize
Experiments
*
*
Technical: Snippet Timing Logic
Is it jQuery?
Does the line follow this format:
$(selector).action()
Is it JavaScript?
Manual Javascript that might
not be safe to run.
Is the element on
the page?
Evaluate next
line of code
YES
NO
Wait 50ms,
retry line
Wait until DOM is
ready
New line
of code
DOM not
ready
DOM is not ready… Execute code if ready
DOM is ready… Safe to evaluate all code
DOM
Ready
Evaluate remainder of
variation code
Need to force JS to run
earlier?
/* _optimizely_evaluate=force */
(JS variation code)
/* _optimizely_evaluate=safe */
Technical: Editor Markup
Special Code Editor Markup
• Evaluate = Force
/* _optimizely_evaluate=force */
some javascript here;
/* _optimizely_evaluate=safe */
• Editor Only
/* _optimizely_evaluate=editor_only */
some code here;
/* _optimizely_evaluate=end_editor_only */
• No Cookie
/* _optimizely_redirect_no_cookie=http://www.example.com */
If you use the evaluate force tag, the snippet will try to execute the
Javascript immediate and will not try again when the element is available.
Code: Use Timeout with Evaluate Force
/* _optimizely_evaluate=force */
var cssSelector = “”;
myOptyInterval1 = setInterval(function() {
if ($(cssSelector).length > 0) {
// Add your custom code here
………….
………….
// leave this clearInterval
clearInterval(myOptyInterval1);
}
}, 50);
/* _optimizely_evaluate=safe */
Technical: Optimizely Log
Viewing the Optimizely Log:
• Add a query parameter to the end of the URL: 

?optimizely_log=true

• Run the following line in the browser console:

window['optimizely'].push(["log"]);
Optimizely /
Segmenter
Evaluates the optimizelySegments
cookie to determine existing visitor
segments
Optimizely /
Condition
Evaluates conditions for
segmentation, audiences,
dimensions, and targeting
Optimizely /
Distributor
Traffic allocation process to distribute
visitor into an experiment variation
Optimizely /
Evaluator
Execution of Optimizely variation
code
• Snippet Placement
• Asynchronous Loading
• Tag Manager
• Redirect experiment
• Use of regular Javascript in experiment
Common Flashing Issues
Code: Hide Element until changed
Custom Javascript Audience Variation Code
Add Javascript that will add css to your head and hide the element you are editing After you are done making your changes show the element
Website Performance
• Actual load time is what performance tools measure
• Perceived load time is what a human would measure
• Focus on content above the fold
• Lazy load images
• Progressive image rendering
Actual vs Perceived Page Load
Snippet Size
=< 400px
400px
~ 80KB
<script src="//cdn.optimizely.com/js/1234567.js"></script>
~ 50KB - 80KB
Tip: Snippet Optimization
• Include your own version
of jQuery
• Archive Old Experiments
• Remove Paused and Draft
Experiments from the
snippet
Evaluate Website Performance
(http://yslow.org/) (http://www.webpagetest.org/)
• Combine Javascript
file to limit HTTP
requests
• Hosted on same
CDN / server as your
current website
Self hosting: Pros & Cons
• Extra process needed
to sync the snippet
when it changes
• Multiple points of
failure
• CDN might not be as
good
ConsPros
Akamai
• 160,000 servers in 95
countries within over
1,200 networks
• All 20 top global
eCommerce sites
• Delivers between 15-30%
of all Web traffic
Optimizely Customers
Maximizing Optimizely Website Performance

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

How to find data insights that will drive a 10X impact
How to find data insights that will drive a 10X impact How to find data insights that will drive a 10X impact
How to find data insights that will drive a 10X impact
 
Prove It: Making the Case for Experimentation
Prove It: Making the Case for ExperimentationProve It: Making the Case for Experimentation
Prove It: Making the Case for Experimentation
 
Optimizely, HEMA & Farfetch - Unlock the Potential of Digital Experimentation...
Optimizely, HEMA & Farfetch - Unlock the Potential of Digital Experimentation...Optimizely, HEMA & Farfetch - Unlock the Potential of Digital Experimentation...
Optimizely, HEMA & Farfetch - Unlock the Potential of Digital Experimentation...
 
From Personalization to Individualization – Delivering a Unique Experience
From Personalization to Individualization – Delivering a Unique ExperienceFrom Personalization to Individualization – Delivering a Unique Experience
From Personalization to Individualization – Delivering a Unique Experience
 
Making Your Hypothesis Work Harder to Inform Future Product Strategy
Making Your Hypothesis Work Harder to Inform Future Product StrategyMaking Your Hypothesis Work Harder to Inform Future Product Strategy
Making Your Hypothesis Work Harder to Inform Future Product Strategy
 
Optimizely & Photobox - DON'T PANIC: The No-Confusion Experimentation Startup...
Optimizely & Photobox - DON'T PANIC: The No-Confusion Experimentation Startup...Optimizely & Photobox - DON'T PANIC: The No-Confusion Experimentation Startup...
Optimizely & Photobox - DON'T PANIC: The No-Confusion Experimentation Startup...
 
Run High Impact Experimentation with High-quality Customer Discovery
Run High Impact Experimentation with High-quality Customer DiscoveryRun High Impact Experimentation with High-quality Customer Discovery
Run High Impact Experimentation with High-quality Customer Discovery
 
Optimizely Workshop 1: Prioritize your roadmap
Optimizely Workshop 1: Prioritize your roadmapOptimizely Workshop 1: Prioritize your roadmap
Optimizely Workshop 1: Prioritize your roadmap
 
An Experimentation Framework: How to Position for Triple Digit Growth
An Experimentation Framework: How to Position for Triple Digit GrowthAn Experimentation Framework: How to Position for Triple Digit Growth
An Experimentation Framework: How to Position for Triple Digit Growth
 
Take Your Experimentation Program to the Next Level
Take Your Experimentation Program to the Next LevelTake Your Experimentation Program to the Next Level
Take Your Experimentation Program to the Next Level
 
Test Everything: TrustRadius Delivers Customer Value with Experimentation
Test Everything: TrustRadius Delivers Customer Value with ExperimentationTest Everything: TrustRadius Delivers Customer Value with Experimentation
Test Everything: TrustRadius Delivers Customer Value with Experimentation
 
Testing Across the Enterprise: How Cox Automotive Scales Experimentation to M...
Testing Across the Enterprise: How Cox Automotive Scales Experimentation to M...Testing Across the Enterprise: How Cox Automotive Scales Experimentation to M...
Testing Across the Enterprise: How Cox Automotive Scales Experimentation to M...
 
Clover Rings Up Digital Growth to Drive Experimentation
Clover Rings Up Digital Growth to Drive ExperimentationClover Rings Up Digital Growth to Drive Experimentation
Clover Rings Up Digital Growth to Drive Experimentation
 
How to Reduce Customer Acquisition Costs and Optimize Advertising Spend
How to Reduce Customer Acquisition Costs and Optimize Advertising SpendHow to Reduce Customer Acquisition Costs and Optimize Advertising Spend
How to Reduce Customer Acquisition Costs and Optimize Advertising Spend
 
Optimizely Experience Customer Story - Atlassian
Optimizely Experience Customer Story - AtlassianOptimizely Experience Customer Story - Atlassian
Optimizely Experience Customer Story - Atlassian
 
Opticon 2017 Decisions at Scale
Opticon 2017 Decisions at ScaleOpticon 2017 Decisions at Scale
Opticon 2017 Decisions at Scale
 
Evolving Experimentation from CRO to Product Development
Evolving Experimentation from CRO to Product DevelopmentEvolving Experimentation from CRO to Product Development
Evolving Experimentation from CRO to Product Development
 
Optimizely's Optimization Benchmark Findings Webinar Slides
Optimizely's Optimization Benchmark Findings Webinar SlidesOptimizely's Optimization Benchmark Findings Webinar Slides
Optimizely's Optimization Benchmark Findings Webinar Slides
 
Outperform Webinar Series: How to Capture Your Customers at the Top of the Fu...
Outperform Webinar Series: How to Capture Your Customers at the Top of the Fu...Outperform Webinar Series: How to Capture Your Customers at the Top of the Fu...
Outperform Webinar Series: How to Capture Your Customers at the Top of the Fu...
 
Getting Started with Server-Side Testing
Getting Started with Server-Side TestingGetting Started with Server-Side Testing
Getting Started with Server-Side Testing
 

Similar a Maximizing Optimizely Website Performance

Hybrid Automation Framework Developement
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework Developement
Glasdon Falcao
 

Similar a Maximizing Optimizely Website Performance (20)

Web Performance Optimization (WPO)
Web Performance Optimization (WPO)Web Performance Optimization (WPO)
Web Performance Optimization (WPO)
 
Testing - How Vital and How Easy to use
Testing - How Vital and How Easy to useTesting - How Vital and How Easy to use
Testing - How Vital and How Easy to use
 
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
Selenium Tips & Tricks, presented at the Tel Aviv Selenium MeetupSelenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
Selenium Tips & Tricks, presented at the Tel Aviv Selenium Meetup
 
Opticon18: Developer Night
Opticon18: Developer NightOpticon18: Developer Night
Opticon18: Developer Night
 
How to use selenium successfully
How to use selenium successfullyHow to use selenium successfully
How to use selenium successfully
 
Presentation Tier optimizations
Presentation Tier optimizationsPresentation Tier optimizations
Presentation Tier optimizations
 
Responsive design in plone
Responsive design in ploneResponsive design in plone
Responsive design in plone
 
Hybrid Automation Framework Developement
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework Developement
 
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
 
Fundamentals of HTML5
Fundamentals of HTML5Fundamentals of HTML5
Fundamentals of HTML5
 
How To Use Selenium Successfully
How To Use Selenium SuccessfullyHow To Use Selenium Successfully
How To Use Selenium Successfully
 
Developing High Performance Web Apps - CodeMash 2011
Developing High Performance Web Apps - CodeMash 2011Developing High Performance Web Apps - CodeMash 2011
Developing High Performance Web Apps - CodeMash 2011
 
Hangman for the Masses Showcase of Web Tech
Hangman for the Masses Showcase of Web TechHangman for the Masses Showcase of Web Tech
Hangman for the Masses Showcase of Web Tech
 
Meet Magento Belarus 2015: Uladzimir Kalashnikau
Meet Magento Belarus 2015: Uladzimir KalashnikauMeet Magento Belarus 2015: Uladzimir Kalashnikau
Meet Magento Belarus 2015: Uladzimir Kalashnikau
 
How To Use Selenium Successfully (Java Edition)
How To Use Selenium Successfully (Java Edition)How To Use Selenium Successfully (Java Edition)
How To Use Selenium Successfully (Java Edition)
 
Developing High Performance Web Apps
Developing High Performance Web AppsDeveloping High Performance Web Apps
Developing High Performance Web Apps
 
Mastering Test Automation: How to Use Selenium Successfully
Mastering Test Automation: How to Use Selenium Successfully Mastering Test Automation: How to Use Selenium Successfully
Mastering Test Automation: How to Use Selenium Successfully
 
Nsc 2013 06-17 - random rants on 2013
Nsc 2013 06-17 - random rants on 2013Nsc 2013 06-17 - random rants on 2013
Nsc 2013 06-17 - random rants on 2013
 
Justmeans power point
Justmeans power pointJustmeans power point
Justmeans power point
 
Testing mit Codeception: Full-stack testing PHP framework
Testing mit Codeception: Full-stack testing PHP frameworkTesting mit Codeception: Full-stack testing PHP framework
Testing mit Codeception: Full-stack testing PHP framework
 

Más de Optimizely

Más de Optimizely (20)

Make Every Touchpoint Count: How to Drive Revenue in an Increasingly Online W...
Make Every Touchpoint Count: How to Drive Revenue in an Increasingly Online W...Make Every Touchpoint Count: How to Drive Revenue in an Increasingly Online W...
Make Every Touchpoint Count: How to Drive Revenue in an Increasingly Online W...
 
The Science of Getting Testing Right
The Science of Getting Testing RightThe Science of Getting Testing Right
The Science of Getting Testing Right
 
Atlassian's Mystique CLI, Minimizing the Experiment Development Cycle
Atlassian's Mystique CLI, Minimizing the Experiment Development CycleAtlassian's Mystique CLI, Minimizing the Experiment Development Cycle
Atlassian's Mystique CLI, Minimizing the Experiment Development Cycle
 
Autotrader Case Study: Migrating from Home-Grown Testing to Best-in-Class Too...
Autotrader Case Study: Migrating from Home-Grown Testing to Best-in-Class Too...Autotrader Case Study: Migrating from Home-Grown Testing to Best-in-Class Too...
Autotrader Case Study: Migrating from Home-Grown Testing to Best-in-Class Too...
 
Zillow + Optimizely: Building the Bridge to $20 Billion Revenue
Zillow + Optimizely: Building the Bridge to $20 Billion RevenueZillow + Optimizely: Building the Bridge to $20 Billion Revenue
Zillow + Optimizely: Building the Bridge to $20 Billion Revenue
 
The Future of Optimizely for Technical Teams
The Future of Optimizely for Technical TeamsThe Future of Optimizely for Technical Teams
The Future of Optimizely for Technical Teams
 
Empowering Agents to Provide Service from Anywhere: Contact Centers in the Ti...
Empowering Agents to Provide Service from Anywhere: Contact Centers in the Ti...Empowering Agents to Provide Service from Anywhere: Contact Centers in the Ti...
Empowering Agents to Provide Service from Anywhere: Contact Centers in the Ti...
 
Experimentation Everywhere: Create Exceptional Online Shopping Experiences an...
Experimentation Everywhere: Create Exceptional Online Shopping Experiences an...Experimentation Everywhere: Create Exceptional Online Shopping Experiences an...
Experimentation Everywhere: Create Exceptional Online Shopping Experiences an...
 
Building an Experiment Pipeline for GitHub’s New Free Team Offering
Building an Experiment Pipeline for GitHub’s New Free Team OfferingBuilding an Experiment Pipeline for GitHub’s New Free Team Offering
Building an Experiment Pipeline for GitHub’s New Free Team Offering
 
AMC Networks Experiments Faster on the Server Side
AMC Networks Experiments Faster on the Server SideAMC Networks Experiments Faster on the Server Side
AMC Networks Experiments Faster on the Server Side
 
Overcoming the Challenges of Experimentation on a Service Oriented Architecture
Overcoming the Challenges of Experimentation on a Service Oriented ArchitectureOvercoming the Challenges of Experimentation on a Service Oriented Architecture
Overcoming the Challenges of Experimentation on a Service Oriented Architecture
 
How The Zebra Utilized Feature Experiments To Increase Carrier Card Engagemen...
How The Zebra Utilized Feature Experiments To Increase Carrier Card Engagemen...How The Zebra Utilized Feature Experiments To Increase Carrier Card Engagemen...
How The Zebra Utilized Feature Experiments To Increase Carrier Card Engagemen...
 
Kick Your Assumptions: How Scholl's Test-Everything Culture Drives Revenue
Kick Your Assumptions: How Scholl's Test-Everything Culture Drives RevenueKick Your Assumptions: How Scholl's Test-Everything Culture Drives Revenue
Kick Your Assumptions: How Scholl's Test-Everything Culture Drives Revenue
 
Experimentation through Clients' Eyes
Experimentation through Clients' EyesExperimentation through Clients' Eyes
Experimentation through Clients' Eyes
 
Shipping to Learn and Accelerate Growth with GitHub
Shipping to Learn and Accelerate Growth with GitHubShipping to Learn and Accelerate Growth with GitHub
Shipping to Learn and Accelerate Growth with GitHub
 
Optimizely Agent: Scaling Resilient Feature Delivery
Optimizely Agent: Scaling Resilient Feature DeliveryOptimizely Agent: Scaling Resilient Feature Delivery
Optimizely Agent: Scaling Resilient Feature Delivery
 
The Future of Software Development
The Future of Software DevelopmentThe Future of Software Development
The Future of Software Development
 
Practical Use Case: How Dosh Uses Feature Experiments To Accelerate Mobile De...
Practical Use Case: How Dosh Uses Feature Experiments To Accelerate Mobile De...Practical Use Case: How Dosh Uses Feature Experiments To Accelerate Mobile De...
Practical Use Case: How Dosh Uses Feature Experiments To Accelerate Mobile De...
 
Using Empathy to Build Custom Solutions at Scale
Using Empathy to Build Custom Solutions at ScaleUsing Empathy to Build Custom Solutions at Scale
Using Empathy to Build Custom Solutions at Scale
 
Targeted Rollouts: How to Release Features to Multiple Audiences
Targeted Rollouts: How to Release Features to Multiple AudiencesTargeted Rollouts: How to Release Features to Multiple Audiences
Targeted Rollouts: How to Release Features to Multiple Audiences
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 

Maximizing Optimizely Website Performance

  • 3. 1. Snippet Implementation 2. Snippet Delivery and Timing 3. Common Causes of Flashing 4. Snippet & Website Performance 5. Tips & Tricks Webinar Agenda
  • 5. Recommended Snippet Placement Your jQuery Your visitor / page-level data (optional) Optimizely custom tags (optional) Optimizely snippet (required) Optimizely Revenue (recommended on confirmation page only) Optimizely Snippet Implementation + external data: Your Analytics Platform
  • 6. Technical: Sync vs Async Snippet Synchronous (recommended) Asynchronous Definition: Loading of the included file is performed to completion before any more of the including page is rendered/executed Definition: The page to carry on rendering/ executing while at the same time loading the specified included file Pros: •Reduce potential for page flashing •Avoid analytics integration timing issues Pros: •Avoid page load delay Cons: •May delay page load Cons: •Higher potential for page flashing •May encounter timing issues with analytics integrations
  • 7. • Load synchronously • Fire the Optimizely snippet before other content
 ...including analytics tags • Don’t add the tag manager at the bottom of the page Technical: Tag Managers Best Practices:
  • 9. Optimizely CDN Delivery A content delivery network (CDN) is a system of distributed servers (network) that deliver webpages and other Web content to a user based on the geographic locations of the user, the origin of the webpage and a content delivery server.
  • 10. Technical: Order of Execution • URL Targeting • Audiences • Segmentation Fail targeting conditions Targeting Conditions Traffic Allocation Snippet Loads Excluded From Experiment Activation Mode • Evaluate whether experiment should be activated at this time Wait for activation condition / API Experiment Not EvaluatedExperiment 1 Experiment 2 Experiment 3 Check Next Experiment Check Next Experiment • Probability of inclusion in experiment • Probability of seeing a variation Fail traffic allocation requirements Excluded From Experiment Check Next Experiment Visitor is Bucketed into a Variation 10 year cookie is set on visitors browser so they will see this same version every time they revisit the site. * A B Pass targeting conditions * *
  • 11. Technical: Order of Execution Experiment 1: Variation 1 Experiment 3: Original • Runs safely as the DOM is loading • Is executed for every variation of the experiment, including the original Experiment Javascript & CSS Variation Code Executes Execute Next Experiment Experiment Prioritization: 1. Redirect Experiment 2. Experiments with /* _optimizely_evaluate=force */ 3. Order in which they were created (subject to change and should not be relied on) Prioritize Experiments * *
  • 12. Technical: Snippet Timing Logic Is it jQuery? Does the line follow this format: $(selector).action() Is it JavaScript? Manual Javascript that might not be safe to run. Is the element on the page? Evaluate next line of code YES NO Wait 50ms, retry line Wait until DOM is ready New line of code DOM not ready DOM is not ready… Execute code if ready DOM is ready… Safe to evaluate all code DOM Ready Evaluate remainder of variation code Need to force JS to run earlier? /* _optimizely_evaluate=force */ (JS variation code) /* _optimizely_evaluate=safe */
  • 13. Technical: Editor Markup Special Code Editor Markup • Evaluate = Force /* _optimizely_evaluate=force */ some javascript here; /* _optimizely_evaluate=safe */ • Editor Only /* _optimizely_evaluate=editor_only */ some code here; /* _optimizely_evaluate=end_editor_only */ • No Cookie /* _optimizely_redirect_no_cookie=http://www.example.com */
  • 14. If you use the evaluate force tag, the snippet will try to execute the Javascript immediate and will not try again when the element is available. Code: Use Timeout with Evaluate Force /* _optimizely_evaluate=force */ var cssSelector = “”; myOptyInterval1 = setInterval(function() { if ($(cssSelector).length > 0) { // Add your custom code here …………. …………. // leave this clearInterval clearInterval(myOptyInterval1); } }, 50); /* _optimizely_evaluate=safe */
  • 15. Technical: Optimizely Log Viewing the Optimizely Log: • Add a query parameter to the end of the URL: 
 ?optimizely_log=true
 • Run the following line in the browser console:
 window['optimizely'].push(["log"]); Optimizely / Segmenter Evaluates the optimizelySegments cookie to determine existing visitor segments Optimizely / Condition Evaluates conditions for segmentation, audiences, dimensions, and targeting Optimizely / Distributor Traffic allocation process to distribute visitor into an experiment variation Optimizely / Evaluator Execution of Optimizely variation code
  • 16. • Snippet Placement • Asynchronous Loading • Tag Manager • Redirect experiment • Use of regular Javascript in experiment Common Flashing Issues
  • 17. Code: Hide Element until changed Custom Javascript Audience Variation Code Add Javascript that will add css to your head and hide the element you are editing After you are done making your changes show the element
  • 19. • Actual load time is what performance tools measure • Perceived load time is what a human would measure • Focus on content above the fold • Lazy load images • Progressive image rendering Actual vs Perceived Page Load
  • 20. Snippet Size =< 400px 400px ~ 80KB <script src="//cdn.optimizely.com/js/1234567.js"></script> ~ 50KB - 80KB
  • 21. Tip: Snippet Optimization • Include your own version of jQuery • Archive Old Experiments • Remove Paused and Draft Experiments from the snippet
  • 22. Evaluate Website Performance (http://yslow.org/) (http://www.webpagetest.org/)
  • 23. • Combine Javascript file to limit HTTP requests • Hosted on same CDN / server as your current website Self hosting: Pros & Cons • Extra process needed to sync the snippet when it changes • Multiple points of failure • CDN might not be as good ConsPros
  • 24. Akamai • 160,000 servers in 95 countries within over 1,200 networks • All 20 top global eCommerce sites • Delivers between 15-30% of all Web traffic