analytics icon indicating copy to clipboard operation
analytics copied to clipboard

Google analytics has outdated UTM parameters handler

Open ihorml opened this issue 5 months ago • 1 comments

For anyone who is using / going to use GA4 plugin: https://github.com/DavidWells/analytics/blob/master/packages/analytics-plugin-google-analytics/src/browser.js#L284

This object should be replaced with the following (underscore instead of camelCase):

  if (id) campaign.campaign_id = id
  if (name) campaign.campaign_name = name
  if (source) campaign.campaign_source = source
  if (medium) campaign.campaign_medium = medium
  if (content) campaign.campaign_content = content
  if (keyword) campaign.campaign_keyword = keyword

ihorml avatar Jul 18 '25 12:07 ihorml

can you submit a PR for this?

iloveitaly avatar Oct 25 '25 16:10 iloveitaly