APIs & Integrations

IAnalytics
Membro

Problem to had custom properties with js api

resolver

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 Avaliação positiva
1 Solução aceita
nickdeckerdevs1
Solução
Top colaborador(a) | Parceiro Platinum
Top colaborador(a) | Parceiro Platinum

Problem to had custom properties with js api

resolver

I wonder is this is the issue 

IMG_0697.png

Exibir solução no post original

0 Avaliação positiva
8 Respostas 8
nickdeckerdevs1
Top colaborador(a) | Parceiro Platinum
Top colaborador(a) | Parceiro Platinum

Problem to had custom properties with js api

resolver

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
Membro

Problem to had custom properties with js api

resolver

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 Avaliação positiva
IAnalytics
Membro

Problem to had custom properties with js api

resolver

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 Avaliação positiva
IAnalytics
Membro

Problem to had custom properties with js api

resolver

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 Avaliação positiva
nickdeckerdevs1
Solução
Top colaborador(a) | Parceiro Platinum
Top colaborador(a) | Parceiro Platinum

Problem to had custom properties with js api

resolver

I wonder is this is the issue 

IMG_0697.png

0 Avaliação positiva
IAnalytics
Membro

Problem to had custom properties with js api

resolver

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

0 Avaliação positiva
nickdeckerdevs1
Top colaborador(a) | Parceiro Platinum
Top colaborador(a) | Parceiro Platinum

Problem to had custom properties with js api

resolver

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 Avaliação positiva
Jaycee_Lewis
Gerente da Comunidade
Gerente da Comunidade

Problem to had custom properties with js api

resolver

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


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Avaliação positiva