APIs & Integrations

SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi everyone,


I hope you are doing well. We need assistance with an issue that has come up after we transitioned from using Hapikey (v2 version) to a Private App (v3 version) for our API calls. Since this change, we've had trouble tracking Google and Facebook leads in our HubSpot contacts list.


Previously, using [specific code], tracking for Google contacts worked correctly with the v2 version. However, after switching to the v3 version, the tracking no longer differentiates properly between Google and Facebook leads. Instead, [specific code] seems to aggregate contacts from both sources under a single filter in the HubSpot contacts list, specifically under the "Original source drill-down 2" filter option.


Could you help us resolve this issue so that we can correctly track and differentiate leads coming from Google and Facebook separately, as we did before?


Your prompt attention to this matter would be greatly appreciated.

Also, is there a Discord community for HubSpot? If so, please let us know.

Thank you in advance for your help and support.

0 Upvotes
11 Replies 11
HMir
Member

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift


@SKundu6 wrote:

Hi everyone,


I hope you are doing well. We need assistance with an issue that has come up after we transitioned from using Hapikey (v2 version) to a Private App (v3 version) for our API calls. Since this change, we've had trouble tracking Google and Facebook leads in our HubSpot contacts list.


Previously, using [specific code], tracking for Google contacts worked correctly with the v2 version. However, after switching to the v3 version, the tracking no longer differentiates properly between Google and Facebook leads. Instead, [specific code] seems to aggregate contacts from both sources under a single filter in the HubSpot contacts list, specifically under the "Original source drill-down 2" filter option.


Could you help us resolve this issue so that we can correctly track and differentiate leads coming from Google and Facebook separately, as we did before?


Your prompt attention to this matter would be greatly appreciated.

Also, is there a Discord community for HubSpot? If so, please let us know.

Thank you in advance for your help and support.


Ensure that the API calls are correctly distinguishing between the lead sources. Specifically, when leads are submitted via your API, ensure that the "utm_source", "utm_medium", and "utm_campaign" parameters are accurately passed to HubSpot. These parameters are critical for source tracking and attribution, particularly for fields like "Original source drill-down 2", which are used to categorize leads by their origins.

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir,


Just following up on my previous post regarding the issue with tracking Google and Facebook leads after the recent API shift.


We haven't received any feedback yet and would really appreciate your insights or suggestions on how to resolve this.


Thanks in advance for your help!

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir,


Just following up on my previous post regarding the issue with tracking Google and Facebook leads after the recent API shift.


We haven't received any feedback yet and would really appreciate your insights or suggestions on how to resolve this.

 

Also, is there a Discord community for HubSpot? If so, please let us know.


Thanks in advance for your help!

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir,


Just following up on my previous post regarding the issue with tracking Google and Facebook leads after the recent API shift.


We haven't received any feedback yet and would really appreciate your insights or suggestions on how to resolve this.

 

Also, is there a Discord community for HubSpot? If so, please let us know.


Thanks in advance for your help!

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir,


Just following up on my previous post regarding the issue with tracking Google and Facebook leads after the recent API shift.


We haven't received any feedback yet and would really appreciate your insights or suggestions on how to resolve this.

 

Also, is there a Discord community for HubSpot? If so, please let us know.


Thanks in advance for your help!

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir,


Just following up on my previous post regarding the issue with tracking Google and Facebook leads after the recent API shift.


We haven't received any feedback yet and would really appreciate your insights or suggestions on how to resolve this.

 

Also, is there a Discord community for HubSpot? If so, please let us know.


Thanks in advance for your help!

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir,


Just following up on my previous post regarding the issue with tracking Google and Facebook leads after the recent API shift.


We haven't received any feedback yet and would really appreciate your insights or suggestions on how to resolve this.

 

Also, is there a Discord community for HubSpot? If so, please let us know.


Thanks in advance for your help!

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir,


Just following up on my previous post regarding the issue with tracking Google and Facebook leads after the recent API shift.


We haven't received any feedback yet and would really appreciate your insights or suggestions on how to resolve this.

 

Also, is there a Discord community for HubSpot? If so, please let us know.


Thanks in advance for your help!

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir,


Just following up on my previous post regarding the issue with tracking Google and Facebook leads after the recent API shift.


We haven't received any feedback yet and would really appreciate your insights or suggestions on how to resolve this.

 

Also, is there a Discord community for HubSpot? If so, please let us know.


Thanks in advance for your help!

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir,


Just following up on my previous post regarding the issue with tracking Google and Facebook leads after the recent API shift.


We haven't received any feedback yet and would really appreciate your insights or suggestions on how to resolve this.

 

Also, is there a Discord community for HubSpot? If so, please let us know.


Thanks in advance for your help!

0 Upvotes
SKundu6
Participant

Assistance Needed - Issue with Google & Facebook Leads Tracking After API Shift

Hi @HMir ,


Thank you for your response.


We have implemented a "Javascript Cookie" concept on our website pages to track the "utm_source" of visitors coming from Facebook or Google ads. This "utm_source" is then sent to the Deal creation API call and stored in a custom property called "contact_source." While this logic works for some contacts, it does not consistently capture the source for all contacts coming from Facebook or Google ads.


We are using Private App concept in version 3, we are using PHP CURL call concept. Following are the sample:

API endpoint link: https://api.hubapi.com/crm/v3/objects/deals
Request parameters:
$properties = array(
//Other request parameters
'contact_source' => $_COOKIE['sf_source']
);
$hubspot_fields = array(
'properties' => $properties
);


Apart from above logic, we have used the JavaScript tracking script throughout the pages of the website:


<!-- Start of HubSpot Embed Code -->
<!-- <script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/HUBID.js"></script> -->
<!-- End of HubSpot Embed Code -->


This script serves to display the HubSpot chat option on the website and also facilitates the storage of contact source indicators (e.g., Paid social, Paid search) in the 'Original source drill-down 2' filter option in V2.


Should you require further details, please don't hesitate to ask, and we'll gladly provide additional information.


Thank you again.

0 Upvotes