# Losing analytics with Google OAuth (Tracking code)

**URL:** <https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833>\
**Category:** APIs & Integrations\
**Tags:** developer, forms, contacts, integrations\
**Created:** [January 15, 2024, 2:09pm UTC](https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833 "2024-01-15T14:09:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrykqc](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@Patrykqc](https://community.hubspot.com/u/Patrykqc)\
**Post date:** [January 15, 2024, 2:09pm UTC](https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833/1 "2024-01-15T14:09:48Z")

</div>

Below is my issue:

There are 2 ways to signup for our app: email or google/facebook OAuth and:  
1. When a user signs up via our “Sign Up Form” using their email, we successfully gather information via Hubspot tracking.

2. However, if a user opts for Google or Facebook Authentication on the same form, we encounter a problem. In this scenario, Hubspot does not automatically create a contact. To circumvent this, we’ve integrated a “bcc” code into our “Welcome Email”. This workaround, unfortunately, results in the loss of critical analytical data. The key metrics we miss are:

1. First Page Seen
2. Original Source
3. Original Drill-Down Source
4. First Referring Site

Is there a way to use Google OAuth and not lose tracking data?

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [January 16, 2024, 8:19am UTC](https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833/2 "2024-01-16T08:19:03Z")

</div>

Hi @Patrykqc,  
Thank you for reaching out to the Community!  
I’d like to share this article for information: “[Working with OAuth](https://developers.hubspot.com/docs/api/working-with-oauth)”.  
I also wanted to invite a couple of subject matter experts to this conversation: Hi @louischausse, @miljkovicmisa and @Teun do you have suggestions to help @Patrykqc, please?  
**Also, if anybody else has anything to add and/or share, please feel free to join in the conversation 🙂**  
Thank you very much ❤ for your help and have a lovely day!  
Best,  
Bérangère

---

<div class="post-metadata">

**Author:** ![Patrykqc](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@Patrykqc](https://community.hubspot.com/u/Patrykqc)\
**Post date:** [January 16, 2024, 11:37am UTC](https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833/3 "2024-01-16T11:37:46Z")

</div>

[@BérangèreL](https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185) thank you for your answer. I believe that documentation you shared talks about **Hubspot OAuth** and I am having issue with **Hubspot Tracking** not working with **Google OAuth** so I haven’t found any solution there.

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [January 19, 2024, 5:40pm UTC](https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833/4 "2024-01-19T17:40:43Z")

</div>

Hi @Patrykqc,  
Thanks for the clarification!  
In that case, I will move your post to you [the Developer Forum](https://community.hubspot.com/t5/HubSpot-Developers/ct-p/developers) since they will be better equipped to help you on this specific use case.  
Thank you and have a great weekend!  
Best,  
Bérangère

---

<div class="post-metadata">

**Author:** ![SJaffri](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@SJaffri](https://community.hubspot.com/u/SJaffri)\
**Post date:** [August 2, 2024, 7:22am UTC](https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833/5 "2024-08-02T07:22:51Z")

</div>

I am facing the similar problem.

Can you help me track the data of oAuth based signup members on my own website?

---

<div class="post-metadata">

**Author:** ![jsmasand](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@jsmasand](https://community.hubspot.com/u/jsmasand)\
**Post date:** [May 6, 2024, 4:14pm UTC](https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833/6 "2024-05-06T16:14:47Z")

</div>

@Patrykqc did you find a solution?

---

<div class="post-metadata">

**Author:** ![KevinKe](https://avatars.discourse-cdn.com/v4/letter/k/58956e/32.png) [@KevinKe](https://community.hubspot.com/u/KevinKe)\
**Post date:** [August 4, 2025, 9:42am UTC](https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833/7 "2025-08-04T09:42:11Z")

</div>

I am facing the same problem, anyone can help???

---

<div class="post-metadata">

**Author:** ![TGlisic](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@TGlisic](https://community.hubspot.com/u/TGlisic)\
**Post date:** [August 4, 2025, 1:12pm UTC](https://community.hubspot.com/t/losing-analytics-with-google-oauth-tracking-code/97833/8 "2025-08-04T13:12:08Z")

</div>

Hi, you are probably losing the visitor’s identity after Google authentication. I do not know if this can help you, but check this

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Flegacy%2Ftracking-code-v1%2Foverview)**
