
內容簡介
UTM Switcher
UTM Switcher 是一款強大的工具,可幫助您追蹤訪問者來自何處,並根據 url 中的 utm_source GET 變量修改頁面元素。它會記錄訪問者最初登陸的位置,並主動變更整個網站的目標元素以符合該來源。
跟進您的銷售機會
在數位營銷中,很難弄清楚哪個渠道能夠取得最好的效果:是 Adwords、Facebook 付費廣告、部落格還是其他東西。因此,一些公司使用具有不同電話號碼的登陸頁面來跟踪潛在客戶的來源。但是,典型客戶在跟隨任何行動之前會在網站上進行多次互動。他們可能會點擊幾個頁面後作出決定。這就是 UTM Switcher 發揮作用的地方。
它是如何運作的?
UTM Switcher 使用 cookies 使您的銷售機會相關的內容在所有頁面上保持一致。這些 cookies 只有在關閉網站時才會被刪除。它可以在所有 WordPress 網站上運作,並具有與 Contact Form 7 和 Contact Form DB 的整合。存儲的信息從 URL 的 GET 變量 utm_source、utm_medium 和 utm_campaign 中提取。
當 UTM Switcher 使用 jQuery 找到匹配的 DOM 元素時,它會將該元素的內容替換為提供的內容。每個 Switcher 可以設置成匹配 URL 中特定的 utm_source 或存儲為 cookie 值到指定的 DOM 元素。例如,如果 utm_source 值是 Facebook,則將值更改為 1234,如果 utm_source 值是 Twitter,則將目標元素更改為 4321。每個 Switcher 也可以設置為用於調用跟踪插件的 tel:anchor tag 替換值。
您可以在此處閱讀有關調用跟踪插件的更多信息。
推薦的 PHP 版本
PHP 版本 5.4 或更高
所需外掛程式
無
推薦的外掛程式
Contact Form 7 - 如果選擇, UTM 信息可以在您的表單電子郵件中發送。此信息包括從初始 URL GET 變量 utm_source、utm_medium 和 utm_campaign 中獲取的信息。這些值隨後通過短碼傳遞到電子郵件,例如 [utm-100]
Contact Form DB - 此擴展程序不是必需的,但我們建議使用它。
用法
在 UTM Switchers 下,點擊新增
輸入標識符 - 這僅供內部使用。您可以使用它來跟踪轉換執行的操作
輸入一個選擇器(#ID 或 .classname 或其他選擇器),以定位要更改的元素。此字段使用jQuery 語法
選擇類型。電話號碼元素會使用帶有 tel:屬性的錨鏈替換整個元素。文本替換將替換上面元素中的所有文本
在 UTM Source Switchers 下點擊“添加 Switcher”。 Campaign Source 字段中匹配的值到 utm_source GET 變量將使用 Replacement Value 字段中的值替換上述選擇器的內容。HTML 可以使用。您可以為不同的 UTM Sources 添加多個 switches
點擊發佈
貢獻
如需報告任何錯誤或提供功能,請使用我們的GitHub 存儲庫
更新
此外掛程式的基本結構是從WordPress-Plugin-Boilerplate克隆的。
外掛標籤
開發者團隊
原文外掛簡介
UTM Switcher
The UTM Switcher is a powerful tool to help you track where your site visitors are coming from and modify page elements based upon a utm_source GET variable in a url. It notes where a site visitor first lands, and then proactively changes targeted elements across your entire website to match that source.
Keep track of your leads
In digital marketing, it can be difficult to figure out which of your channels is getting the best results: whether it’s Adwords, facebook paid advertising, blogging, or something else. For this reason, some companies use landing pages with different phone numbers to track the source of a lead. However, typical customers have multiple interactions with a site before following any call to action. They may click through several pages before making a decision. That’s where UTM Switcher comes in.
How it works
UTM Switchers uses cookies to keep your lead-specific content consistent across all pages. The cookies are only destroyed once the website is closed. It works with all WordPress sites and features integrations with Contact Form 7 and Contact Form DB. The information stored is taken from the URL’s GET variables utm_source, utm_medium, and utm_campaign
When a UTM Switcher finds a matching DOM element using jQuery, it replaces the content of that element with the value supplied in the switch. Each Switcher can be set to match a specific utm_source in the URL or stored as a cookie value to the specific DOM element. An example of this is if the utm_source value is Facebook change the value to 1234 and if the utm_source value is Twitter change the targeted element to 4321. Each Switcher can also be set to replace the value with a tel: anchor tag for use with a call tracking plugin.
You can read more about the call tracking plugin here.
Recommended PHP Version
PHP 5.4 or greater
Required plugins
None
Recommended plugins
Contact Form 7 – If you choose, the UTM information can be sent in your form email. This information will include the information gathered from the initial URL GET variables utm_source, utm_medium, and utm_campaign. These values are then passed along to the email via a shortcode, e.g. [utm-100]
Contact Form DB – This extension is not required, but we do recommend it.
Usage
Under UTM Switchers, click Add New
Enter an Identifier — this is for internal use only. You could use it to keep track of what the switch does
Enter an selector (an #ID or .classname or other selector) to target. This field uses jQuery syntax
Choose the Type. Phone Number Element will replace the whole element with an anchor link with a tel: attribute. Text replacement replaces all text in the above element
Click “Add Switcher” under UTM Source Switchers. A matching value in the Campaign Source field to the utm_source GET variable will replace the above selector’s content with the value in the Replacement Value field. HTML can be used. You may add multple switches for different UTM Sources
Click Publish.
Contribute
To report any bugs, or to offer features, please use our GitHub repository
Updates
The basic structure of this plugin was cloned from the WordPress-Plugin-Boilerplate project.
