| 开发者 | terovania |
|---|---|
| 更新时间 | 2026年11月22日 18:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
placement of your analytics events and the utm_content in Steam's UTM report, so both reports name the same widget.tsi:track JavaScript event for any other analytics stack.[steam_widget] shortcode for the game widget in the Classic Editor, page builders, and widget areas.No. The plugin uses Steam's public store data and needs no key and no Steamworks login. You only need your game's App ID, or its name: the editor finds it for you.
The plugin sets no cookies, and your visitors' browsers normally load nothing from Valve: your server fetches the data and images and serves them from your site. There are two exceptions, explained under External services: a header image that cannot be stored on your site is shown from Steam's URL, and a Screenshot Gallery you set to load from Steam's CDN (opt-in). Whether your site complies with the GDPR depends on your whole setup: your analytics tool (GA4, Matomo) still needs your consent setup, and a text for your privacy policy is included under Settings → Privacy → Policy Guide.
Steam data is cached (1 hour by default) and refreshed in the background, so after a game's first view, page views normally do not wait for Steam. Images are served from your site, the feature icons are inline SVG, and the small frontend script has no dependencies. Game Presets and wp tsi cache warm load a game before its first visitor.
Choose your integration under Steam Widgets → General → Analytics Integration. The widget then sends steamWidgetImpression, steamWishlistClick, and steamDemoClick with appId, gameName, and placement; click events also carry ctaType and utmContent.
In Google Tag Manager, create Data Layer Variables for these fields, a Custom Event trigger per event, and a GA4 event tag; then register the fields as custom dimensions in GA4. Divide clicks by impressions per placement to get each placement's click-through rate. Matomo Tag Manager receives the same events in its _mtm data layer; classic Matomo tracks them as events in the category "Steam Widget".
Without Google Tag Manager (gtag.js only), forward the events yourself: document.addEventListener( 'tsi:track', function ( e ) { gtag( 'event', e.detail.event, e.detail ); } );
Give a widget its own UTM Content (placement), for example homepage-hero, or keep the automatic key (widget-p42-1 for the first widget in post 42). The key is the placement of the widget's events and the utm_content of its Steam links. In Steamworks, open UTM Analytics for the app the link leads to and compare its wishlists per utm_content with your clicks per placement. The demo button adds -demo to the key and lands in the demo's report. The automatic key follows the widget's position in the post, so adding or moving widgets above it changes the key: give placements you compare over time their own short, lower-case key.
Yes. Enter the App ID or pick it in the search. Demos, DLCs, and soundtracks get a badge and a link to the full game, and a demo's default button wishlists the full game. Unreleased games show "Coming soon", which makes the widget a good fit for pre-launch pages.
The price of the widget's language region (US dollars for English, euros for German, and so on), including Steam sales. Steam texts come in the language you pick per widget (27 Steam languages); when Steam has no text in that language, the widget shows Steam's English store data, including the US price. If rules for advertising price reductions apply to your site, switch off Sale prices under Steam Widgets → General (or "Show Sale Prices" for one widget) to show only the current price.
Pick one of three layouts, the title's heading level, your own button text, and which details appear: price, sale prices, age rating, feature icons, genres, review summary, Metacritic score, release status, badges, and the demo button. The shortcode also accepts hex colors for the button and the release status (cta_color, cta_hover_color, highlight_color).
Yes, for the game widget: use the [steam_widget] shortcode. It renders the same markup as the block, and every block setting has an attribute, for example:
[steam_widget appid="913800" layout="compact" utm_content="sidebar" show_reviews="true"]
[steam_widget preset="Spring Sale"] links the widget to a Game Preset. The Screenshot Gallery and Steam News are available as blocks only.
Yes. Settings, presets, caches and the debug log belong to each site. After network activation, every site sets itself up on its first visit, and sites created later are set up right away. Network deactivation removes the plugin's scheduled tasks from every site, and deleting the plugin removes its data from every site. On a very large network, delete it with wp plugin uninstall rather than in the browser, which may time out.
Yes:
wp tsi cache clear clears all cached Steam data; wp tsi cache clear 620 refreshes one game.wp tsi cache warm 620 --language=en or --all-presets loads games before the first visitor does.wp tsi cache stats shows the cache size.wp tsi presets export and wp tsi presets import presets.json move presets between sites.wp tsi diagnostics shows the Steam request log recorded in debug mode.Yes, with filters in a theme or a small plugin. Each one is documented in the plugin's code where it is applied. Example: add_filter( 'tsi_feature_icons_max', function () { return 5; } );
tsi_feature_icons (the feature chips, keyed by Steam category ID: add, relabel, reorder, or switch off entries), tsi_feature_icons_max (default 8; 0 hides the chips), tsi_icon_sprite_inline, tsi_gallery_legal_notice.tsi_tracking_event_names, tsi_widget_instance_id.tsi_steam_endpoints, tsi_steam_api_timeout, tsi_cache_ttl, tsi_cache_ttl_failure, tsi_steam_stale_ttl, tsi_discount_end_check, tsi_search_rate_limit, tsi_refresh_cache_batch, tsi_preset_warm_max, tsi_preset_warm_budget.tsi_image_allowed_hosts, tsi_image_cache_max_bytes, tsi_image_cache_max_age, tsi_image_failure_ttl, tsi_screenshot_batch_size, tsi_gallery_steam_cdn, tsi_gallery_mature_min_age, tsi_gallery_mature_descriptor_ids, tsi_legacy_cleanup_batch_size, tsi_legacy_cleanup_step_seconds.tsi_settings_tabs adds a tab; the action tsi_settings_tab_{slug} prints its content.tsi_network_batch_size (sites per batch when network deactivation or deleting the plugin cleans every site, default 100).Open Steam Widgets → Diagnostics and switch on Debug mode. The tab lists the last 20 Steam requests with their status, and Test connection asks Steam for your default game right away. Switch debug mode off again when you are done.
utm_content and as the placement of analytics events.utm_content instead of the fixed value gutenberg-widget, so clicks after the update appear under new values in Steam's UTM report. To keep a widget's old row, set its UTM Content (placement) to gutenberg-widget.cta_color, cta_hover_color, highlight_color). The optional credit line under the widget is one translatable sentence, and its link is marked nofollow.tsi_image_cache_max_age sets the age for both), and when the image cache is over its size limit it first removes the images that were neither downloaded nor shown for the longest time. Galleries in a contributor's preview are copied once the post is published.--tsi-widget-bg, --tsi-text-color, --tsi-highlight-color, --tsi-cta-bg, --tsi-cta-bg-hover and --tsi-link-color, set on .wp-block-terovania-steam-widget instead of :root, so they no longer clash with a theme's own variables. Custom CSS that set the old names on :root must use the new names on that class.appId and the demo as sourceAppId.[steam_widget] shortcode, Game Presets, Compact and Vertical layouts, Matomo support, and a German translation.