The tools probably doesn't run the js of your site, it looks for the html. So you probably need to handle that with php and not js, if you want it dynamic.
May 28, 2025
4
Level 1
Laravel+inertiajs + vue Seo friendly setup
Hi expert team,
I'm looking for guidance on the best practices to make my Inertia.js app SEO-friendly. Currently, SEO tools are not detecting essential metadata such as the page title and description in my app.
Here's a component I created to manage page metadata:
<template>
<Head>
<title>{{ props.title }}</title>
<meta name="description" :content="props.description" head-key="description" />
<meta name="keywords" :content="props.keywords" head-key="keywords" />
<link rel="canonical" :href="pageUrl" head-key="canonical" />
<meta property="og:title" :content="props.title" head-key="og:title" />
<meta property="og:description" :content="props.description" head-key="og:description" />
<meta property="og:image" :content="imageUrl" head-key="og:image" />
<meta property="og:url" :content="pageUrl" head-key="og:url" />
<meta property="og:type" :content="props.type" head-key="og:type" />
<meta name="twitter:card" content="summary_large_image" head-key="twitter:card" />
<meta name="twitter:title" :content="props.title" head-key="twitter:title" />
<meta name="twitter:description" :content="props.description" head-key="twitter:description" />
<meta name="twitter:image" :content="imageUrl" head-key="twitter:image" />
</Head>
</template>
Please or to participate in this conversation.