Add online booking
For a shop's web person. About 5 minutes. No code needed: point the Book button at the shop's booking link.
Booking link
Ask the shop for its booking link. It looks like this.
https://westernersautomotive.com/book/your-shop
Steps for your builder
Change the Book button: recommended, works on every plan. Or paste the script once so booking opens over the page.
Change the Book button
- Copy the booking link.
- Edit the page and click your Book button, then click Link.
- Paste your booking link. Leave Open in new tab off. Click Update.
- In a menu, edit the Navigation item's link the same way.
Or open booking over the page
- Copy the one-line script.
- Plugins > Add New Plugin > search WPCode > Install Now > Activate.
- Code Snippets > Header & Footer. Paste the line into Footer. Click Save Changes.
- Using WP Rocket? Add westernersautomotive.com/embed.js to Excluded JavaScript Files, so the first tap on a phone opens booking over the page.
Needs an Administrator. On a multisite network only a Super Admin can save scripts.
Done? Tell the shop. They can check it from their account.
Site run by a web company (KUKUI, Repair Shop Websites, Autoshop Solutions, Net Driven, AutoVitals, Steer)? Send them the shop's setup page. They change the Book button for you.
The one-line script
Paste it once, just before </body> on every page (your site-wide footer code). Then any link to the booking link opens booking over the page.
<script src="https://westernersautomotive.com/embed.js" async></script>
Not in an Embed or HTML box on one page: those boxes run in a frame, so booking opens in a new tab there.
Sites that can show booking
The shop's website, with and without www. Another address goes under Other websites in the shop's account.
Other ways
For developers. All of them need the script on the page.
Any element
Add data-wa-book to a link to the booking link, or the wa-book class with data-shop to anything else.
<a href="https://westernersautomotive.com/book/your-shop" data-wa-book>Book online</a>
<button class="wa-book" data-shop="your-shop">Book online</button>
Booking on a page
The booking steps right on a page, sized to fit.
<div data-wa-booking data-shop="your-shop"></div>
Tag manager
Load this form from a custom HTML tag. The shop is in the address, so the tag needs no other settings.
<script src="https://westernersautomotive.com/embed.js?shop=your-shop" async></script>
Open on arrival
Add ?wa_book=1 to any page address with the script, and booking opens when the page loads.
After a booking
The page gets a wa:booked event with the shop and the repair order number. Tag managers get wa:booking_success in the dataLayer.
window.addEventListener("wa:booked", (e) => console.log(e.detail.shop, e.detail.roNumber));Content-Security-Policy
Your site sets one? Allow westernersautomotive.com in script-src, frame-src and connect-src.
Script optimizers
WP Rocket, Cloudflare Rocket Loader and the like can delay the script, so the first tap opens the booking page instead. Exclude embed.js from them.
Questions? support@westernersautomotive.com