Early Access

Meta Tags

twitter:site:id

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

A meta tag specific to Twitter Cards that associates your site with a Twitter account using a unique Twitter user ID. This is used to attribute the content to a Twitter account and is particularly useful for analytics and tracking content distribution.

Code Examples

<meta name="twitter:site:id" content="123456789" />
A valid Twitter user ID, representing a numeric string that uniquely identifies a Twitter account.
<meta name="twitter:site:id" content="@YourTwitterHandle" />
Using your Twitter handle (@username) instead of the numeric user ID is incorrect and will not properly associate the content with your Twitter account.
<meta name="twitter:site:id" content="" />
Leaving the "twitter:site:id" value empty provides no benefit and misses the opportunity for account attribution and analytics on Twitter.

Recommendations

  • Finding Your Twitter User ID
    Your Twitter user ID is a string of numbers, not your username. Use Twitter's settings or third-party tools to find your user ID.
  • Consistent Attribution
    Always use the same Twitter user ID for content from your site to ensure consistent attribution and improve your site's social metrics tracking on Twitter.

Related Documentation

Related Meta Tags

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.

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.

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