Early Access

Meta Tags

twitter:label2

Learn how to use the twitter:label2 meta tag to improve your site.

Defines the label for the second data point displayed in a Twitter Card, often used alongside "twitter:data2" to provide additional context or information.

Code Examples

<meta name="twitter:label2" content="Location" />
Use "Location" as "twitter:label2" with a corresponding "twitter:data2" value like "San Francisco, CA" to specify the location relevant to the Twitter Card content.
<meta name="twitter:label2" content="Event Date" />
If providing event information, using "Event Date" as "twitter:label2" with "twitter:data2" indicating the actual date (e.g., "May 25, 2023") offers clear, additional details about the event.
<meta name="twitter:label2" content="This is a very long and detailed description that is likely going to be truncated." />
Using overly long labels can be confusing or misleading due to truncation; they should be avoided to ensure clarity.
<meta name="twitter:label2" content="" />
Leaving "twitter:label2" empty while defining "twitter:data2" misses an opportunity to provide context, making the data less impactful.

Recommendations

  • Maximum Length Consideration
    Keep the label concise to avoid truncation. Twitter doesn’t officially specify a max length, but staying under 50 characters prevents most issues.
  • Complementary Data
    Ensure that "twitter:label2" is contextually relevant to "twitter:data2". The label should effectively describe or qualify the data following it for clarity.

Related Documentation

Related Meta Tags

Defines the numeric ID of your iPad application in the Apple App Store, enabling Twitter to link to it when your content is shared.

<meta name="twitter:app:id:ipad" content="307234931">
Specifies the App Store ID for an iPad application, directly guiding Twitter users to the app when shared.

Defines the iPhone app ID in the Apple App Store for deep linking from tweets. This is part of Twitter Cards used to enhance tweets with rich media to direct users to web content directly or through an app.

<meta name="twitter:app:id:iphone" content="307234931">
A valid example of an App Store ID used for the Twitter iPhone app, facilitating direct app opens or installations from tweets.

Specifies the unique application ID for a Google Play app, used within Twitter Cards to direct users to a specific Android app.

<meta name="twitter:app:id:googleplay" content="com.example.app">
Correctly specifies the Google Play Store ID, ensuring Twitter can direct users to the appropriate app page.

Specifies the name of your application tailored for iPad users when sharing content on Twitter.

<meta name="twitter:app:name:ipad" content="My Amazing App">
Clearly specifies the name of the application as "My Amazing App", which is direct and memorable.

Specifies the name of your Android app on the Google Play Store. This is utilized in Twitter Cards when you want to promote a mobile application directly from a tweet.

<meta name="twitter:app:name:googleplay" content="MyApp">
Directly matching the app name on the Google Play Store, ensuring accurate and effective promotion.