[WordPress] 外掛分享: Tracking Code for Twitter Pixel

首頁外掛目錄 › Tracking Code for Twitter Pixel
WordPress 外掛 Tracking Code for Twitter Pixel 的封面圖片
20+
安裝啟用
尚無評分
622 天前
最後更新
問題解決
WordPress 4.8+ PHP 5.6+ v1.0.0 上架:2020-11-30

內容簡介

Tracking Code For Twitter Pixel 是一個簡單且輕量的 WordPress 外掛,可以插入您的 Twitter Pixel 追蹤代碼。該外掛只有一個功能,就是在網站的 <head> 中列印標準的 Twitter Pixel 追蹤腳本。要插入您的標籤 ID,請轉到「設定」>「一般」然後滾動到頁面底部。

Composer
composer require claytoncollie/tracking-code-for-twitter-pixel

過濾器

如果您想要設置標籤 ID 而不使用 wp-admin 使用者介面,可以使用以下過濾器。

add_filter(
'tracking_code_for_twitter_pixel_id',
/**
* 設置 Twitter Pixel 標籤 ID。
*
* @param string $tag_id 標籤 ID。
*
* @return string
*/
function ( $tag_id ) {
return '123456789';
}
);

貢獻

雖然此外掛的目的是非常緊密的範圍,但問題和拉請求是受歡迎的,但我不保證所有事情都會合併或提供支援。

https://github.com/claytoncollie/tracking-code-for-twitter-pixel

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Tracking Code for Twitter Pixel」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Tracking Code For Twitter Pixel is a simple, lightweight WordPress plugin for inserting your Twitter Pixel tracking code. The plugin does one thing and one thing only; prints the standard Twitter Pixel tacking script to the of your website. To insert your tag ID, navigate to Settings > General and then scroll to the bottom of the page.
Composer
composer require claytoncollie/tracking-code-for-twitter-pixel

Filters
If you want to set the tag ID without using the wp-admin user interface, use the filter below.
add_filter(
'tracking_code_for_twitter_pixel_id',
/**
* Set Twitter Pixel tag ID.
*
* @param string $tag_id Tag ID.
*
* @return string
*/
function ( $tag_id ) {
return '123456789';
}
);

Contributing
While the purpose of this plugin is to be very tightly scoped, issues and pull requests are welcome, but I do not guarantee that everything will be merged or support will be given.
https://github.com/claytoncollie/tracking-code-for-twitter-pixel

延伸相關外掛

文章
Filter
Apply Filters
Mastodon