To deploy hreflang tags for ad pages, you’ll need to follow the same principles as for other pages: include hreflang annotations on each ad page that reference itself and its alternate versions in different regions or languages. Here’s a step-by-step guide:
Example URLs for Ad Pages:
- New Zealand:
abcde.com/nz/auckland/ad1,abcde.com/nz/wellington/ad2 - Australia:
abcde.com/au/sydney/ad1,abcde.com/au/melbourne/ad3
Steps to Implement hreflang for Ad Pages:
- Identify Language and Regional Variants:
- For New Zealand:
en-NZ - For Australia:
en-AU
- For New Zealand:
- Add
hreflangAnnotations:
Each ad page should reference itself and its alternate versions. Here is an example for an ad page in Auckland, New Zealand:
<link rel="alternate" href="https://abcde.com/nz/auckland/ad1" hreflang="en-NZ" />
<link rel="alternate" href="https://abcde.com/au/sydney/ad1" hreflang="en-AU" />
<link rel="alternate" href="https://abcde.com/au/melbourne/ad3" hreflang="en-AU" />
<!-- Additional links for other ad pages in New Zealand and Australia as needed -->
For an ad page in Sydney, Australia:
<link rel="alternate" href="https://abcde.com/au/sydney/ad1" hreflang="en-AU" />
<link rel="alternate" href="https://abcde.com/nz/auckland/ad1" hreflang="en-NZ" />
<link rel="alternate" href="https://abcde.com/nz/wellington/ad2" hreflang="en-NZ" />
<!-- Additional links for other ad pages in New Zealand and Australia as needed -->
Example Implementation for an Ad Page in Wellington, New Zealand:
<link rel="alternate" href="https://abcde.com/nz/wellington/ad2" hreflang="en-NZ" />
<link rel="alternate" href="https://abcde.com/au/sydney/ad1" hreflang="en-AU" />
<link rel="alternate" href="https://abcde.com/au/melbourne/ad3" hreflang="en-AU" />
<!-- Additional links for other ad pages as needed -->
General Guidelines:
- Consistency: Ensure every ad page has
hreflangannotations for itself and its alternate versions. - Self-referencing: Each ad page should reference itself in the
hreflangannotations. - Canonical Tags: Use canonical tags to avoid duplicate content issues, especially if content is similar across regions.
Complete Example for an Ad Page (ad1 in Auckland, New Zealand):
In the HTML <head> section of https://abcde.com/nz/auckland/ad1:
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Other head elements -->
<link rel="canonical" href="https://abcde.com/nz/auckland/ad1" />
<link rel="alternate" href="https://abcde.com/nz/auckland/ad1" hreflang="en-NZ" />
<link rel="alternate" href="https://abcde.com/au/sydney/ad1" hreflang="en-AU" />
<link rel="alternate" href="https://abcde.com/au/melbourne/ad3" hreflang="en-AU" />
<!-- Additional links for other ad pages as needed -->
<!-- Other head elements -->
</head>
<body>
<!-- Page content -->
</body>
</html>
Complete Example for an Ad Page (ad1 in Sydney, Australia):
In the HTML <head> section of https://abcde.com/au/sydney/ad1:
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Other head elements -->
<link rel="canonical" href="https://abcde.com/au/sydney/ad1" />
<link rel="alternate" href="https://abcde.com/au/sydney/ad1" hreflang="en-AU" />
<link rel="alternate" href="https://abcde.com/nz/auckland/ad1" hreflang="en-NZ" />
<link rel="alternate" href="https://abcde.com/nz/wellington/ad2" hreflang="en-NZ" />
<!-- Additional links for other ad pages as needed -->
<!-- Other head elements -->
</head>
<body>
<!-- Page content -->
</body>
</html>
By adding these hreflang tags to each ad page, search engines will be able to serve the correct regional version of the page to users in New Zealand and Australia.