-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird behavior at session and first-user level with attribution sent via campaign_details or firebase_campaign events #6627
Comments
I found a few problems with this issue:
|
Hi @giovaniortolani, thank you for reaching out. Can you share the verbose logs from the test cases? This would help us investigate the data that's been collected. Thanks! |
Hi @lehcar09, unfortunately I didn't store them. |
Here are the verbose logs. I had to run the tests again because I didn't save the logs the first time, the result should be the same. |
Thank you for the the logs @giovaniortolani. I'm not that familiar with attribution. Based on the docs on how session attribution works,
This could be more of a data issue. Based on the logs you shared, could you confirm if the traffic source dimensions in
Thanks! |
Hi @lehcar09, the event-level dimensions (
Thinking better, this might be a case for the GA4 or BQ export team. Would you happen to know how we can forward this bug to them? Is it possible for you to do that? |
This looks more of a data issue, rather than SDK. You’re right. It would be best to reach out to the Google Analytics team to get better help on data concerns. Unfortunately, I can only recommend reaching out through Google Analytics Help Center. Aside from that, you can try the the support options below:
With that, I’ll be closing this issue for now. Let me know if there’s any misunderstanding so we can re-open this thread. Thanks! |
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
I'm running some tests on Firebase Analytics and came across one weird behavior regarding attribution using the campaign_details (manual event) and firebase_campaign (automatic event).
Test cases:
campaign_details
with attribution X, let the session expire, start session 2, and sendcampaign_details
with attribution Y.campaign_details
with attribution Y.firebase_campaign
(automatic event) fire, let the session expire, start session 2, and sendcampaign_details
with attribution Z.campaign_details
in session 1.firebase_campaign
(automatic event) in the second session instead ofcampaign_details
.campaign_details
, let the session expire, and start session 2 directly (no attribution information is sent in the second session).campaign_details
with attribution X. On the next day (day 2), start session 2 and sendcampaign_details
with attribution Y.Conclusions:
For some reason, the attribution of a later session affects the attribution of a previous session on the same day.
This screenshot corresponds to the 1st test case described above. The same behavior can be observed in the other test cases.
There's also a weird behavior for sessions on different days.
The attribution sent on the following session (following day) was completely ignored and instead, the attribution of the previous session (from previous day) was used. First-user attribution remained intact though.
The attribution works as expected only when the next session is direct after a previous non-direct session. Meaning that the session and first-user attribution is the one from the first session.
There is no difference between the
firebase_campaign
(automatic event - fired when accessing the app with UTMs in the deep link, or via the Play Store) and thecampaign_details
(manual event) in causing this strange attribution. In both cases, the behavior is the same.The result is the same on the GA4 UI and BigQuery table.
Observations:
Relevant Code:
SQL query and raw data for tests 1-7; test 8 is not there
The text was updated successfully, but these errors were encountered: