SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
AMP for WordPress
Jakarta WordPress Meetup #15
Ivan Kristianto
@ivankristianto
Tentang Saya
• Nama saya Ivan Kristianto
• Senior Web Engineer at 10up
• WordPress core contributor
• ElasticPress team member
• Jakarta WordPress Meetup Organizer
AMP for WordPress Plugin
https://wordpress.org/plugins/amp/
Download, Install & Activate Plugin
Google
Analytics di
AMP
Google Analytics 

JSON Template
{
"vars": {
"account": "UA-XXXXXXX-Y"
},
"triggers": {
"trackPageview": {
"on": "visible",
"request": "pageview"
},
"trackClick": {
"on": "click",
"selector": "a",
"request": "event",
"vars": {
"eventAction": "click"
}
}
}
}
https://gist.github.com/ivankristianto/544ff778146f769b1dbd775bd70de109
Google
Adsense di
AMP
Iklan Otomatis untuk AMP
Iklan otomatis untuk AMP secara otomatis menempatkan Iklan
otomatis AdSense di halaman AMP Anda.
Setelah menambahkan skrip otomatis AMP dan kode iklan, Google
akan secara otomatis menampilkan iklan pada halaman AMP Anda
pada waktu yang optimal saat iklan cenderung berperforma baik dan
memberikan pengalaman yang baik.
https://support.google.com/adsense/answer/9011462?hl=id
Langkah 1: Enable Auto Ads for AMP
Langkah 2: Tambahkan javascript ke header
https://gist.github.com/ivankristianto/f8872192f3d01f508a00f07833fa7e2f
Langkah 3: Tambahkan code AMP ke Body
Cara Menambahkan AMP Ads ke Tema WordPress
• Ambil kode yang dari langkah 2, tambahkan di file functions.php dalam tema
Anda di baris paling akhir sebelum penutupan tag PHP ?>
• Kemudian tambahkan folder dengan nama “amp”, dalam folder tema Anda
• Copy file single.php dari plugins/amp/templates/single.php
• Sisipkan kode dari langkah 3, ke dalam kode tersebut, setelah code </header>
• Validate artikel Anda dengan dengan tools: https://validator.ampproject.org/
• Jika Sudah valid, tunggu sekitar 2 jam, maka ads akan muncul di website Anda
Google
Adsense in
AMP
Useful Resources
• https://www.ampproject.org/
• https://validator.ampproject.org/ & https://search.google.com/test/amp
• Auto Ads for AMP: https://support.google.com/adsense/answer/9011462
• Analytics for AMP: https://developers.google.com/analytics/devguides/collection/amp-analytics/
• AMP for WordPress Repo: https://github.com/Automattic/amp-wp
• Test site speed on 3G: https://testmysite.thinkwithgoogle.com/
• Free AMP template: https://ampstart.com/
• AMP by Example: https://ampbyexample.com/
• WP-ID Slack: https://chat.wp-id.org/, channel #amp
Q&A

Contenu connexe

En vedette

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

En vedette (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Amp for WordPress - WordPress Jakarta Meetup #15

  • 1. AMP for WordPress Jakarta WordPress Meetup #15 Ivan Kristianto @ivankristianto
  • 2. Tentang Saya • Nama saya Ivan Kristianto • Senior Web Engineer at 10up • WordPress core contributor • ElasticPress team member • Jakarta WordPress Meetup Organizer
  • 3. AMP for WordPress Plugin https://wordpress.org/plugins/amp/
  • 4. Download, Install & Activate Plugin
  • 5.
  • 6.
  • 8. Google Analytics 
 JSON Template { "vars": { "account": "UA-XXXXXXX-Y" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" }, "trackClick": { "on": "click", "selector": "a", "request": "event", "vars": { "eventAction": "click" } } } } https://gist.github.com/ivankristianto/544ff778146f769b1dbd775bd70de109
  • 10. Iklan Otomatis untuk AMP Iklan otomatis untuk AMP secara otomatis menempatkan Iklan otomatis AdSense di halaman AMP Anda. Setelah menambahkan skrip otomatis AMP dan kode iklan, Google akan secara otomatis menampilkan iklan pada halaman AMP Anda pada waktu yang optimal saat iklan cenderung berperforma baik dan memberikan pengalaman yang baik. https://support.google.com/adsense/answer/9011462?hl=id
  • 11. Langkah 1: Enable Auto Ads for AMP
  • 12. Langkah 2: Tambahkan javascript ke header https://gist.github.com/ivankristianto/f8872192f3d01f508a00f07833fa7e2f
  • 13. Langkah 3: Tambahkan code AMP ke Body
  • 14. Cara Menambahkan AMP Ads ke Tema WordPress • Ambil kode yang dari langkah 2, tambahkan di file functions.php dalam tema Anda di baris paling akhir sebelum penutupan tag PHP ?> • Kemudian tambahkan folder dengan nama “amp”, dalam folder tema Anda • Copy file single.php dari plugins/amp/templates/single.php • Sisipkan kode dari langkah 3, ke dalam kode tersebut, setelah code </header> • Validate artikel Anda dengan dengan tools: https://validator.ampproject.org/ • Jika Sudah valid, tunggu sekitar 2 jam, maka ads akan muncul di website Anda
  • 16. Useful Resources • https://www.ampproject.org/ • https://validator.ampproject.org/ & https://search.google.com/test/amp • Auto Ads for AMP: https://support.google.com/adsense/answer/9011462 • Analytics for AMP: https://developers.google.com/analytics/devguides/collection/amp-analytics/ • AMP for WordPress Repo: https://github.com/Automattic/amp-wp • Test site speed on 3G: https://testmysite.thinkwithgoogle.com/ • Free AMP template: https://ampstart.com/ • AMP by Example: https://ampbyexample.com/ • WP-ID Slack: https://chat.wp-id.org/, channel #amp
  • 17. Q&A