Track campaigns with Google Analytics without query string parameters?

后端 未结 9 1211
忘掉有多难
忘掉有多难 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条回答
  •  醉梦人生
    2020-11-30 19:34

    The solution using push(['_set', 'campaignParams',... seems only to work for the legacy library ga.js.

    Using analytics.js you need to specify the campaign param separately. E.g.

    ga('set', 'campaignName', 'TheCampaignName...');
    ga('set', 'campaignSource', 'someCampaignSource');
    ga('set', 'campaignMedium', 'email');
    

    https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#campaignName

提交回复
热议问题