Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions scripts/test_gsc_support_content.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
"""Offline checks for GSC-driven support-page claims and store conversion."""
import json
import re
import unittest
from pathlib import Path

ROOT = Path(__file__).resolve().parent.parent
PAW = ROOT / "support" / "dog-breeds-encyclopedia" / "index.html"
FACE = ROOT / "support" / "face-reaction-battle" / "index.html"
PAW_PACKAGE = "com.appdevelopsk.dog_breeds_encyclopedia"


def meta(html, name, attribute="name"):
matches = re.findall(
rf'<meta {attribute}="{re.escape(name)}" content="([^"]+)"',
html,
)
return matches[0] if len(matches) == 1 else None


def title(html):
matches = re.findall(r"<title>([^<]+)</title>", html)
return matches[0] if len(matches) == 1 else None


class SupportContentTests(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.paw = PAW.read_text(encoding="utf-8")
cls.face = FACE.read_text(encoding="utf-8")

def test_paw_count_matches_verified_store_listing(self):
self.assertIn("100 dog breed profiles", self.paw)
self.assertNotIn("300+ dog breeds", self.paw)
self.assertIn("100 Dog Breeds", title(self.paw))

def test_paw_snippets_match_and_are_specific(self):
description = meta(self.paw, "description")
self.assertEqual(description, meta(self.paw, "og:description", "property"))
self.assertIn("compare breed profiles", description)
self.assertGreaterEqual(len(description), 90)
self.assertLessEqual(len(description), 170)

def test_paw_schema_matches_real_package_and_description(self):
schemas = re.findall(
r'<script type="application/ld\+json">\s*([\s\S]*?)</script>', self.paw)
self.assertEqual(len(schemas), 1)
data = json.loads(schemas[0])
self.assertEqual(data["@type"], "SoftwareApplication")
self.assertEqual(data["operatingSystem"], "Android")
self.assertEqual(data["description"], meta(self.paw, "description"))
self.assertEqual(
data["downloadUrl"],
f"https://play.google.com/store/apps/details?id={PAW_PACKAGE}",
)

def test_paw_two_distinct_measured_play_ctas(self):
self.assertEqual(self.paw.count('data-position="hero"'), 1)
self.assertEqual(self.paw.count('data-position="details"'), 1)
links = re.findall(r'href="(https://play\.google\.com/store/apps/details\?id=([^&"]+)[^"]*)"', self.paw)
self.assertEqual(len(links), 2)
self.assertEqual([package for _url, package in links], [PAW_PACKAGE] * 2)
self.assertIn("app_slug: 'dog-breeds-encyclopedia'", self.paw)
self.assertIn("placement: a.getAttribute('data-position')", self.paw)

def test_face_support_does_not_promise_download(self):
self.assertIn("not currently available for download", self.face.lower())
self.assertIn("Support & Game Alternatives", title(self.face))
self.assertIn("not currently available for download", meta(self.face, "description").lower())
self.assertEqual(meta(self.face, "description"),
meta(self.face, "og:description", "property"))
self.assertEqual(self.face.count('data-alternative="'), 2)
self.assertNotIn("com.appdevelopsk.face_reaction_battle", self.face)

def test_canonicals_unchanged(self):
for slug, html in (("dog-breeds-encyclopedia", self.paw),
("face-reaction-battle", self.face)):
with self.subTest(slug=slug):
self.assertIn(
f'<link rel="canonical" href="https://appdevelopsk.com/support/{slug}/">',
html,
)
self.assertEqual(html.count("<title>"), 1)
self.assertIsNotNone(meta(html, "description"))


if __name__ == "__main__":
unittest.main()
31 changes: 23 additions & 8 deletions support/dog-breeds-encyclopedia/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,27 @@
<link rel="canonical" href="https://appdevelopsk.com/support/dog-breeds-encyclopedia/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="SK APPS">
<meta property="og:title" content="PawTrace – Dog Breeds Guide App with 100 Breeds">
<meta property="og:description" content="PawTrace is a dog breeds guide app with 100 breed profiles, photos and a compare tool. Get it on Google Play, plus FAQ and support.">
<meta property="og:title" content="PawTrace – 100 Dog Breeds & Comparison">
<meta property="og:description" content="Explore 100 dog breeds with PawTrace: compare breed profiles, temperament, grooming and care tips. Browse photos and download the Android app on Google Play.">
<meta property="og:url" content="https://appdevelopsk.com/support/dog-breeds-encyclopedia/">
<meta property="og:image" content="https://appdevelopsk.com/icons/apps/dog-breeds-encyclopedia.png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "PawTrace",
"operatingSystem": "Android",
"applicationCategory": "EducationalApplication",
"url": "https://appdevelopsk.com/support/dog-breeds-encyclopedia/",
"downloadUrl": "https://play.google.com/store/apps/details?id=com.appdevelopsk.dog_breeds_encyclopedia",
"description": "Explore 100 dog breeds with PawTrace: compare breed profiles, temperament, grooming and care tips. Browse photos and download the Android app on Google Play."
}
</script>
<meta name="twitter:card" content="summary">
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title>PawTrace – Dog Breeds Guide App with 100 Breeds | SK APPS</title>
<meta name="description" content="PawTrace is a dog breeds guide app with 100 breed profiles, photos and a compare tool. Get it on Google Play, plus FAQ and support."/>
<title>PawTrace – 100 Dog Breeds & Comparison | SK APPS</title>
<meta name="description" content="Explore 100 dog breeds with PawTrace: compare breed profiles, temperament, grooming and care tips. Browse photos and download the Android app on Google Play."/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
Expand Down Expand Up @@ -81,7 +93,7 @@
if (!a) return;
var href = a.getAttribute('href') || '';
if (/play\.google\.com/.test(href)) {
gtag('event', 'download_click', { store: 'google_play', location: 'support', link_url: href });
gtag('event', 'download_click', { store: 'google_play', location: 'support', app_slug: 'dog-breeds-encyclopedia', placement: a.getAttribute('data-position') || 'other', link_url: href });
}
}, true);
</script>
Expand Down Expand Up @@ -110,20 +122,23 @@
<div class="hero-emoji">🐾</div>
<div class="hero-cat">Encyclopedia</div>
<h1>PawTrace</h1>
<p id="heroDesc">The ultimate dog breeds encyclopedia. Learn about temperament, care needs, and breed history.</p>
<p id="heroDesc">Explore 100 dog breed profiles, care needs and side-by-side comparisons.</p>
<div class="download-btns" style="justify-content:center;margin-top:1rem">
<a href="https://play.google.com/store/apps/details?id=com.appdevelopsk.dog_breeds_encyclopedia&amp;utm_source=appdevelopsk&amp;utm_medium=web&amp;utm_campaign=support_dog-breeds-encyclopedia&amp;referrer=utm_source%3Dappdevelopsk%26utm_medium%3Dweb%26utm_campaign%3Dsupport_dog-breeds-encyclopedia" class="dl-btn dl-btn-play" data-position="hero" rel="noopener noreferrer" target="_blank">Get PawTrace on Google Play</a>
</div>
</div>

<div class="container">
<div class="card">
<h2 data-i18n="features">Key Features</h2>
<div class="features-grid"><div class="feature"><div class="feature-dot"></div><span data-feat="0">300+ dog breeds</span></div><div class="feature"><div class="feature-dot"></div><span data-feat="1">Care guides</span></div><div class="feature"><div class="feature-dot"></div><span data-feat="2">Breed comparison tool</span></div><div class="feature"><div class="feature-dot"></div><span data-feat="3">Photo galleries</span></div></div>
<div class="features-grid"><div class="feature"><div class="feature-dot"></div><span data-feat="0">100 dog breed profiles</span></div><div class="feature"><div class="feature-dot"></div><span data-feat="1">Care guides</span></div><div class="feature"><div class="feature-dot"></div><span data-feat="2">Breed comparison tool</span></div><div class="feature"><div class="feature-dot"></div><span data-feat="3">Photo galleries</span></div></div>
</div>

<div class="card">
<h2 data-i18n="download">Download</h2>
<p data-i18n="download_desc">Available on Android. Download for free from Google Play and start using today.</p>
<div class="download-btns">
<a href="https://play.google.com/store/apps/details?id=com.appdevelopsk.dog_breeds_encyclopedia&amp;utm_source=appdevelopsk&amp;utm_medium=web&amp;utm_campaign=support_dog-breeds-encyclopedia&amp;referrer=utm_source%3Dappdevelopsk%26utm_medium%3Dweb%26utm_campaign%3Dsupport_dog-breeds-encyclopedia" class="dl-btn dl-btn-play" rel="noopener" target="_blank">Google Play</a>
<a href="https://play.google.com/store/apps/details?id=com.appdevelopsk.dog_breeds_encyclopedia&amp;utm_source=appdevelopsk&amp;utm_medium=web&amp;utm_campaign=support_dog-breeds-encyclopedia&amp;referrer=utm_source%3Dappdevelopsk%26utm_medium%3Dweb%26utm_campaign%3Dsupport_dog-breeds-encyclopedia" class="dl-btn dl-btn-play" data-position="details" rel="noopener noreferrer" target="_blank">Google Play</a>
</div>
</div>

Expand Down
9 changes: 5 additions & 4 deletions support/face-reaction-battle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<link rel="canonical" href="https://appdevelopsk.com/support/face-reaction-battle/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="SK APPS">
<meta property="og:title" content="Face Battle App – Facial Expression Reaction Game">
<meta property="og:description" content="Play Face Battle (Face Reaction Battle), a reaction game using facial expressions in solo and real-time challenges. Explore app features, FAQs and support.">
<meta property="og:title" content="Face Battle – Support & Game Alternatives">
<meta property="og:description" content="Face Reaction Battle is not currently available for download. Get support for existing users and explore Instant Judge and Blur, other SK Apps games on Google Play.">
<meta property="og:url" content="https://appdevelopsk.com/support/face-reaction-battle/">
<meta property="og:image" content="https://appdevelopsk.com/og-image.png">
<meta name="twitter:card" content="summary_large_image">
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title>Face Battle App – Facial Expression Reaction Game | SK APPS</title>
<meta name="description" content="Play Face Battle (Face Reaction Battle), a reaction game using facial expressions in solo and real-time challenges. Explore app features, FAQs and support."/>
<title>Face Battle – Support & Game Alternatives | SK APPS</title>
<meta name="description" content="Face Reaction Battle is not currently available for download. Get support for existing users and explore Instant Judge and Blur, other SK Apps games on Google Play."/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
Expand Down Expand Up @@ -90,6 +90,7 @@
<div class="hero-emoji">😄🆚😠</div>
<div class="hero-cat">Game</div>
<h1>Face Reaction Battle</h1>
<p style="margin-top:.65rem;font-weight:600">Support for existing players — not currently available to download.</p>
<p>Real-time face expression game using your camera. Challenge friends or beat your high score!</p>
</div>

Expand Down
Loading