firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

UTM parameters lost after relaunch

Open b-onc opened this issue 7 years ago • 18 comments

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 10.2.1
  • Firebase SDK version: 5.19.0
  • Firebase Component: Analytics
  • Component version: 5.8.0

[REQUIRED] Step 3: Describe the problem

We’re having a problem with utm parameters. We track those with AnalyticsEventCampaignDetails event whenever a link with with utm params are clicked (we're using branch.io for links) but we’ve seen that conversion events are not attributed to utm params. More specific, utm params are lost after a relaunch and future events are not attributed.

Facebook persists utm events and attributes future events with utm params. Firebase should also do the same, per spec (https://support.google.com/firebase/answer/6317518?hl=en) In the meantime, we've implemented our custom interim solution: save utm params to user defaults and report them on relaunch.

We’re searching for a way to test this functionality. Specifically, we want to make sure our utm parameters, once reported, gets attributed to future conversion events, so we don't need our custon solution. DebugView does not show utm params on events. How should we proceed?

Also asked the question under issue https://github.com/firebase/firebase-ios-sdk/issues/2462 and told to create a ticket for it. Asked the question on firebase slack but could not get a response.

b-onc avatar Apr 29 '19 13:04 b-onc

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Apr 29 '19 13:04 google-oss-bot

Hello? Any updates?

b-onc avatar May 14 '19 09:05 b-onc

@dmandar, is this intended behavior?

morganchen12 avatar May 15 '19 16:05 morganchen12

Pinging for updates

b-onc avatar May 23 '19 13:05 b-onc

Hello @dmandar , did you have time to check?

b-onc avatar Jun 14 '19 05:06 b-onc

Monthly ping for updates

b-onc avatar Jul 08 '19 07:07 b-onc

To confirm, are you using dynamic links at all or is this a Firebase analytics question?

dmandar avatar Jul 16 '19 23:07 dmandar

@dmandar we are not using firebase dynamic links, we are using branch utm links and do the utm tracking with firebase. I guess this is an Analytics question.

b-onc avatar Jul 17 '19 15:07 b-onc

Internally tracked at b/137757236

paulb777 avatar Jul 17 '19 16:07 paulb777

Hello @paulb777 , is there any progress?

b-onc avatar Aug 01 '19 09:08 b-onc

Thank you for the feedback @b-onc. We are following up internally to discuss which is the best implementation for Analytics. I will reply back once I have an update.

In parallel, I would like to hear from you, your thoughts in the following points:

  1. What are the UTM parameters you are interested the most? Is "source", "medium", "campaign" (name) enough? Are "term" and "content" critical for your use case?
  2. You haven't mentioned gclid. Is this also relevant for your use case?

ggpuglia avatar Aug 10 '19 03:08 ggpuglia

Hello @ggpuglia

Thank you for looking into this.

  1. source, medium and campaign is enough for us, term and content is not important
  2. gclid is irrelevant for us

We're using https://ga-dev-tools.appspot.com/campaign-url-builder/ and only care for mandatory parameters

b-onc avatar Aug 12 '19 09:08 b-onc

Thank you for your input! We are tracking this as an internal project. Unfortunately, it might take us a little time to get this prioritized.

ggpuglia avatar Aug 16 '19 18:08 ggpuglia

Hello @ggpuglia , is there any progress on this?

b-onc avatar Sep 11 '19 08:09 b-onc

Hello @ggpuglia , is there any progress on this?

b-onc avatar Oct 04 '19 11:10 b-onc

Sorry, the development team hasn't had a change to prioritize this. We are working on getting release soon.

ggpuglia avatar Oct 04 '19 19:10 ggpuglia

Have there been any updates on this in the last year?

mrfelton avatar Nov 18 '20 10:11 mrfelton

Hi, has there been any update on this?

We have run into a similar issue, with AnalyticsEventCampaignDetails not firing events as expected, but when manually setting campaign, source, and medium parameters on other events, they will get attributed in the acquisition report.

tongdatarunsdeep avatar Jul 14 '21 04:07 tongdatarunsdeep