• Got questions about HubSpot’s Smart CRM?

    Our product team is answering them live through March 6th!

    Ask us anything
  • Ready to build your local HubSpot community?

    HUG leaders host events, spark connections, and create spaces where people learn and grow together.

    Become a HUG Leader

Problem to had custom properties with js api

IAnalytics
Member

Hello everyone, I need a little help.
I'm working with Matomo, and I'd like to add a user via the Hsq code. The user is being created successfully, but only the email address is being filled in when I send the contact. However, I can clearly see the other information in the request:

IAnalytics_0-1741862869026.png

I have read a lot of post and test many things but don't see what I'm doing wrong. 

0 Upvotes
1 Accepted solution
nickdeckerdevs1
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

I wonder is this is the issue 

IMG_0697.png

View solution in original post

0 Upvotes
8 Replies 8
nickdeckerdevs1
Top Contributor | Gold Partner
Top Contributor | Gold Partner

I think you are referring to the tracking code api for hubspot, and you are looking to use an email address for the user and identify them and push that data to HubSpot. I can't actually see what your code actually says.

code: https://gist.github.com/NickDeckerDevs/5eba5b70399ffcf3830257d7695d0a2d

This results in the same output you have (well just a bit differnet based upon what we sent)

 

i:
email=demo%40ianalytics.com&firstname=sample&lastname=code

When I log into my portal in HubSpot, this is what I see, a new contact created with the name and email address I used to identify.

nickdeckerdevs1_0-1741905206207.png

 

 

IAnalytics
Member

Hello Thank you for your response. Have you created your account before 2021 ? Perhaps we can't do this anymore with the tracking code.

0 Upvotes
IAnalytics
Member

Hi thank you for your response. I was not sure it was possible to add properties anymore with all the test i do. So this is my code : 

IAnalytics_0-1741941736865.png

 

I don't know why I don't have the same result than you. I try a lot of things. Double quote, simple quote. 

0 Upvotes
IAnalytics
Member

I think I know where is a problem. I try the same configuration than you and this is what I have : 

IAnalytics_1-1741942565142.png

 

The name is also the email. I don't know why because I check the user property internal label and i have the company , firstname and lastname

0 Upvotes
nickdeckerdevs1
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

I wonder is this is the issue 

IMG_0697.png

0 Upvotes
IAnalytics
Member

Yes but when they said updated properties, if they not created before it's a creation, not an update ? 

0 Upvotes
nickdeckerdevs1
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Is it possible the name is being overwritten?

 

if you click on all the properties then look at the property history, it will show you each time when it has been updated. 

0 Upvotes
Jaycee_Lewis
Thought Leader

Hi, @IAnalytics 👋 Welcome to our community. Thanks for your post. I wasn't able to find any related posts for your question. We'll leave this open in case other community members have any suggestions for you. Additionally, you might want to try over in the Matomo forums. — Jaycee





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes