You can configure various data about your company including address, opening hours and more. These fields can be inserted into the header, footer and widgets in your website via shortcodes. wp2print can also give the same data to search engines and AI tools in a LocalBusiness block, and add the tracking codes of Google Analytics, Bing, LinkedIn and Facebook to every page of your store. Both are described below.
The first four rows of the tab add the tracking code of Google Analytics, Bing (Microsoft Advertising), LinkedIn or Facebook (Meta) to every page of your store. These codes let you see how many people visit your store, where they come from and which of your ads bring customers. These rows were added in wp2print 4.0.1.
Each row has a checkbox and a text field. To add a tracking code:
| Setting | ID to enter | Where to find the ID |
|---|---|---|
| Add Google Analytics | Measurement ID, which starts with G-, for example G-XXXXXXXXXX | Google Analytics: Admin > Data streams, then click your web stream |
| Add Bing tracking | UET tag ID, a number such as 12345678 | Microsoft Advertising: Tools > UET tag |
| Add LinkedIn tracking | Partner ID, a number such as 1234567 | LinkedIn Campaign Manager: Data > Insight Tag |
| Add Facebook pixel | Pixel ID, a number such as 123456789012345 | Meta Events Manager: Data sources, then select your pixel |
You enter only the ID. wp2print adds the standard tracking code of each service with your ID in it. If you paste the complete tracking code that the service gives you, wp2print finds the ID in it and saves only the ID. If wp2print cannot find a valid ID, a red message appears below the field and nothing is added to your pages until you correct it.
The tracking codes are added to every page of your store that visitors see, but not to the WordPress admin. When you change these settings, wp2print clears the page cache (for example LiteSpeed Cache or WP Rocket), so the change appears on all pages straight away.
After you save, open any page of your store, view the page source and search for wp2print tracking codes. Your ID should appear in the code below it. If your site uses an optimization plugin that combines JavaScript, such as LiteSpeed Cache, WP Rocket or Perfmatters, some tracking codes may be moved into a combined script file instead. They still work, but you will not see them in the page source. In that case, use the tools of each service to check. In Google Analytics, the Realtime report shows your own visit within a minute. Microsoft Advertising, LinkedIn and Meta each show the status of the tag on the page where you found the ID. They can take a few hours to show it as active.
These settings add the standard page view tracking of each service. They do not send purchases or order totals to these services, and they do not ask visitors for cookie consent. If your store needs visitor consent before tracking, for example for visitors from the European Union, use a cookie consent plugin to add and manage the tracking codes instead.
When Add LocalBusiness block is checked, wp2print adds a block of structured data to the home page of your site. The block uses the LocalBusiness format defined by schema.org. Search engines such as Google and Bing, and AI tools such as ChatGPT, read this block to learn the name of your company, where it is located and when it is open. This helps your shop appear in local search results and map listings. Visitors to your site do not see the block.
The block is built from the fields on this tab:
| Field on this tab | Item in the LocalBusiness block |
|---|---|
| Company name (the site title is used when it is empty) | name |
| Phone | telephone |
| Fax | faxNumber |
| Address1, Address2, City, State/Region, ZIP code/Postal code, Country | address |
| Catchment area | areaServed |
| Store opening times | openingHoursSpecification |
wp2print also adds the address of your site (url), the Tagline from Settings > General (description) and, when your theme has a site logo, the logo (logo and image). Empty fields are left out of the block. Days that have the same opening hours are grouped together, and days without opening hours are left out, so search engines treat them as closed.
Here is an example of the block that wp2print adds to the home page:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Acme Print Shop",
"url": "https://acmeprintshop.org/",
"description": "Acme Print Shop web-to-print system",
"address": {
"@type": "PostalAddress",
"streetAddress": "72 Rt. 236",
"addressLocality": "Kittery",
"addressRegion": "Maine",
"postalCode": "03904",
"addressCountry": "United States"
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday"],
"opens": "08:30",
"closes": "18:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Saturday"],
"opens": "10:00",
"closes": "17:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Sunday"],
"opens": "10:00",
"closes": "13:00"
}
]
}
</script>
On your site the block is written on a single line. It is shown here with line breaks so it is easier to read. To check the block on your own site, enter the address of your home page in the Google Rich Results Test or the Schema Markup Validator.
Do not check Add LocalBusiness block if an SEO plugin such as Yoast SEO, Rank Math or All in One SEO already adds your business details to the site. Two different blocks with business details confuse search engines. When one of these plugins is active and the option is checked, wp2print shows a warning on this tab.
The shortcode for each field is shown next to the field in the screenshot at the top of this page. For example, [storedata field="phone"] inserts your phone number.
wp2print can display a small matrix showing your physical store's opening and closing time. Here is the shortcode used to embed this matrix into a Page in your site:
[storedata field="store-opening"]
The screenshot below illustrates an example of the display generated by the shortcode:
wp2print can display a small matrix showing the last pick-up time for each carrier you partner with. Here is the shortcode used to embed this matrix into a Page in your site:
[storedata field="pickup-time"]
The screenshot below illustrates an example of the display generated by the shortcode: