內容簡介
Tracking Code For Linkedin Insights Tag 是一個簡單且輕量的 WordPress 外掛程式,可插入您的 Linkedin Insights Tag 追蹤代碼。此外掛僅有一個功能,就是在網站的 <body> 中列印標準 Linkedin Insights Tag 追蹤腳本。若要插入合作夥伴 ID,請前往「設定」>「一般」,然後滾動到頁面底部。
Composer
composer require claytoncollie/tracking-code-for-linkedin-insights-tag
篩選器
如果您不想使用 wp-admin 使用者介面來設定合作夥伴 ID,可使用以下篩選器進行設定。
add_filter(
'tracking_code_for_linkedin_insights_tag_id',
/**
* 設定 Linkedin Insights Tag 合作夥伴 ID。
*
* @param string $partner_id 合作夥伴 ID。
*
* @return string
*/
function ( $partner_id ) {
return '7654321';
}
);
貢獻
儘管此外掛程式的目的是非常嚴格的範圍,但問題和拉取要求仍然可以進行,但我不保證所有內容都會合併或提供支援。
https://github.com/claytoncollie/tracking-code-for-linkedin-insights-tag
外掛標籤
開發者團隊
② 後台搜尋「Tracking Code for Linkedin Insights Tag」→ 直接安裝(推薦)
原文外掛簡介
Tracking Code For Linkedin Insights Tag is a simple, lightweight WordPress plugin for inserting your Linkedin Insights Tag tracking code. The plugin does one thing and one thing only; prints the standard Linkedin Insights Tag tacking script to the
of your website. To insert your partner ID, navigate to Settings > General and then scroll to the bottom of the page.Composer
composer require claytoncollie/tracking-code-for-linkedin-insights-tag
Filters
If you want to set the partner ID without using the wp-admin user interface, use the filter below.
add_filter(
'tracking_code_for_linkedin_insights_tag_id',
/**
* Set Linkedin Insights Tag partner ID.
*
* @param string $partner_id Partner ID.
*
* @return string
*/
function ( $partner_id ) {
return '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-linkedin-insights-tag
