Track campaigns with Google Analytics without query string parameters?

后端 未结 9 1227
忘掉有多难
忘掉有多难 2020-11-30 18:52

Is there a supported way in Google Analytics to track a campaign without having to use query string parameters.

In Analytics you can tag a link to your site with que

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 19:29

    You can use the Google Analytics API to customize the call to _trackPageview in your example.

    pageTracker._trackPageview("/inbound/" + campaignSource + "/" + campaignMedium );
    

    All of the inbound links will then show up in Google Analytics under the /inbound/ "pseudo directory" with a separate "directory" for Campaign Source and Campaign Medium.

提交回复
热议问题