top of page

How to Add Trinity Audio’s AudioObject Script for Enhanced SEO and Rich Results

  • Oren Liberman
  • 27 minutes ago
  • 2 min read

If you publish audio content on your website, making it discoverable by search engines is crucial for reaching a wider audience. Trinity Audio’s AudioObject script offers a simple way to add structured metadata to your pages, enabling Google and other search engines to better understand and index your audio. In this guide, you’ll learn how to integrate the AudioObject script, unlock eligibility for Google’s audio-rich results, and ensure your audio content stands out in search.



What Is the AudioObject Script?


The AudioObject script is a streamlined JavaScript snippet provided by Trinity Audio that programmatically injects structured audio metadata into a webpage. This metadata facilitates enhanced comprehension and indexing of audio content by search engines, particularly Google.

Upon execution, the script generates AudioObject schema markup (AudioObject - Schema.org Type) and associates it with the webpage. This process enhances search engine optimization and enables eligibility for audio-specific Google rich results.


Benefits of Integration


Integrating the AudioObject script provides significant added value by making your audio content more discoverable and accessible through search engines. By embedding structured metadata that conforms to recognized standards, your webpages become eligible for enhanced search features such as audio-rich results on Google. This not only increases the visibility of your audio assets but also improves user engagement by enabling listeners to find relevant audio content directly from search results.


Prerequisites


  • Ensure the webpage is publicly accessible when performing tests via the Google Rich Results tool. Verify that the robots.txt file does not restrict access to the page.

  • Inclusion of a valid canonical link is essential for the script to function correctly, ensuring accurate generation of AudioObject metadata.


Basic Script Integration


To incorporate the AudioObject functionality into your webpage, insert the following script tag:

This tag should be placed anywhere within the HTML body, preferably near the conclusion of the page content.


Supported Parameters


The script accepts optional URL query parameters as follows:

  1. language - Specifies the language attribute for the AudioObject metadata.

  2. canonicalURL - Designates the canonical URL of the page, encoded. If omitted, the script attempts to automatically retrieve it from the following element:

<link rel="canonical" href="https://example.com/example.html">

Example with Parameters


Parameters may be included directly within the script's src attribute as demonstrated below:


In the absence of explicit language and canonicalURL parameters, the script defaults to predetermined values and endeavors to detect these attributes from the webpage context.


Verification of Integration


Subsequent to script inclusion, verify that Google accurately detects the AudioObject metadata utilizing the official validation tool: 🔗 Google Rich Results Test


Input your webpage URL and confirm that the AudioObject schema is listed among the detected structured data.

 

Example:



Summary


This guide provides step-by-step instructions for integrating the Trinity Audio AudioObject script into your webpages. By following these guidelines, you will enable enhanced audio metadata for your content, making it more discoverable and accessible through search engines like Google.

As always, if you have any questions, don’t hesitate to reach out to support@trinityaudio.ai.


 
 
 

Related Posts

See All
bottom of page