BrightonSEO - How to use XPath with eCommerce Websites

Janet Plumpton
MISSGUIDED
How to use XPath with
e-commerce Websites
@PlumJans
make the
most from
website
code for
e-commerce
SEO
#brightonSEO@PlumJans https://www.slideshare.net/JanetPlumpton
#brightonSEO@PlumJans
XPath = XML
Path Language
the easy way to pluck data
contained in HTML pages
#brightonSEO@PlumJans
what does it look like?
//@href
//H2
//span[@itemprop=’ratingValue’]
#brightonSEO@PlumJans
a few
standard uses for XPath
extraction
#brightonSEO@PlumJans
extracting schema code
58 reviews
#brightonSEO@PlumJans
scraping product SKUs
Product number: A2502222
Product number: DE911161
Product number: R9335328
Product number: A2502826
Product number: DD910086
#brightonSEO@PlumJans
exporting specific page copy
CATEGORY
COPY
PRODUCT
COPY
#brightonSEO@PlumJans
backlink auditing
#brightonSEO@PlumJans
monitoring social activity
#brightonSEO@PlumJans
scraping dates from blog posts
BLOG POST VISITS YEAR
http://www.missguided.co.uk/blog/fashion/blog-six 267 2017
http://www.missguided.co.uk/blog/fashion/blog-two 146 2012
http://www.missguided.co.uk/blog/fashion/blog-four 682 2015
http://www.missguided.co.uk/blog/fashion/blog-three 214 2015
http://www.missguided.co.uk/blog/fashion/blog-five 16 2016
http://www.missguided.co.uk/blog/fashion/blog-one 86 2011
#brightonSEO@PlumJans
the very
useful
tool kit
#brightonSEO@PlumJans
SEO TOOLS
FOR EXCEL
the very
useful
tool kit
#brightonSEO@PlumJans
SEO TOOLS
FOR EXCEL
SCREAMING
FROG
the very
useful
tool kit
#brightonSEO@PlumJans
SEO TOOLS
FOR EXCEL
SCREAMING
FROG
INSPECT
ELEMENT
the very
useful
tool kit
#brightonSEO@PlumJans
SEO TOOLS
FOR EXCEL
SCREAMING
FROG
SCRAPER
EXTENSION
INSPECT
ELEMENT
the very
useful
tool kit
#brightonSEO@PlumJans
SEO TOOLS
FOR EXCEL
SCREAMING
FROG
SCRAPER
EXTENSION
INSPECT
ELEMENT
GOOGLE
SHEETS
the very
useful
tool kit
#brightonSEO@PlumJans
If you are new
to XPath…
#brightonSEO@PlumJans
…simply open a Google Sheet
Data XPath
Page
Title =ImportXML("URL","//title[1]")
Meta
Description =ImportXML("URL","//meta[@name='description']/@content")
H1
Heading =ImportXML("URL"; "//*[@name='h1'] ")
@PlumJans
4 scraping tips for
e-commerce websites
time is money
#brightonSEO
#brightonSEO@PlumJans
#1
#brightonSEO@PlumJans
It can be a shock
to discover valuable traffic
going to empty categories
#brightonSEO@PlumJans
products
per
category
mark-up
#brightonSEO@PlumJans
//span[@class='js-cascade-label-max']
GOOGLE SHEETS
=IMPORTXML("URL", "//span[@class='js-cascade-label-max']")
SEO TOOLS FOR EXCEL
=XPathOnURL("URL", "//span[@class='js-cascade-label-max']")
#brightonSEO@PlumJans
couple this data up
with traffic per URL
#brightonSEO@PlumJans
0
200
400
600
800
1,000
1,200
1,400
1,600
1,800
2,000
0
5,000
10,000
15,000
20,000
25,000
30,000
35,000
40,000
45,000
A B C D E F G H I J K
Traffic and Styles per Category
Organic Traffic Styles
#brightonSEO@PlumJans
#2
#brightonSEO@PlumJans
number of products in a site
search URL
#brightonSEO@PlumJans
recreate search URLs in Excel
Search Terms Site Search URL String + Search Terms
red bodysuit domain.co.uk/search?q= red+bodysuit
white blazer dress domain.co.uk/search?q= white+blazer+dress
khaki bomber jackets domain.co.uk/search?q= khaki+bomber+jackets
export site searches from GA
#brightonSEO@PlumJans
are you presenting fewer
products on landing pages?
yes or no?
#brightonSEO@PlumJans
#3
#brightonSEO@PlumJans
which on page elements
perform better?
compare metrics
#brightonSEO@PlumJans
do product pages convert
better with videos?
#brightonSEO@PlumJans
//*[@id="product-media"]/a[1]/text()
Address Videos
/premium-white-plunge-neck-zip-through-bodycon-dress play video
/silky-plunge-wrap-shift-dress-red play video
/black-floral-print-strappy-midi-dress play video
/peace-love-white-lace-high-neck-midi-dress play video
/sequin-snake-high-neck-bodycon-dress-animal play video
#brightonSEO@PlumJans
pick and choose
what you want to scrape
apply your metrics
#brightonSEO@PlumJans
#4
#brightonSEO@PlumJans
out of stock products
are they getting lots of traffic?
#brightonSEO@PlumJans
http://schema.org/OutOfStock
what code sets your
OOS pages apart?
“Product out of Stock”
find it
#brightonSEO@PlumJans
apply average conversion rate
(faint)
products coming back?
yes or no?
#brightonSEO@PlumJans
and that’s it
make your day to day
tasks easier
by understanding your
website code
@PlumJans #brightonSEOhttps://www.slideshare.net/JanetPlumpton
1 of 41

Recommended

So you think you know canonical tags - Sean Butcher Brighton SEO presentation by
So you think you know canonical tags -  Sean Butcher Brighton SEO presentationSo you think you know canonical tags -  Sean Butcher Brighton SEO presentation
So you think you know canonical tags - Sean Butcher Brighton SEO presentationSean Butcher
17.8K views151 slides
Rendering SEO Manifesto - Why we need to go beyond JavaScript SEO by
Rendering SEO Manifesto - Why we need to go beyond JavaScript SEORendering SEO Manifesto - Why we need to go beyond JavaScript SEO
Rendering SEO Manifesto - Why we need to go beyond JavaScript SEOOnely
7.6K views76 slides
How To Tackle Enterprise Sites - Rachel Costello, Technical SEO, DeepCrawl by
How To Tackle Enterprise Sites - Rachel Costello, Technical SEO, DeepCrawlHow To Tackle Enterprise Sites - Rachel Costello, Technical SEO, DeepCrawl
How To Tackle Enterprise Sites - Rachel Costello, Technical SEO, DeepCrawlDeepCrawl
4K views88 slides
SearchLove Boston 2018 - Tom Anthony - Hacking Google: what you can learn fro... by
SearchLove Boston 2018 - Tom Anthony - Hacking Google: what you can learn fro...SearchLove Boston 2018 - Tom Anthony - Hacking Google: what you can learn fro...
SearchLove Boston 2018 - Tom Anthony - Hacking Google: what you can learn fro...Distilled
2.4K views122 slides
Technical SEO for international markets - Leonie Mann - Brighton SEO 2021 by
Technical SEO for international markets- Leonie Mann - Brighton SEO 2021Technical SEO for international markets- Leonie Mann - Brighton SEO 2021
Technical SEO for international markets - Leonie Mann - Brighton SEO 2021Leonie Mann
588 views60 slides
Debugging rendering problems at scale by
Debugging rendering problems at scaleDebugging rendering problems at scale
Debugging rendering problems at scaleGiacomo Zecchini
645 views85 slides

More Related Content

What's hot

How to Improve Your Website's Indexation - Sean Butcher Brighton SEO Present... by
How to Improve Your Website's Indexation  - Sean Butcher Brighton SEO Present...How to Improve Your Website's Indexation  - Sean Butcher Brighton SEO Present...
How to Improve Your Website's Indexation - Sean Butcher Brighton SEO Present...Sean Butcher
3.8K views167 slides
The State of the Web: Pagination and Infinite Scroll by
The State of the Web: Pagination and Infinite ScrollThe State of the Web: Pagination and Infinite Scroll
The State of the Web: Pagination and Infinite ScrollAdam Gent
11.7K views65 slides
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs by
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your LogsSearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your LogsDistilled
4.9K views168 slides
Developing Technical SEO Skills - Brighton SEO Sept 2021 by
Developing Technical SEO Skills - Brighton SEO Sept 2021Developing Technical SEO Skills - Brighton SEO Sept 2021
Developing Technical SEO Skills - Brighton SEO Sept 2021Mike Osolinski
11.9K views63 slides
Conflicting Website Signals & Confused Search Engines - Rachel Costello, Tech... by
Conflicting Website Signals & Confused Search Engines - Rachel Costello, Tech...Conflicting Website Signals & Confused Search Engines - Rachel Costello, Tech...
Conflicting Website Signals & Confused Search Engines - Rachel Costello, Tech...Rachel Costello
8.5K views71 slides
Crawling & Indexing for eCommerce Sites - Sam Taylor, BrightonSEO (Crawling &... by
Crawling & Indexing for eCommerce Sites - Sam Taylor, BrightonSEO (Crawling &...Crawling & Indexing for eCommerce Sites - Sam Taylor, BrightonSEO (Crawling &...
Crawling & Indexing for eCommerce Sites - Sam Taylor, BrightonSEO (Crawling &...Sam Taylor
87 views125 slides

What's hot(20)

How to Improve Your Website's Indexation - Sean Butcher Brighton SEO Present... by Sean Butcher
How to Improve Your Website's Indexation  - Sean Butcher Brighton SEO Present...How to Improve Your Website's Indexation  - Sean Butcher Brighton SEO Present...
How to Improve Your Website's Indexation - Sean Butcher Brighton SEO Present...
Sean Butcher3.8K views
The State of the Web: Pagination and Infinite Scroll by Adam Gent
The State of the Web: Pagination and Infinite ScrollThe State of the Web: Pagination and Infinite Scroll
The State of the Web: Pagination and Infinite Scroll
Adam Gent11.7K views
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs by Distilled
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your LogsSearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs
SearchLove London 2016 | Dom Woodman | How to Get Insight From Your Logs
Distilled4.9K views
Developing Technical SEO Skills - Brighton SEO Sept 2021 by Mike Osolinski
Developing Technical SEO Skills - Brighton SEO Sept 2021Developing Technical SEO Skills - Brighton SEO Sept 2021
Developing Technical SEO Skills - Brighton SEO Sept 2021
Mike Osolinski11.9K views
Conflicting Website Signals & Confused Search Engines - Rachel Costello, Tech... by Rachel Costello
Conflicting Website Signals & Confused Search Engines - Rachel Costello, Tech...Conflicting Website Signals & Confused Search Engines - Rachel Costello, Tech...
Conflicting Website Signals & Confused Search Engines - Rachel Costello, Tech...
Rachel Costello8.5K views
Crawling & Indexing for eCommerce Sites - Sam Taylor, BrightonSEO (Crawling &... by Sam Taylor
Crawling & Indexing for eCommerce Sites - Sam Taylor, BrightonSEO (Crawling &...Crawling & Indexing for eCommerce Sites - Sam Taylor, BrightonSEO (Crawling &...
Crawling & Indexing for eCommerce Sites - Sam Taylor, BrightonSEO (Crawling &...
Sam Taylor87 views
Schema.org and the changing world of Rich Results - SEOEdinburgh Meetup by Geoff Kennedy
Schema.org and the changing world of Rich Results - SEOEdinburgh MeetupSchema.org and the changing world of Rich Results - SEOEdinburgh Meetup
Schema.org and the changing world of Rich Results - SEOEdinburgh Meetup
Geoff Kennedy28.2K views
URL Funnel Optimisation: How to get budget for SEO - Michal Magdziarz, CEO, D... by DeepCrawl
URL Funnel Optimisation: How to get budget for SEO - Michal Magdziarz, CEO, D...URL Funnel Optimisation: How to get budget for SEO - Michal Magdziarz, CEO, D...
URL Funnel Optimisation: How to get budget for SEO - Michal Magdziarz, CEO, D...
DeepCrawl787 views
On-Page SEO EXTREME - SEOZone Istanbul 2013 by Bastian Grimm
On-Page SEO EXTREME - SEOZone Istanbul 2013On-Page SEO EXTREME - SEOZone Istanbul 2013
On-Page SEO EXTREME - SEOZone Istanbul 2013
Bastian Grimm10K views
HOW TO INCREASE YOUR TRAFFIC 5X WITH THIS ONE SEO METHOD by Christoph C. Cemper
HOW TO INCREASE YOUR TRAFFIC 5X WITH THIS ONE SEO METHODHOW TO INCREASE YOUR TRAFFIC 5X WITH THIS ONE SEO METHOD
HOW TO INCREASE YOUR TRAFFIC 5X WITH THIS ONE SEO METHOD
Christoph C. Cemper15.1K views
Introduction to PWAs & New JS Frameworks for Mobile by MobileMoxie
Introduction to PWAs & New JS Frameworks for MobileIntroduction to PWAs & New JS Frameworks for Mobile
Introduction to PWAs & New JS Frameworks for Mobile
MobileMoxie21.8K views
BrightonSEO Takeaways September 2017 by Semrush
BrightonSEO Takeaways September 2017BrightonSEO Takeaways September 2017
BrightonSEO Takeaways September 2017
Semrush779 views
Mauro Cattaneo - Why hreflang is crucial to international SEO success - Brigh... by Mauro Cattaneo
Mauro Cattaneo - Why hreflang is crucial to international SEO success - Brigh...Mauro Cattaneo - Why hreflang is crucial to international SEO success - Brigh...
Mauro Cattaneo - Why hreflang is crucial to international SEO success - Brigh...
Mauro Cattaneo8.8K views
AMP for Enterprises - SMX West - Patrick Stox by patrickstox
AMP for Enterprises - SMX West - Patrick StoxAMP for Enterprises - SMX West - Patrick Stox
AMP for Enterprises - SMX West - Patrick Stox
patrickstox11.9K views
What Fantasy Football Taught Me About Building Nuanced SEO Reports by Owain Lloyd-Williams
What Fantasy Football Taught Me About Building Nuanced SEO ReportsWhat Fantasy Football Taught Me About Building Nuanced SEO Reports
What Fantasy Football Taught Me About Building Nuanced SEO Reports
Owain Lloyd-Williams 10.6K views
Duplicate Content Myths Types and Ways To Make It Work For You by Dawn Anderson MSc DigM
Duplicate Content Myths Types and Ways To Make It Work For YouDuplicate Content Myths Types and Ways To Make It Work For You
Duplicate Content Myths Types and Ways To Make It Work For You
The Future of Technical SEO | Women in Tech SEO 2019 | Rachel Costello by Rachel Costello
The Future of Technical SEO | Women in Tech SEO 2019 | Rachel CostelloThe Future of Technical SEO | Women in Tech SEO 2019 | Rachel Costello
The Future of Technical SEO | Women in Tech SEO 2019 | Rachel Costello
Rachel Costello783 views
Solving Complex JavaScript Issues and Leveraging Semantic HTML5 by Hamlet Batista
Solving Complex JavaScript Issues and Leveraging Semantic HTML5Solving Complex JavaScript Issues and Leveraging Semantic HTML5
Solving Complex JavaScript Issues and Leveraging Semantic HTML5
Hamlet Batista1.4K views
Combatting Crawl Bloat & Pruning Your Content Effectively by Charlie Whitworth
Combatting Crawl Bloat & Pruning Your Content EffectivelyCombatting Crawl Bloat & Pruning Your Content Effectively
Combatting Crawl Bloat & Pruning Your Content Effectively
Charlie Whitworth4.2K views

Similar to BrightonSEO - How to use XPath with eCommerce Websites

How to leverage indexation tracking to monitor issues and improve performance by
How to leverage indexation tracking to monitor issues and improve performanceHow to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performanceSimon Lesser
682 views111 slides
Excel Power-ups for Going Beast-mode in Local SEO by
Excel Power-ups for Going Beast-mode in Local SEOExcel Power-ups for Going Beast-mode in Local SEO
Excel Power-ups for Going Beast-mode in Local SEODavid Minchala
3.2K views46 slides
Measure fest 2020 what clients want to see by
Measure fest 2020   what clients want to seeMeasure fest 2020   what clients want to see
Measure fest 2020 what clients want to seeAdam Reaney
115 views35 slides
SEO Automation Without Using Hard Code by Tevfik Mert Azizoglu - BrightonSEO ... by
SEO Automation Without Using Hard Code by Tevfik Mert Azizoglu - BrightonSEO ...SEO Automation Without Using Hard Code by Tevfik Mert Azizoglu - BrightonSEO ...
SEO Automation Without Using Hard Code by Tevfik Mert Azizoglu - BrightonSEO ...Tevfik Mert Azizoglu
3.9K views62 slides
Seo網上推廣課程 1 mar by
Seo網上推廣課程 1 marSeo網上推廣課程 1 mar
Seo網上推廣課程 1 marYING LUI ALAN SIU
1.4K views45 slides
Structured Data: Is It Worth Your Time? (Ecommerce SEO summit June 2020) by
Structured Data: Is It Worth Your Time? (Ecommerce SEO summit June 2020)Structured Data: Is It Worth Your Time? (Ecommerce SEO summit June 2020)
Structured Data: Is It Worth Your Time? (Ecommerce SEO summit June 2020)Sam Nemzer
432 views83 slides

Similar to BrightonSEO - How to use XPath with eCommerce Websites(20)

How to leverage indexation tracking to monitor issues and improve performance by Simon Lesser
How to leverage indexation tracking to monitor issues and improve performanceHow to leverage indexation tracking to monitor issues and improve performance
How to leverage indexation tracking to monitor issues and improve performance
Simon Lesser682 views
Excel Power-ups for Going Beast-mode in Local SEO by David Minchala
Excel Power-ups for Going Beast-mode in Local SEOExcel Power-ups for Going Beast-mode in Local SEO
Excel Power-ups for Going Beast-mode in Local SEO
David Minchala3.2K views
Measure fest 2020 what clients want to see by Adam Reaney
Measure fest 2020   what clients want to seeMeasure fest 2020   what clients want to see
Measure fest 2020 what clients want to see
Adam Reaney115 views
SEO Automation Without Using Hard Code by Tevfik Mert Azizoglu - BrightonSEO ... by Tevfik Mert Azizoglu
SEO Automation Without Using Hard Code by Tevfik Mert Azizoglu - BrightonSEO ...SEO Automation Without Using Hard Code by Tevfik Mert Azizoglu - BrightonSEO ...
SEO Automation Without Using Hard Code by Tevfik Mert Azizoglu - BrightonSEO ...
Structured Data: Is It Worth Your Time? (Ecommerce SEO summit June 2020) by Sam Nemzer
Structured Data: Is It Worth Your Time? (Ecommerce SEO summit June 2020)Structured Data: Is It Worth Your Time? (Ecommerce SEO summit June 2020)
Structured Data: Is It Worth Your Time? (Ecommerce SEO summit June 2020)
Sam Nemzer432 views
Optimising AMP (Accelerated Mobile Pages) #SMXLondon by Aleyda Solís
Optimising AMP (Accelerated Mobile Pages) #SMXLondonOptimising AMP (Accelerated Mobile Pages) #SMXLondon
Optimising AMP (Accelerated Mobile Pages) #SMXLondon
Aleyda Solís2K views
SEO Best Practices for Web Developers by Shannon Steffen
SEO Best Practices for Web DevelopersSEO Best Practices for Web Developers
SEO Best Practices for Web Developers
Shannon Steffen1.3K views
ENIB 2015-2016 - CAI Web - S01E01- Côté navigateur 3/3 - Web components avec ... by Horacio Gonzalez
ENIB 2015-2016 - CAI Web - S01E01- Côté navigateur 3/3 - Web components avec ...ENIB 2015-2016 - CAI Web - S01E01- Côté navigateur 3/3 - Web components avec ...
ENIB 2015-2016 - CAI Web - S01E01- Côté navigateur 3/3 - Web components avec ...
Horacio Gonzalez700 views
Migrating existing monolith to serverless in 8 steps by Yan Cui
Migrating existing monolith to serverless in 8 stepsMigrating existing monolith to serverless in 8 steps
Migrating existing monolith to serverless in 8 steps
Yan Cui402 views
The Offspring of SEO and Semantic Web: SEO++ by Jay Myers
The Offspring of SEO  and Semantic Web: SEO++ The Offspring of SEO  and Semantic Web: SEO++
The Offspring of SEO and Semantic Web: SEO++
Jay Myers918 views
Efficient Search Campaigns SAScon May 2012 by Steve Lock
Efficient Search Campaigns SAScon May 2012Efficient Search Campaigns SAScon May 2012
Efficient Search Campaigns SAScon May 2012
Steve Lock642 views
A Technical SEO Journey: Insights from Logs, hreflang & Mobile Analysis #SMXl... by Aleyda Solís
A Technical SEO Journey: Insights from Logs, hreflang & Mobile Analysis #SMXl...A Technical SEO Journey: Insights from Logs, hreflang & Mobile Analysis #SMXl...
A Technical SEO Journey: Insights from Logs, hreflang & Mobile Analysis #SMXl...
Aleyda Solís3.8K views
The Ultimate Free Digital Marketing Toolkit by Steve Lock
The Ultimate Free Digital Marketing ToolkitThe Ultimate Free Digital Marketing Toolkit
The Ultimate Free Digital Marketing Toolkit
Steve Lock794 views
DG Group - Active Or Passive Website by Franco De Bonis
DG Group - Active Or Passive WebsiteDG Group - Active Or Passive Website
DG Group - Active Or Passive Website
Franco De Bonis1K views
Online SEO Meetup by Semrush
Online SEO MeetupOnline SEO Meetup
Online SEO Meetup
Semrush3.1K views

Recently uploaded

Deltaplan - SEO Search by
Deltaplan - SEO SearchDeltaplan - SEO Search
Deltaplan - SEO SearchRoy Huiskes
49 views57 slides
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction... by
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...Rio Ichikawa
117 views125 slides

Recently uploaded(20)

Deltaplan - SEO Search by Roy Huiskes
Deltaplan - SEO SearchDeltaplan - SEO Search
Deltaplan - SEO Search
Roy Huiskes49 views
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction... by Rio Ichikawa
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...
Bridging the Gap: How SEO and CRO Work Together to Maximize User Satisfaction...
Rio Ichikawa117 views
First 30 days of Your CRO Program by VWO
First 30 days of Your CRO ProgramFirst 30 days of Your CRO Program
First 30 days of Your CRO Program
VWO47 views

BrightonSEO - How to use XPath with eCommerce Websites