內容簡介
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
外掛標籤
開發者團隊
② 後台搜尋「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
