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

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

內容簡介

Tracking Code For Pinterest Pixel 是一個簡單、輕量級的 WordPress 外掛程式,用於插入您的 Pinterest 像素追蹤代碼。該外掛僅有一個功能,就是將標準的 Pinterest 像素追蹤腳本列印到您網站的 <head> 中。若要插入您的標籤 ID,請前往「設定」>「一般」,然後往下捲動到頁面底部。

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

Filters

若要設置標籤 ID 而不使用 wp-admin 使用者介面,請使用以下的篩選器。

add_filter(
'tracking_code_for_pinterest_pixel_id',
/**
* 設置 Pinterest Pixel 標籤 ID。
*
* @param string $tag_id 標籤 ID。
*
* @return string
*/
function ( $tag_id ) {
return 'UA-7654321';
}
);

貢獻

雖然此外掛的目的是非常緊密的,但歡迎問題和拉取請求,但我無法保證所有內容都會合併或提供支援。

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

外掛標籤

開發者團隊

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

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

原文外掛簡介

Tracking Code For Pinterest Pixel is a simple, lightweight WordPress plugin for inserting your Pinterest Pixel tracking code. The plugin does one thing and one thing only; prints the standard Pinterest 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-pinterest-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_pinterest_pixel_id',
/**
* Set Pinterest Pixel tag ID.
*
* @param string $tag_id Tag ID.
*
* @return string
*/
function ( $tag_id ) {
return 'UA-7654321';
}
);

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-pinterest-pixel

延伸相關外掛

文章
Filter
Mastodon