Early Access

Meta Tags

twitter:site

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

Defines the Twitter username of the website or the content creator. This username is displayed in Twitter cards associated with the website or content to indicate the source. It begins with an @ symbol.

Code Examples

<meta name="twitter:site" content="@exampleUser" />
Correctly starts with @ and matches the user’s Twitter username exactly.

Recommendations

  • Consistency is Key
    Ensure the Twitter username provided matches exactly with the one used on Twitter, including the use of the @ symbol at the beginning. Inconsistencies can lead to improper attribution or no attribution.
  • Only One Correct Use
    Use only one "twitter:site" tag per page. When multiple tags are used, Twitter may ignore the extra tags, which can lead to confusion or incorrect information being displayed.

Related Documentation

Related Meta Tags

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.

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

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.