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.

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

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.

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 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.

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.

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.