SlideShare una empresa de Scribd logo
1 de 27
SET UP (AND 
ANALYZE) YOUR 
A/B TESTS LIKE A 
BOSS 
USING THE GOOGLE TAG MANAGER 
JULES STUIFBERGEN – CONVERSION HOTEL 2014
TOPICS FOR THIS 
SESSION 
• Two ground rules 
• The added value of commercial tools 
• What type of A/B tests am I talking about 
• Can we replicate this functionality (using GTM) 
• For free 
• For kicks 
• Because we can! 
• Let’s find out!
A/B TESTING RULE 1: 
RANDOMNESS 
Visitors enter your experimentation zone 
They’re assigned to a 
variation (A or B) 
randomly. 
Then, they’re part of your 
experiment.
A/B TESTING RULE 2: 
CONDITIONS STAY THE SAME 
Visitors are in the same condition, always. 
Condition A 
Condition B
THE ADDED VALUE OF 
COMMERCIAL TOOLS 
Optimizely VWO
THESE TOOLS DO 2 
THINGS REALLY WELL 
UGLY code Fancy GUI
WHAT TYPE OF TESTS 
AM I TALKING ABOUT 
• Same URL / page group 
• Content manipulation with Javascript / jQuery 
Meet jQuery. A big fat 
Javascript library
LET’S REPLICATE THE 
LOGIC 
Pseudo code for a visitor entering the experiment 
1. Does the visitor have a valid cookie? 
1. Yes: set the condition variable w/ cookie value 
2. No: Roll a dice and assign condition A or B 
2. Store the condition in the cookie 
3. Load the code for A or B 
1. Javascript / jQuery code 
2. Google Analytics code
READY TO CODE 
YOUR TAG?
DETAILS: CONFIG 
This code allows 
endless amount of 
variations. 
One cookie per test
DETAILS: 
ASSIGNMENT 
In words: 
If the cookie value is not in the 
list of the variation names: 
Pick a random variation.
DETAILS: COOKIE 
Set the cookie, always. 
This makes sure the cookie is renewed for 90 days 
(code stolen from the interweb)
DETAILS: THE FUN 
STUFF 
This is where the 
GTM magic begins. 
abtest macros for 
category, action and 
label (from datalayer)
DETAILS: THE FUN 
STUFF 
This is where the 
GTM magic begins. 
Built-in event macro, 
to trigger the action
RULE NR. 1 
Fires on all abtest 
events
MEASURE LIKE A 
BOSS
RULE NR. 2 (AND 3..) 
Fires variation 
code
CODE LIKE A BOSS
OR.. CHEAT LIKE A 
BOSS 
Steal (and clean) 
optimizely’s code using 
the “edit code” 
functionality
START YOUR 
EXPERIMENT 
This goes in a Tag 
Activated by a 
Rule
DEBUG YOUR 
CONTAINER VERSION 
LIKE A BOSS
WELCOME VISITORS.. 
http://datadatadata.nl/ch2014.html
AND ANALYZE THE 
RESULTS 
Use Google Analytics User 
Segments on Events
YOU WIN!
THANK YOU 
Jules Stuifbergen 
@zjuul

Más contenido relacionado

La actualidad más candente

[IMQA] performance consulting
[IMQA] performance consulting[IMQA] performance consulting
[IMQA] performance consulting
IMQA
 

La actualidad más candente (7)

Amazon EC2 Masterclass
Amazon EC2 MasterclassAmazon EC2 Masterclass
Amazon EC2 Masterclass
 
Using Amazon Inspector to Discover Potential Security Issues - AWS Online Tec...
Using Amazon Inspector to Discover Potential Security Issues - AWS Online Tec...Using Amazon Inspector to Discover Potential Security Issues - AWS Online Tec...
Using Amazon Inspector to Discover Potential Security Issues - AWS Online Tec...
 
Top 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the CloudTop 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the Cloud
 
[IMQA] performance consulting
[IMQA] performance consulting[IMQA] performance consulting
[IMQA] performance consulting
 
Amazon Lex Chatbot Tutorial | Amazon Lex Chatbot Demo | AWS Certification Tra...
Amazon Lex Chatbot Tutorial | Amazon Lex Chatbot Demo | AWS Certification Tra...Amazon Lex Chatbot Tutorial | Amazon Lex Chatbot Demo | AWS Certification Tra...
Amazon Lex Chatbot Tutorial | Amazon Lex Chatbot Demo | AWS Certification Tra...
 
Amazon Lightsail: Jumpstart Your Cloud Project for a Low, Predictable Price.
Amazon Lightsail: Jumpstart Your Cloud Project for a Low, Predictable Price. Amazon Lightsail: Jumpstart Your Cloud Project for a Low, Predictable Price.
Amazon Lightsail: Jumpstart Your Cloud Project for a Low, Predictable Price.
 
API Testing with Frisby and Mocha
API Testing with Frisby and MochaAPI Testing with Frisby and Mocha
API Testing with Frisby and Mocha
 

Similar a Create A/B tests with the Google Tag Manager

Similar a Create A/B tests with the Google Tag Manager (20)

How to Pass the Google Analytics Individual Qualification Test by Slingshot SEO
How to Pass the  Google Analytics Individual Qualification Test by Slingshot SEOHow to Pass the  Google Analytics Individual Qualification Test by Slingshot SEO
How to Pass the Google Analytics Individual Qualification Test by Slingshot SEO
 
Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!Most Advanced GTM Deployment. Ever!
Most Advanced GTM Deployment. Ever!
 
A/B Testing with Website Optimizer
A/B Testing with Website OptimizerA/B Testing with Website Optimizer
A/B Testing with Website Optimizer
 
Thinking in SQL with Django
Thinking in SQL with DjangoThinking in SQL with Django
Thinking in SQL with Django
 
Expert Tips and Techniques for Using Google Tag Manager
Expert Tips and Techniques  for Using Google Tag ManagerExpert Tips and Techniques  for Using Google Tag Manager
Expert Tips and Techniques for Using Google Tag Manager
 
des mutants dans le code.pdf
des mutants dans le code.pdfdes mutants dans le code.pdf
des mutants dans le code.pdf
 
Web technologies-course 08.pptx
Web technologies-course 08.pptxWeb technologies-course 08.pptx
Web technologies-course 08.pptx
 
Introduction about Google Tag manager
Introduction about Google Tag manager Introduction about Google Tag manager
Introduction about Google Tag manager
 
All about google tag manager - Basics
All about google tag manager - Basics All about google tag manager - Basics
All about google tag manager - Basics
 
Website Sale Deals
Website Sale DealsWebsite Sale Deals
Website Sale Deals
 
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
 
Google Tag Manager 101
Google Tag Manager 101Google Tag Manager 101
Google Tag Manager 101
 
Morphing GA into an Affiliate Analytics Monster
Morphing GA into an Affiliate Analytics MonsterMorphing GA into an Affiliate Analytics Monster
Morphing GA into an Affiliate Analytics Monster
 
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
Google tag manager fundamentals question and answer (june 23 and july 24, 2015)
 
Testing As A Bottleneck - How Testing Slows Down Modern Development Processes...
Testing As A Bottleneck - How Testing Slows Down Modern Development Processes...Testing As A Bottleneck - How Testing Slows Down Modern Development Processes...
Testing As A Bottleneck - How Testing Slows Down Modern Development Processes...
 
Eradicate Flaky Tests
Eradicate Flaky TestsEradicate Flaky Tests
Eradicate Flaky Tests
 
Keynote AST 2016
Keynote AST 2016Keynote AST 2016
Keynote AST 2016
 
A la découverte des google/mock (aka gmock)
A la découverte des google/mock (aka gmock)A la découverte des google/mock (aka gmock)
A la découverte des google/mock (aka gmock)
 
Failure is an Option: Scaling Resilient Feature Delivery
Failure is an Option: Scaling Resilient Feature DeliveryFailure is an Option: Scaling Resilient Feature Delivery
Failure is an Option: Scaling Resilient Feature Delivery
 
Advanced Dagger talk from 360andev
Advanced Dagger talk from 360andevAdvanced Dagger talk from 360andev
Advanced Dagger talk from 360andev
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

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
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
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
 
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
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Create A/B tests with the Google Tag Manager

  • 1. SET UP (AND ANALYZE) YOUR A/B TESTS LIKE A BOSS USING THE GOOGLE TAG MANAGER JULES STUIFBERGEN – CONVERSION HOTEL 2014
  • 2. TOPICS FOR THIS SESSION • Two ground rules • The added value of commercial tools • What type of A/B tests am I talking about • Can we replicate this functionality (using GTM) • For free • For kicks • Because we can! • Let’s find out!
  • 3. A/B TESTING RULE 1: RANDOMNESS Visitors enter your experimentation zone They’re assigned to a variation (A or B) randomly. Then, they’re part of your experiment.
  • 4. A/B TESTING RULE 2: CONDITIONS STAY THE SAME Visitors are in the same condition, always. Condition A Condition B
  • 5. THE ADDED VALUE OF COMMERCIAL TOOLS Optimizely VWO
  • 6. THESE TOOLS DO 2 THINGS REALLY WELL UGLY code Fancy GUI
  • 7. WHAT TYPE OF TESTS AM I TALKING ABOUT • Same URL / page group • Content manipulation with Javascript / jQuery Meet jQuery. A big fat Javascript library
  • 8. LET’S REPLICATE THE LOGIC Pseudo code for a visitor entering the experiment 1. Does the visitor have a valid cookie? 1. Yes: set the condition variable w/ cookie value 2. No: Roll a dice and assign condition A or B 2. Store the condition in the cookie 3. Load the code for A or B 1. Javascript / jQuery code 2. Google Analytics code
  • 9. READY TO CODE YOUR TAG?
  • 10. DETAILS: CONFIG This code allows endless amount of variations. One cookie per test
  • 11. DETAILS: ASSIGNMENT In words: If the cookie value is not in the list of the variation names: Pick a random variation.
  • 12. DETAILS: COOKIE Set the cookie, always. This makes sure the cookie is renewed for 90 days (code stolen from the interweb)
  • 13. DETAILS: THE FUN STUFF This is where the GTM magic begins. abtest macros for category, action and label (from datalayer)
  • 14. DETAILS: THE FUN STUFF This is where the GTM magic begins. Built-in event macro, to trigger the action
  • 15. RULE NR. 1 Fires on all abtest events
  • 17. RULE NR. 2 (AND 3..) Fires variation code
  • 18. CODE LIKE A BOSS
  • 19. OR.. CHEAT LIKE A BOSS Steal (and clean) optimizely’s code using the “edit code” functionality
  • 20. START YOUR EXPERIMENT This goes in a Tag Activated by a Rule
  • 21.
  • 22.
  • 23. DEBUG YOUR CONTAINER VERSION LIKE A BOSS
  • 25. AND ANALYZE THE RESULTS Use Google Analytics User Segments on Events
  • 27. THANK YOU Jules Stuifbergen @zjuul