![](/img/trans.png)
[英]How can I check if a user came via Google Adwords (e.g. by using the __utm* coockie)?
[英]To check if the user came to website by clicking Google adwords
我們正在通過 PHP WordPress 運行網站。 我們在 Google Adwords 中也有網站廣告。 當一些用戶點擊廣告時,它會登陸網站上的其中一個頁面。 在該頁面上,我想知道用戶是通過點擊 Google Adwords 還是通過其他方式進入頁面。
有什么辦法可以做到這一點嗎? 當用戶登陸網頁時我應該檢查什么? (推薦人等)
創建 Google AdWords 廣告系列時,請使用特殊的點擊網址,其中包含您可以驗證的查詢字符串。 像這樣:
https://your.domain/page.php?from=adwords
然后,可以通過檢查查詢字符串參數在服務器端進行檢查,如下所示:
<?php
if ($_GET['from'] == "adwords") {
/* do special stuff, like store things in a database */
/* Finally, maybe redirect them to some other page, if necessary */
header('Location: /');
}
?>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.